Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

resizing JPanels  RSS feed

 
Diego Gonzalez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I am new to Swing and i am trying to code an IM application.

Well, i have a main panel using GridLayout.

Inside that panel i have 4 more JPanels (2 rows and 2 columns), but the problem is that all the JPanels have the same size (squares) and i want to give some of them another size.

 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Diego,

Could you post the whole code of your GUI, and give more detail about how this GUI you are expecting to look like, therefor we could know how it looks like. and know how to make it to be as nicer as you are expecting.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!