Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Java (http://www.domainnameforum.org/forumdisplay.php?f=125)
-   -   JPanel BoxLayout nested JPanel alignment issue (http://www.domainnameforum.org/showthread.php?t=152206)

Java 03-26-2011 09:50 PM

JPanel BoxLayout nested JPanel alignment issue
 
I am having a problem with left alignment after adding a second JPanel. Both JPanels are using the BoxLayout with the first set to Y_AXIS and the second set to X_AXIS. If you comment out the add(twoPanel) it results in the desired left alignment. I don't understand why the alignment changes...


All times are GMT -4. The time now is 06:58 PM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.