JTable valueChanged

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

JTable valueChanged

Postby SirMad » Tue Jun 30, 2009 12:13 am

Hiho

i am using WindowBuilder Pro Version: 7.1.0.
Is the event valueChanged for table selection supported? I dont see it in the "show event" table
SirMad
 
Posts: 3
Joined: Tue Jun 30, 2009 12:05 am

Re: JTable valueChanged

Postby Eric Clayberg » Tue Jun 30, 2009 12:13 pm

SirMad wrote:Is the event valueChanged for table selection supported? I dont see it in the "show event" table

I don't see a addValueChangedListener() method defined for JTable.

Do you have an code example where you have set that up for a JTable?
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: JTable valueChanged

Postby SirMad » Tue Jul 07, 2009 10:12 am

hello

the code would be:
Code: Select all
table.getSelectionModel().addListSelectionListener(...)
SirMad
 
Posts: 3
Joined: Tue Jun 30, 2009 12:05 am

Re: JTable valueChanged

Postby Eric Clayberg » Thu Jul 09, 2009 8:16 am

Since that is not a direct JTable event, you won't be able to hook into it directly from the design view.

We will add that to our list of features to support in the future.
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