amertkara / seaglass

Automatically exported from code.google.com/p/seaglass
0 stars 0 forks source link

JTable rows not visible #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is a problem with rendering the contents of a JTable. There is no
cell content visible until I doubleclick it to edit. After edition, the
text disappears again. Column names are rendered properly.
Am I doing something wrong? It seems a bit strange, maybe it's another
slight error in a single line?

Original issue reported on code.google.com by saephir on 9 Apr 2010 at 1:24

GoogleCodeExporter commented 9 years ago
It seems that uncommenting the lines:

// Component comp = super.getTableCellRendererComponent(table, value, 
isSelected,
hasFocus, row, column);
// System.out.println("row = " + row + ", opaque = " + isOpaque());
// if (row % 2 == 0) {
// comp.setBackground(alternateColor);
// setBackground(alternateColor);
// } else {
// comp.setBackground(table.getBackground());
// setBackground(table.getBackground());
// }

beginning with 1223th line in the file SeaGlassTableUI.java, solves the problem.
But why - I don't know... maybe I should have studied the whole classfile :)

Original comment by saephir on 9 Apr 2010 at 5:42

GoogleCodeExporter commented 9 years ago
Well, I'm currently working on this stuff. Have you tried the released version 
(0.1.7.2)?

The table UI code isn't necessarily completely working.

Original comment by kahuxtable on 9 Apr 2010 at 5:46

GoogleCodeExporter commented 9 years ago
I'm using 1.7.2.2 and this problem occurs when a JTable is bound to a data 
source (
database in my case).

Original comment by Graphics...@gmail.com on 4 Jun 2010 at 3:32

GoogleCodeExporter commented 9 years ago
well, I like seaglass very much. And i meet this problem too.
I am just a newcomer of java.
Although I have saw the download link of seaglass sources files, but I don't 
know how to input the sources to Netbeans, and how to compile it.
So, I found the related .class files in the demo.jar, and use this files to 
replace released version(0.1.7.2.2).successful!!
But I can't understand, the demo was created on 10.03.13
and the released version was created on 10.03.26

Original comment by SadIn...@gmail.com on 12 Jun 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Working on this as well as some other table stuff. Tables are pretty messed up 
at the moment.

Original comment by kahuxtable on 2 Jul 2010 at 2:33

GoogleCodeExporter commented 9 years ago
Fixed in r1535.

Original comment by kahuxtable on 2 Jul 2010 at 5:13