Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Components - User Interface  RSS feed

 
Kutty KL
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am developing a desktop application in Java.In that application I have a Jframe which contains 2 JTextFields and 2 JButtons. When a JButton is clicked a new page has to be displayed and the values from the 2 textboxes should be displayed in that new page using JLabel. Can anyone of you tell me how to do this? I actually know the logic how to do it. My problem is how to do with Swing Components.
Any sample code will be helpful.
Thanks in advance,
Kutty
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you know the logic, you know how to do it. Swing AWT done the same way. Pass the values and use setText().
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!