Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI - JTextField(int columns)

 
Jakub Drzazga
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

What do you think?? Is it a good idea to use JTextField(int columns) constructor or setColumns(int columns)?? I understand setPreferedSize(Dimension preferredSize) is not a good choice but seting columns is something a little bit different.
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I prefer to use JTextField(int column) and let the layout manager set the size.


Good luck

Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2) --> Waiting for the result
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic