File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing a value through jframes

 
Lahiru Chandrarathna
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JInternalFrame. I need to select a name from the database. For this, I need to load a new JDialog containing a JTable. When the user types the name,the relavant search results will appear on the table. What I want is that when the user select the name and press Enter, I need to pass that selected name to the JInternalFrame which I mentioned earlier. I have no idea how to do it. Please help me out someone . . .
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where does the user type the name? i.e, is the JTextField where the user is supposed to type the name placed on the JInternalFrame itself? In any case, you should be able to refer to the text field variable and call getText() to get the value.
 
Lahiru Chandrarathna
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the consideration. problem solved.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok great. Thanks for letting us know.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic