• Post Reply Bookmark Topic Watch Topic
  • New Topic

Labels and Textfields  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Does anyone know how to do the following:
1. Put a border around a label
2. Control the tab order with Textfields in a GridLayout
TIA
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To create the border use JLabel with a Border object and the setBorder() method.
Nick
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you are using Swing components, look into the FocusManager class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!