Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.swing.Box help

 
Eric Larsen
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I've got an app (an excercise from Chapter 13 of Head First Java) to make a drum/percussion instruments machine and I need a little help with the GUI. The JLabels on the left are in a Box component , and I need some way to get them to match up with each row of JCheckBoxes in the center (in another Box.) Thanks in advance for the help!

screen.JPG
[Thumbnail for screen.JPG]
Screenshot of the GUI
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a simple alternative

//Box nameBox = new Box(BoxLayout.Y_AXIS);
JPanel nameBox = new JPanel(new GridLayout(0,1,0,2));
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!