• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

javax.swing.Box help

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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));
 
reply
    Bookmark Topic Watch Topic
  • New Topic