Adding pop up editor window in Property Editor?

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

Adding pop up editor window in Property Editor?

Postby iduman » Tue Nov 18, 2008 6:17 am

Hello

I am thinking of implementing a pop up editor window in property editor like String [] editor window in property editor. I need more information and sample code for this work. Please help me

Thanks
iduman
 
Posts: 21
Joined: Tue Nov 18, 2008 5:46 am

Re: Adding pop up editor window in Property Editor?

Postby Eric Clayberg » Tue Nov 18, 2008 6:48 am

You can do that using a JavaBean compliant custom property editor.

See the on-line docs at the Sun site and elsewhere for how to do this.

There are hundreds of examples of custom Swing widgets available from many different sources that you can learn from or use as templates.
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: Adding pop up editor window in Property Editor?

Postby iduman » Tue Nov 18, 2008 8:07 am

I was thinking of implementing an editor like String Array Editor or customizing String Array Editor for my project, not creating custom Swing widgets.
iduman
 
Posts: 21
Joined: Tue Nov 18, 2008 5:46 am

Re: Adding pop up editor window in Property Editor?

Postby Eric Clayberg » Tue Nov 18, 2008 9:04 am

The String Array editor is just a simple dialog with a multi-line text widget and simple logic to break the input string into multiple strings at each new line.
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: Google [Bot] and 1 guest