Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 3rd, 2016, 3:55 PM   #1
tank
Programmer
 
Join Date: Sep 2011
Posts: 70
Rep Power: 7 tank is on a distinguished road
Box Layout cannot be shared

Hello

Please help me with this. I am getting a java.awt.AWTError: BoxLayout can't be shared.

class edit_dialog extends javax.swing.JFrame{
    javax.swing.JTextField title = new javax.swing.JTextField();
    public edit_dialog(){
        setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
        setTitle("New entity");
        getContentPane().setLayout(
            new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));
        add(title);
        pack();
        setVisible(true);
    }
}

Thanks in advance
tank is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid bag layout inside grid bag layout kiddkoder Java 0 Mar 27th, 2011 9:16 PM
How to get the handle of a box on a Form? UnhandledException Visual Basic 1 Jan 2nd, 2010 11:01 PM
Using dlopen and a shared library with dependencies. UnhandledException C 0 Jun 30th, 2009 9:54 AM
rbs script dialog box user input principle question Datalanding Other Scripting Languages 1 Dec 18th, 2008 12:44 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC