wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Jtable as listbox? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jtable as listbox?" Watch "Jtable as listbox?" New topic
Author

Jtable as listbox?

r0ckflite
Greenhorn

Joined: Aug 30, 2001
Posts: 1
Hi, I am using a jtable to format 3 columns of data, allow you to click on title and sort the whole list by one particular column, and then click on a row to select that row. Here are my questions (thanks ahead of time:
1) Is this a good use for jtable, or should I be using some other 'list selection' widget?
2) When I click on a cell, it selects the whole row (good), but draws a little yellow outline around the cell I selected. I want it to look like user selected the row (get rid of yellow outline and diff background color on cell I clicked)
3) I want the tab key to move me to the next widget in my dialog. It currently moves me to the next cell in my jtable.
-Ben
------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jtable as listbox?