Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Display combo box in JTable cell?


  • From: mark@xxxxxxxxxxx (Mark Plamann)
  • Subject: [Advanced-java] Display combo box in JTable cell?
  • Date: Mon, 25 Feb 2002 09:03:17 -0600

Hi all,

I am interested in displaying a combo box in the cell of a JTable. It seems 
the default rendering option is for a JTable cell to display only the text 
of the currently selected item of the combo box and not the actual combo 
box itself. The combo box displays fine when a user selects the cell the 
combo box is in, but once they move to another cell, only the text is 
displayed.

Is it possible to write a renderer to do what I would like to do? If so, 
does anyone have any tips or examples towards writing such a renderer?

Thanks for any insight,
Mark