Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridBagLayout Question  RSS feed

 
hoang vo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My first time posting here.

I have a question regarding the GridBagLayout. I cannot seem to arrange the layout into 2 row 2 column. It all goes into one row.
here is my code:
 
hoang vo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
question withdrawn

cause i had the wrong name

i had noteNameLabel.setLayout(new GridBagLayout());
instead of noteNamePanel.setLayout(new GridBagLayout());
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!