Showing posts with label boxlayout. Show all posts
Showing posts with label boxlayout. Show all posts

Wednesday, March 7, 2012

BoxLayout can"t be shared error


I have this Java JFrame class, in which I want to use a boxlayout, but I get an error saying java.awt.AWTError: BoxLayout can't be shared . I've seen others with this problem, but they solved it by creating the boxlayout on the contentpane, but that is what I'm doing here. Here's my code: