File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jtable as listbox?" Watch "Jtable as listbox?" New topic

Jtable as listbox?


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.
Consider Paul's rocket mass heater.
subject: Jtable as listbox?
It's not a secret anymore!