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

Please help i want gaps between buttons and checkboxes  RSS feed

 
mitchell cooper
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would i go about getting gaps between my buttons and checkboxes?

 
Rob Camick
Ranch Hand
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the section from the Swing tutorial on Using Invisible Components as Filler.

Basically you need to add Box.createVerticalStrut(...) whenever you want a vertical gap.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!