-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b109
-
generic
-
linux
-
Verified
Specification for javax.swing.JTable says:
/**
* Returns the height of a table row, in pixels.
* The default row height is 16.0.
*/
public int getRowHeight() { ... }
This is not true for all documented L&Fs. Violated if GTK is used.
Platform: Linux
JCK: 6
JDK: 6, 7
L&F: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Test: api/javax_swing/JTable/index.html#JTableSortingFiltering[setGetRowSorter2001]
---------------------------------------------------------------------------------
import javax.swing.*;
public class RowHeight {
public static void main(String[] args) {
final JTable jTable = new JTable();
System.out.println("jTable.getRowHeight() = " + jTable.getRowHeight());
}
}
---------------------------------------------------------------------------------
With GTF L&F the output will be
jTable.getRowHeight() = 18
Without GTK
jTable.getRowHeight() = 16
Spec was updated according to the evaluation, so failing tests need to be removed / updated accordingly.
/**
* Returns the height of a table row, in pixels.
* The default row height is 16.0.
*/
public int getRowHeight() { ... }
This is not true for all documented L&Fs. Violated if GTK is used.
Platform: Linux
JCK: 6
JDK: 6, 7
L&F: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Test: api/javax_swing/JTable/index.html#JTableSortingFiltering[setGetRowSorter2001]
---------------------------------------------------------------------------------
import javax.swing.*;
public class RowHeight {
public static void main(String[] args) {
final JTable jTable = new JTable();
System.out.println("jTable.getRowHeight() = " + jTable.getRowHeight());
}
}
---------------------------------------------------------------------------------
With GTF L&F the output will be
jTable.getRowHeight() = 18
Without GTK
jTable.getRowHeight() = 16
Spec was updated according to the evaluation, so failing tests need to be removed / updated accordingly.
- duplicates
-
JDK-6355509 JTable.rowHeight default value incorrectly specified as 16.0
-
- Closed
-