mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8258554: javax/swing/JTable/4235420/bug4235420.java fails in GTK L&F
Reviewed-by: serb
This commit is contained in:
parent
c50b464a12
commit
c7c53d016e
2 changed files with 27 additions and 14 deletions
|
@ -731,7 +731,6 @@ javax/swing/JWindow/ShapedAndTranslucentWindows/TranslucentJComboBox.java 802462
|
||||||
# The next test below is an intermittent failure
|
# The next test below is an intermittent failure
|
||||||
javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-all
|
javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-all
|
||||||
javax/swing/JColorChooser/Test6827032.java 8197825 windows-all
|
javax/swing/JColorChooser/Test6827032.java 8197825 windows-all
|
||||||
javax/swing/JTable/4235420/bug4235420.java 8079127 generic-all
|
|
||||||
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
|
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
|
||||||
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
||||||
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
||||||
|
|
|
@ -37,20 +37,34 @@ import java.util.Map;
|
||||||
public class bug4235420 {
|
public class bug4235420 {
|
||||||
|
|
||||||
public static void main(String[] argv) throws Exception {
|
public static void main(String[] argv) throws Exception {
|
||||||
if ("Nimbus".equals(UIManager.getLookAndFeel().getName())) {
|
for (UIManager.LookAndFeelInfo LF :
|
||||||
System.out.println("The test is skipped for Nimbus");
|
UIManager.getInstalledLookAndFeels()) {
|
||||||
|
try {
|
||||||
return;
|
UIManager.setLookAndFeel(LF.getClassName());
|
||||||
}
|
} catch (UnsupportedLookAndFeelException ignored) {
|
||||||
|
System.out.println("Unsupported L&F: " + LF.getClassName());
|
||||||
SwingUtilities.invokeAndWait(new Runnable() {
|
} catch (ClassNotFoundException | InstantiationException
|
||||||
@Override
|
| IllegalAccessException e) {
|
||||||
public void run() {
|
throw new RuntimeException(e);
|
||||||
Table table = new Table();
|
|
||||||
|
|
||||||
table.test();
|
|
||||||
}
|
}
|
||||||
});
|
System.out.println("Testing L&F: " + LF.getClassName());
|
||||||
|
|
||||||
|
if ("Nimbus".equals(UIManager.getLookAndFeel().getName()) ||
|
||||||
|
"GTK".equals(UIManager.getLookAndFeel().getName())) {
|
||||||
|
System.out.println("The test is skipped for Nimbus and GTK");
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
SwingUtilities.invokeAndWait(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
Table table = new Table();
|
||||||
|
|
||||||
|
table.test();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class Table extends JTable {
|
private static class Table extends JTable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue