Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Display JComboBox in a JTable


Help!!
I've managed to get a JComboBox into a single cell in a JTable
but it is not visible as a JComboBox unless the user actually
clicks on it.
I'm assuming it is possible to make this component visible..
Thanks in advance
Ben

Your rating: None Average: 1 (1 vote)

What does it look like?

What *does* it look like in your implementation?

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#co...

Display JComboBox in a JTable

Hi,

With help of Display Editor you can display ComboBox when the cell get edited. In Buzz words when user clicks on the cell. But If you want to display at Table loading then User CellRebnderer for that. Renderer's task is to Display the component at table.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br /> <br> <strike>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
Just checking to see if you're an actual person rather than a spammer. Sorry for the inconvenience.