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
|
||||
javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-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/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
||||
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
||||
|
|
|
@ -37,10 +37,23 @@ import java.util.Map;
|
|||
public class bug4235420 {
|
||||
|
||||
public static void main(String[] argv) throws Exception {
|
||||
if ("Nimbus".equals(UIManager.getLookAndFeel().getName())) {
|
||||
System.out.println("The test is skipped for Nimbus");
|
||||
for (UIManager.LookAndFeelInfo LF :
|
||||
UIManager.getInstalledLookAndFeels()) {
|
||||
try {
|
||||
UIManager.setLookAndFeel(LF.getClassName());
|
||||
} catch (UnsupportedLookAndFeelException ignored) {
|
||||
System.out.println("Unsupported L&F: " + LF.getClassName());
|
||||
} catch (ClassNotFoundException | InstantiationException
|
||||
| IllegalAccessException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
System.out.println("Testing L&F: " + LF.getClassName());
|
||||
|
||||
return;
|
||||
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() {
|
||||
|
@ -52,6 +65,7 @@ public class bug4235420 {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private static class Table extends JTable {
|
||||
public void test() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue