jdk/test/javax/swing/JFileChooser/7199708/bug7199708.java
author dbuck
Tue, 18 Aug 2015 04:29:28 -0700
changeset 32417 6859107fc6c3
parent 28071 3acb75b8df45
child 39867 889e919f632e
permissions -rw-r--r--
8133666: OperatingSystemMXBean reports abnormally high machine CPU consumption on Linux Reviewed-by: sla, mgronlun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20115
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     1
/*
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     4
 *
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     7
 * published by the Free Software Foundation.
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     8
 *
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    13
 * accompanied this code).
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    14
 *
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    18
 *
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    21
 * questions.
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    22
 */
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    23
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    24
import java.awt.Component;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    25
import java.awt.Container;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    26
import java.awt.Point;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    27
import java.awt.Robot;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    28
import java.awt.Toolkit;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    29
import java.awt.event.InputEvent;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    30
import java.awt.event.KeyEvent;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    31
import java.io.File;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    32
import java.io.IOException;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    33
import javax.swing.JFileChooser;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    34
import javax.swing.SwingUtilities;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    35
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    36
import java.nio.file.Files;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    37
import javax.swing.AbstractButton;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    38
import javax.swing.JTable;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    39
import javax.swing.UIManager;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    40
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    41
/**
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    42
 * @test
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    43
 * @bug 7199708
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    44
 * @author Alexander Scherbatiy
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    45
 * @summary FileChooser crashs when opening large folder
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    46
 * @run main bug7199708
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    47
 */
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    48
public class bug7199708 {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    49
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    50
    private static int FILE_NUMBER = 30000;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    51
    private static volatile JFileChooser fileChooser;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    52
    private static volatile int locationX;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    53
    private static volatile int locationY;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    54
    private static volatile int width;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    55
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    56
    public static void main(String[] args) throws Exception {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    57
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    58
        Robot robot = new Robot();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    59
        robot.setAutoDelay(50);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    60
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    61
        final File folder = createLargeFolder();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    62
        UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    63
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    64
        SwingUtilities.invokeLater(new Runnable() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    65
            public void run() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    66
                fileChooser = new JFileChooser(folder);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    67
                fileChooser.showSaveDialog(null);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    68
            }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    69
        });
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    70
28071
3acb75b8df45 8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents: 20115
diff changeset
    71
        robot.waitForIdle();
20115
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    72
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    73
        SwingUtilities.invokeLater(new Runnable() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    74
            public void run() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    75
                final String detailsTooltip = UIManager.getString("FileChooser."
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    76
                        + "detailsViewButtonToolTipText", fileChooser.getLocale());
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    77
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    78
                doAction(fileChooser, new ComponentAction() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    79
                    @Override
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    80
                    public boolean accept(Component component) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    81
                        return (component instanceof AbstractButton)
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    82
                                && detailsTooltip.equals(
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    83
                                ((AbstractButton) component).getToolTipText());
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    84
                    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    85
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    86
                    @Override
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    87
                    public void perform(Component component) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    88
                        ((AbstractButton) component).doClick();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    89
                    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    90
                });
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    91
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    92
                doAction(fileChooser, new ComponentAction() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    93
                    @Override
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    94
                    public boolean accept(Component component) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    95
                        return (component instanceof JTable);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    96
                    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    97
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    98
                    @Override
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
    99
                    public void perform(Component component) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   100
                        Point tableLocation = component.getLocationOnScreen();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   101
                        locationX = (int) tableLocation.getX();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   102
                        locationY = (int) tableLocation.getY();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   103
                        width = (int) fileChooser.getBounds().getWidth();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   104
                    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   105
                });
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   106
            }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   107
        });
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   108
28071
3acb75b8df45 8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents: 20115
diff changeset
   109
        robot.waitForIdle();
20115
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   110
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   111
        int d = 25;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   112
        for (int i = 0; i < width / d; i++) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   113
            robot.mouseMove(locationX + i * d, locationY + 5);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   114
            robot.mousePress(InputEvent.BUTTON1_MASK);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   115
            robot.mouseRelease(InputEvent.BUTTON1_MASK);
28071
3acb75b8df45 8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents: 20115
diff changeset
   116
            robot.waitForIdle();
20115
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   117
        }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   118
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   119
        robot.keyPress(KeyEvent.VK_ESCAPE);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   120
        robot.keyRelease(KeyEvent.VK_ESCAPE);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   121
    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   122
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   123
    static void doAction(Component component, ComponentAction action) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   124
        if (action.accept(component)) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   125
            action.perform(component);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   126
        } else if (component instanceof Container) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   127
            for (Component comp : ((Container) component).getComponents()) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   128
                doAction(comp, action);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   129
            }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   130
        }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   131
    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   132
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   133
    private static File createLargeFolder() {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   134
        try {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   135
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   136
            File largeFolder = Files.createTempDirectory("large_folder").toFile();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   137
            largeFolder.deleteOnExit();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   138
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   139
            for (int i = 0; i < FILE_NUMBER; i++) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   140
                File file = new File(largeFolder, "File_" + i + ".txt");
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   141
                file.createNewFile();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   142
                file.deleteOnExit();
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   143
            }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   144
            return largeFolder;
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   145
        } catch (IOException ex) {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   146
            throw new RuntimeException(ex);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   147
        }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   148
    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   149
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   150
    interface ComponentAction {
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   151
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   152
        boolean accept(Component component);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   153
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   154
        void perform(Component component);
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   155
    }
b17c025c01bf 8024413: Add tests for issues JDK-8002077 and JDK-7199708
alexsch
parents:
diff changeset
   156
}