Hey guys, I built a frame and set it's layout to be a borderLayout. Then, I built a JPanel and set it's layout to CardLayout. Now, I add a JPanel to my CardLayout that contains some combo boxes, and the combo boxes do not look or behave correctly. If I take that same panel with the combo boxes and place it directly in the mainFrame in the center, it behaves just fine. Any thoughts on how I can fix this or what is going on? Thanks in advance -Matt
-Matt<br /> SCJP2<br /> SCJD
posted 14 years ago
Matt, I think you should invoke some method of the CardLayout to show a specific card. For example: cardLayout.first(cardPanel); or: cardLayout.show(cardPanel, "yourSecondPanelName"); Hope this helps, David
David,<br />SCJP - 94% (2002-7-6)
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads