< prev index next >

test/java/awt/Component/InsetsEncapsulation/InsetsEncapsulation.java

Print this page
rev 14031 : 8160974: [TESTBUG] Mark more headful tests with @key headful.

This is a backport of fe58d505fffd from jdk9. 228/596 hunks apply without
modifications. 16 hunks required manual rework. The remainder were for files
not present in jdk8u.


  57 import javax.swing.JSplitPane;
  58 import javax.swing.JTabbedPane;
  59 import javax.swing.JTable;
  60 import javax.swing.JTextArea;
  61 import javax.swing.JTextField;
  62 import javax.swing.JTextPane;
  63 import javax.swing.JToggleButton;
  64 import javax.swing.JToolBar;
  65 import javax.swing.JTree;
  66 import javax.swing.JViewport;
  67 import javax.swing.SwingUtilities;
  68 import javax.swing.UIManager;
  69 import javax.swing.UnsupportedLookAndFeelException;
  70 import javax.swing.table.JTableHeader;
  71 
  72 import static javax.swing.UIManager.LookAndFeelInfo;
  73 import static javax.swing.UIManager.getInstalledLookAndFeels;
  74 
  75 /**
  76  * @test

  77  * @bug 6459800
  78  * @author Sergey Bylokhov
  79  */
  80 public final class InsetsEncapsulation implements Runnable {
  81 
  82     private final Collection<Component> failures = new ArrayList<>();
  83 
  84     public static void main(final String[] args) throws Exception {
  85         for (final LookAndFeelInfo laf : getInstalledLookAndFeels()) {
  86             SwingUtilities.invokeAndWait(() -> setLookAndFeel(laf));
  87             SwingUtilities.invokeAndWait(new InsetsEncapsulation());
  88         }
  89     }
  90 
  91     @Override
  92     public void run() {
  93         runTest(new JLabel("hi"));
  94         runTest(new JMenu());
  95         runTest(new JTree());
  96         runTest(new JTable());




  57 import javax.swing.JSplitPane;
  58 import javax.swing.JTabbedPane;
  59 import javax.swing.JTable;
  60 import javax.swing.JTextArea;
  61 import javax.swing.JTextField;
  62 import javax.swing.JTextPane;
  63 import javax.swing.JToggleButton;
  64 import javax.swing.JToolBar;
  65 import javax.swing.JTree;
  66 import javax.swing.JViewport;
  67 import javax.swing.SwingUtilities;
  68 import javax.swing.UIManager;
  69 import javax.swing.UnsupportedLookAndFeelException;
  70 import javax.swing.table.JTableHeader;
  71 
  72 import static javax.swing.UIManager.LookAndFeelInfo;
  73 import static javax.swing.UIManager.getInstalledLookAndFeels;
  74 
  75 /**
  76  * @test
  77  * @key headful
  78  * @bug 6459800
  79  * @author Sergey Bylokhov
  80  */
  81 public final class InsetsEncapsulation implements Runnable {
  82 
  83     private final Collection<Component> failures = new ArrayList<>();
  84 
  85     public static void main(final String[] args) throws Exception {
  86         for (final LookAndFeelInfo laf : getInstalledLookAndFeels()) {
  87             SwingUtilities.invokeAndWait(() -> setLookAndFeel(laf));
  88             SwingUtilities.invokeAndWait(new InsetsEncapsulation());
  89         }
  90     }
  91 
  92     @Override
  93     public void run() {
  94         runTest(new JLabel("hi"));
  95         runTest(new JMenu());
  96         runTest(new JTree());
  97         runTest(new JTable());


< prev index next >