Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 3624
16
Firefox Browser Java Mac OS X
  • 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
Boost this thread!