• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JComboBoxes in JTable

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic