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

GridbagLayout  RSS feed

 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JPanel, where its layout is GridbagLayout.
If I resize the panel some of component shap is changing and the gui is not useable.

Question: what property to set in order for the component not to loss their shap.

Thank you in advance
Garandi
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's hard to say with the information you have provided.

If I resize the panel some of component shap is changing and the gui is not useable.

Is this when you make the window larger or smaller? What do you mean by "no usable"? And what do you mean the shape is changing? Do you mean components are getting larger? Are they getting smaller?

If you could provide your code that would be a big help. And if you could provide a before and after screenshot, that would be a big help too. Like I said, it's hard to tell what you need to do with the information you have given.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!