Can not add JMenuBar to JInternalFrame

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Can not add JMenuBar to JInternalFrame

Postby mkornatzki » Thu Jun 24, 2010 3:54 am

Hi,

is there a reson why i can not add a JMenuBar to a JInternalFrame in SwingDesigner?
I can add a menu to a JFrame and if i add the following to the JInternalFrame then i can configure the items with the designer.
Code: Select all
private void initialize() {
...
  setJMenuBar(new JMenuBar());
}


i use SwingDesigner 7.5.0r35x201006180350
with eclipse 3.5

regards,
michael
mkornatzki
 
Posts: 121
Joined: Wed Oct 15, 2008 3:57 am

Re: Can not add JMenuBar to JInternalFrame

Postby Eric Clayberg » Fri Jun 25, 2010 6:06 am

Give this a try using the latest v7.6 build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Can not add JMenuBar to JInternalFrame

Postby mkornatzki » Fri Jun 25, 2010 7:59 am

tanks,
it works.

regards,
michael
mkornatzki
 
Posts: 121
Joined: Wed Oct 15, 2008 3:57 am

Re: Can not add JMenuBar to JInternalFrame

Postby Eric Clayberg » Sat Jun 26, 2010 5:26 am

Glad that worked for you.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest