• Post Reply Bookmark Topic Watch Topic
  • New Topic

Layout question

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JPanel that contains another JPanel. The inner JPanel contains
JLabels and a cooresponding JTextField for data entry. My question is how
to layout the panel where the JLabel appears with the text next to it whichout it being all jumbled up or too far apart.

Thanks.
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give any more details, such as your layout code?
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you just create the JLabel (allowing it to use the default FlowLayout), and add the Label to it, then the Text Field?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!