BoxLayout exception
From: Joseph (na_at_na.ca)
Date: 03/31/04
- Previous message: dual0: "Re: Java and IP address on linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 07:06:26 GMT
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.getContentPane().setLayout(new
BoxLayout(myFrame,BoxLayout.Y_AXIS));
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myFrame.pack();
myFrame.setVisible(true);
}
public static void main(String[] args) {
test mine = new test();
}
}
- Previous message: dual0: "Re: Java and IP address on linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]