I can't seem to determine why I receive this exceptio when executing the
code below. I get a "BoxLayout can't be shared" exception whenever i
execute. Any reasons and solutions is appreciated. Thanx in advance.
public class test {
JFrame myFrame;
public test() {
myFrame = new JFrame("Test");
myFrame.getCont entPane().setLa yout(new
BoxLayout(myFra me,BoxLayout.Y_ AXIS));
myFrame.setDefa ultCloseOperati on(JFrame.EXIT_ ON_CLOSE);
myFrame.pack();
myFrame.setVisi ble(true);
}
public static void main(String[] args) {
test mine = new test();
}
}
code below. I get a "BoxLayout can't be shared" exception whenever i
execute. Any reasons and solutions is appreciated. Thanx in advance.
public class test {
JFrame myFrame;
public test() {
myFrame = new JFrame("Test");
myFrame.getCont entPane().setLa yout(new
BoxLayout(myFra me,BoxLayout.Y_ AXIS));
myFrame.setDefa ultCloseOperati on(JFrame.EXIT_ ON_CLOSE);
myFrame.pack();
myFrame.setVisi ble(true);
}
public static void main(String[] args) {
test mine = new test();
}
}
Comment