[Mydm-cvs] MyDM/src/java/org/mydm/ui DocIDListener.java,1.1,1.2
Status: Pre-Alpha
Brought to you by:
vkdasari
From: <vkd...@us...> - 2004-03-08 18:56:52
|
Update of /cvsroot/mydm/MyDM/src/java/org/mydm/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17344/src/java/org/mydm/ui Modified Files: DocIDListener.java Log Message: Corrected the Bug with DocIDListener Index: DocIDListener.java =================================================================== RCS file: /cvsroot/mydm/MyDM/src/java/org/mydm/ui/DocIDListener.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DocIDListener.java 28 Feb 2004 15:14:39 -0000 1.1 --- DocIDListener.java 8 Mar 2004 18:32:23 -0000 1.2 *************** *** 29,32 **** --- 29,33 ---- import javax.swing.JDesktopPane; import javax.swing.JOptionPane; + import javax.swing.JTextField; import org.mydm.core.EDocument; *************** *** 43,47 **** public class DocIDListener implements ActionListener{ ! private final String id; /** --- 44,48 ---- public class DocIDListener implements ActionListener{ ! private JTextField jtext; /** *************** *** 49,54 **** * */ ! public DocIDListener(String id){ ! this.id = id; } --- 50,55 ---- * */ ! public DocIDListener(JTextField jtext){ ! this.jtext = jtext; } *************** *** 57,60 **** --- 58,62 ---- */ public void actionPerformed(ActionEvent e) { + String id = jtext.getText(); int qdid; JDesktopPane desktop = FDocMan.getInstance().getDesktopPane(); |