File tree 2 files changed +25
-12
lines changed
javax/swing/JTable/4235420
2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,6 @@ javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-all
697
697
javax/swing/JColorChooser/Test6827032.java 8197825 windows-all
698
698
javax/swing/JColorChooser/Test7194184.java 8194126 linux-all,macosx-all
699
699
javax/swing/JTable/7124218/SelectEditTableCell.java 8148958 linux-all,macosx-all
700
- javax/swing/JTable/4235420/bug4235420.java 8079127 generic-all
701
700
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
702
701
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
703
702
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
Original file line number Diff line number Diff line change 37
37
public class bug4235420 {
38
38
39
39
public static void main (String [] argv ) throws Exception {
40
- if ("Nimbus" .equals (UIManager .getLookAndFeel ().getName ())) {
41
- System .out .println ("The test is skipped for Nimbus" );
42
-
43
- return ;
44
- }
40
+ for (UIManager .LookAndFeelInfo LF :
41
+ UIManager .getInstalledLookAndFeels ()) {
42
+ try {
43
+ UIManager .setLookAndFeel (LF .getClassName ());
44
+ } catch (UnsupportedLookAndFeelException ignored ) {
45
+ System .out .println ("Unsupported L&F: " + LF .getClassName ());
46
+ } catch (ClassNotFoundException | InstantiationException
47
+ | IllegalAccessException e ) {
48
+ throw new RuntimeException (e );
49
+ }
50
+ System .out .println ("Testing L&F: " + LF .getClassName ());
45
51
46
- SwingUtilities .invokeAndWait (new Runnable () {
47
- @ Override
48
- public void run () {
49
- Table table = new Table ();
52
+ if ("Nimbus" .equals (UIManager .getLookAndFeel ().getName ()) ||
53
+ "GTK" .equals (UIManager .getLookAndFeel ().getName ())) {
54
+ System .out .println ("The test is skipped for Nimbus and GTK" );
50
55
51
- table . test () ;
56
+ continue ;
52
57
}
53
- });
58
+
59
+ SwingUtilities .invokeAndWait (new Runnable () {
60
+ @ Override
61
+ public void run () {
62
+ Table table = new Table ();
63
+
64
+ table .test ();
65
+ }
66
+ });
67
+ }
54
68
}
55
69
56
70
private static class Table extends JTable {
You can’t perform that action at this time.
0 commit comments