Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rendering problem

Arun Sanker
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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..
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic