• Post Reply Bookmark Topic Watch Topic
  • New Topic

buttons that are not same size

 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why is my button the first fit, best fit, worst fit is not same in sizes?

 
Rob Camick
Ranch Hand
Posts: 2701
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want buttons to be the same size, the use a GridLayout.
 
Janus Engstrøm
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can easily use the GridBagLayout to produce even sized buttons. I use GridBagLayout all the time, preferably in combination with a BorderLayout.



Best regards,
Janus
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!