jameszhang
CJSDN高级会员
发贴: 1594
积分: 111
|
于 2003-06-16 08:01
this.dataSet = new Hashtable(); String strDataBase = null; String strUser = null; String strPass = null; String strSID = null; String strPort = null; try { strDataBase = this.jTextField1.getText(); strUser = this.jTextField2.getText(); strPass = this.jTextField3.getText(); strSID = this.jTextField4.getText(); strPort = this.jTextField5.getText();
//System.out.println();
this.dataSet.put("ip", strDataBase); this.dataSet.put("user", strUser); this.dataSet.put("password", strPass); this.dataSet.put("sid", strSID); this.dataSet.put("port", strPort);
java.io.File f = new java.io.File("dataSet.tmp"); if (!f.exists()) { f.createNewFile(); }
try { FileOutputStream istream = new FileOutputStream; ObjectOutputStream p = new ObjectOutputStream(istream); p.writeObject(dataSet);
} catch (Exception de) {
} } catch (Exception aa) { JOptionPane.showMessageDialog(this, aa); }
"First they ignore u, then they laugh at u, then they fight u, then u will win
Mahatma Gandhi"
|