• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Rendering problem

Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

Iam developing under java swing and found it difficult to achieve the following goals which I wanted to.

Iam rendering JTable with combobox.
Somethings which I want is still not happening and I dont know why?

Iam attaching an image also along with this.


How could I achieve the following things.

[1] The "First" and "Last" column show the same comboItem.Want the comboitem in the "Last" column to be last.Is using only 1 renderer and editor for both the columns. Need only 1 selection in the cell(yellow background)

[2]The table cells shouldnt display the comboitems.They should be blank.Only when the user selects a comboitem from the combobox,then only it should be displayed in the corresponding cell.

[3]The Table "setValue" call from the button is not changing the cell value.As you can see in the "getTableCellRendererComponent".Iam using the table value.
How could this be done?The comboboxes are noneditable.

This code is compilable.Would be nice if anyone could point out the changes that should be made in the current code.Would really appreciate it

Thanks in advance..
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic