By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

BoxLayout exception

P: n/a
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.setDefaultCloseOperation(JFrame.EXIT_ON_CL OSE);

public static void main(String[] args) {
test mine = new test();
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
If you have the time try changing it to this:
BoxLayout(myFrame.getContentPane(),BoxLayout.Y_AXI S));

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.