Hi, How can I add my Swing application as a component to

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

Hi, How can I add my Swing application as a component to

Postby sunnymanman » Wed Jan 31, 2007 7:48 am

Dear Sir:

Hi, How can I add my Swing application as a component to another Swing application??

For example, I create Swing application called TestMain.java with splitPane,
also I create another Swing application called MyTree.java with JTree,
I did not want to code, but can I drag and drop my MyTree.java into TestMain.java like I did with other components??
How to do it??

Thanks
Engineer!
sunnymanman
 
Posts: 5
Joined: Mon Jan 29, 2007 2:16 pm

Re: Hi, How can I add my Swing application as a component to

Postby Eric Clayberg » Wed Jan 31, 2007 8:32 am

sunnymanman wrote:How can I add my Swing application as a component to another Swing application?

Make it a subclass of JPanel and drop it in using Choose Panel.
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

Postby sunnymanman » Wed Jan 31, 2007 9:20 am

Very good, dear VP,
But how to make a subclass of JPanel?? any tips??
Thanks
Engineer!
sunnymanman
 
Posts: 5
Joined: Mon Jan 29, 2007 2:16 pm

Thanks

Postby sunnymanman » Wed Jan 31, 2007 10:12 am

I solve this problem,
But how can I make the Jtree layout looks better at my will in JPane subclass??
Thanks
Engineer!
sunnymanman
 
Posts: 5
Joined: Mon Jan 29, 2007 2:16 pm

Re: Thanks

Postby Eric Clayberg » Wed Jan 31, 2007 3:07 pm

I'm not sure what you are asking.
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