View Single Post
  #1  
Old 03-26-2011, 08:50 PM
Java Java is offline
Senior Member
 
Join Date: Jun 2009
Posts: 8,402
Default 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...
__________________
Java
domain name forum
Reply With Quote