Questions tagged [tablecellrenderer]

TableCellRenderer is a Java Swing interface that defines the method required by any object that would like to be a renderer for cells in a JTable.

TableCellRenderer is a Java Swing interface that defines the method required by any object that would like to be a renderer for cells in a JTable.

472 questions
-2
votes
1 answer

JTable properties change at runtime

How can I change the particular cell properties at run time in JTable.if the particular cell is name means I need to change Font Size,Font Style ,etc. If I click particular cell for EDIT I need to change that text's Font size, Font style etc. How…
-2
votes
1 answer

Stopping Removal of JTable cell padding after cell is selected

I have a JTable implemented with a custom TableCellRenderer. The contents of the cell is a JList and I have created an inset around the list so that it does not abut the cell side. A fragment of the code is shown below: public…
Elliott
  • 5,523
  • 10
  • 48
  • 87
-2
votes
1 answer

Java - Different behaviour for each JButton in a JTable

I am implementing a JTable containing some JButton, and I found this nice example upon which I based my table. I tried to implement my own table to suit my needs, using the files ButtonEditor.java and ButtonRenderer.java from the example. Actually,…
szlak
  • 39
  • 1
  • 6
-2
votes
2 answers

How maintain my personal color row in a jtable

I would like create a jtable with a personal different background color for row. I write the code but I have a problem, if I select the row or if I scroll the table, my personal color configuration is lost. Thanks to all this my code private void…
-2
votes
2 answers

The content of JComboBox is displayed as a single string, not as separate items

I am using the following TableCellRenderer in my JTable. When I click on JComboBox, I see a list of values as a single String (like this: [Text1, Text2]), but not as separate items. Where is the error? TableColumn columnComboBox =…
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217
-2
votes
1 answer

Highlight Rectangle Object

Possible Duplicate: Find the JTable cell and paint it This is my Rectangle class object. Rectangle cell = table.getCellRect(row, column, false); Now I want to highlight it on mouse press event and again back to normal to mouse realeased event.
Java_Alert
  • 1,159
  • 6
  • 24
  • 50
-3
votes
2 answers

java - how to get object inside cell in jtable

Possible Duplicate: Adding multiple JProgressBar to TableColumn of JTable i have a jTable with a DefaultTableModel with this coloumn: String String JProgressBar and every row is created like this: progress.add(getProgress(x,…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
1 2 3
31
32