A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Problem adding JPanels to a box layout
Joined: Apr 06, 2010
Apr 06, 2010 10:49:51
//The BoxLayout JPanel paymentdetailsPanel = new JPanel(); paymentdetailsPanel.setLayout(new BoxLayout(paymentdetailsPanel, BoxLayout.Y_AXIS));
I'm finding that when I add JPanels to paymentdetailsPanel it creates a big gap between them, I think it may be to do with some panels having a flow layout?
Please provide some feedback on this
Joined: Jun 09, 2003
Apr 06, 2010 13:25:47
> I'm finding...
don't keep it a secret
> Please provide some feedback on this
post your code
Joined: Oct 27, 2005
Apr 06, 2010 13:26:56
But keep it to an
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Problem adding JPanels to a box layout
Layout assistance please
how to add scrollpane for a jpanel with null layout manager.
JMenuBar not using default alignment?
Adding padding to GUI components
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013