• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame

 
Kyle Ruey
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am trying to figure out how to add code to the JTextFields so that it displays when the program is open.
 
Paul Clapham
Sheriff
Posts: 21886
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally if you wanted text in a JTextField, you'd just call its setText() method and pass that text as the parameter of the method.

However I see you already know how to use JLabel's setText() method, so maybe I'm just telling you something which is already obvious and you had something else in mind? Let us know if that's the case.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!