Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

JTable Key.VK_DOWN events

Thread view: 
Eugene Staten - 08 Jan 2004 17:15 GMT
Hi,

I have a dialog with a JTable on the top and various fields below.  The
fields below are used to show more detailed
information about the items in the tables list.  I am using a Selection
Listener to respond to a row selection event and populate the lower fields
with the information about the selected table list item, however, when I
traverse the rows of the table usiing the down arrow key, the selection
listener event is not fired and the fields do not change when the row
selection changes usiing the up or down arrow keys.   How may this be done.
I tried a Key Listener, but this did not work either.

Thanks for any help,

Eugene
Eugene Staten - 08 Jan 2004 18:09 GMT
I stumbled over the answer. Never mind.

The selection listener does work with this. I was testing
getValueIsAdjusting() for false and not true, so I was returning
with no action when I was supposed to continue with the action.

> Hi,
>
[quoted text clipped - 11 lines]
>
> Eugene


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.