Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBoxes in JTable  RSS feed

 
Nicholas Rogers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a JTable with 5 columns: Cols 2-5 are dynamic comboboxes, each dependent on the
previously selected item. The code below works beautifully when there is only one row, but when
I add another row, all comboboxes empty when the user tries to select a value. Can someone please help me figure this out?
My code:

[ February 21, 2003: Message edited by: Nicholas Rogers ]
[ February 21, 2003: Message edited by: Nicholas Rogers ]
[ February 21, 2003: Message edited by: Nicholas Rogers ]
[ February 21, 2003: Message edited by: Nicholas Rogers ]
[ February 21, 2003: Message edited by: Nicholas Rogers ]
[ February 21, 2003: Message edited by: Nicholas Rogers ]
 
Nicholas Rogers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've limited this to the combobox renderer. If I comment out the lines that set the renderer to the column, adding new rows works, but I'd like the renderer to be a combobox instead of the standard textfield. Any help?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!