Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any ideas on how to insert a JLabel directly above an existing GridLayout ?

 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already arranged the 4 buttons and the top JLabel and JTextfield in a GridLayout.

But now I am trying to add a small phrase above the GridLayout. ( The circled phrase in red in the image image )

Any ideas on how to go about doing it ?


 
K. Tsang
Bartender
Posts: 3392
13
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try using another JPanel and put the JLabel and GridLayout panel in this JPanel?
 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer, it may help others in the future who stumble upon this thread, so I will just post it here

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic