author | ssadetsky |
Wed, 03 Apr 2019 15:43:25 -0700 | |
branch | JDK-8200758-branch |
changeset 57303 | eff0cf668c29 |
parent 54231 | e4813eded7cb |
permissions | -rw-r--r-- |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
1 |
/* |
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
4 |
* |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
8 |
* |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
13 |
* accompanied this code). |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
14 |
* |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
18 |
* |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
21 |
* questions. |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
22 |
*/ |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
23 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
24 |
/* |
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
25 |
@test |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
26 |
@key headful |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
27 |
@bug 4962534 |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
28 |
@summary JFrame dances very badly |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
29 |
@run main bug4962534 |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
30 |
*/ |
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
31 |
|
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
32 |
import java.awt.*; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
33 |
import java.awt.event.*; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
34 |
import java.util.Random; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
35 |
import javax.swing.*; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
36 |
|
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
37 |
public class bug4962534 { |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
38 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
39 |
Robot robot; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
40 |
volatile Point framePosition; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
41 |
volatile Point newFrameLocation; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
42 |
JFrame frame; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
43 |
Rectangle gcBounds; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
44 |
Component titleComponent; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
45 |
JLayeredPane lPane; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
46 |
volatile boolean titleFound = false; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
47 |
public static Object LOCK = new Object(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
48 |
|
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
49 |
public static void main(final String[] args) { |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
50 |
bug4962534 app = new bug4962534(); |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
51 |
app.init(); |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
52 |
app.start(); |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
53 |
} |
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
54 |
|
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
55 |
public void init() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
56 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
57 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
58 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
59 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
60 |
createAndShowGUI(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
61 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
62 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
63 |
} catch (Exception ex) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
64 |
throw new RuntimeException("Init failed. " + ex.getMessage()); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
65 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
66 |
}//End init() |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
67 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
68 |
public void start() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
69 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
70 |
setJLayeredPaneEDT(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
71 |
setTitleComponentEDT(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
72 |
} catch (Exception ex) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
73 |
ex.printStackTrace(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
74 |
throw new RuntimeException("Test failed. " + ex.getMessage()); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
75 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
76 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
77 |
if (!titleFound) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
78 |
throw new RuntimeException("Test Failed. Unable to determine title's size."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
79 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
80 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
81 |
Random r = new Random(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
82 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
83 |
for (int iteration = 0; iteration < 10; iteration++) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
84 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
85 |
setFramePosEDT(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
86 |
} catch (Exception ex) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
87 |
ex.printStackTrace(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
88 |
throw new RuntimeException("Test failed."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
89 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
90 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
91 |
robot = new Robot(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
92 |
robot.setAutoDelay(70); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
93 |
|
28071
3acb75b8df45
8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents:
14889
diff
changeset
|
94 |
robot.waitForIdle(); |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
95 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
96 |
robot.mouseMove(framePosition.x + getJFrameWidthEDT() / 2, |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
97 |
framePosition.y + titleComponent.getHeight() / 2); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
98 |
robot.mousePress(InputEvent.BUTTON1_MASK); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
99 |
|
28071
3acb75b8df45
8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents:
14889
diff
changeset
|
100 |
robot.waitForIdle(); |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
101 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
102 |
gcBounds = |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
103 |
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0].getConfigurations()[0].getBounds(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
104 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
105 |
robot.mouseMove(framePosition.x + getJFrameWidthEDT() / 2, |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
106 |
framePosition.y + titleComponent.getHeight() / 2); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
107 |
|
28071
3acb75b8df45
8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents:
14889
diff
changeset
|
108 |
robot.waitForIdle(); |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
109 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
110 |
int multier = gcBounds.height / 2 - 10; //we will not go out the borders |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
111 |
for (int i = 0; i < 10; i++) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
112 |
robot.mouseMove(gcBounds.width / 2 - (int) (r.nextDouble() * multier), gcBounds.height / 2 - (int) (r.nextDouble() * multier)); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
113 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
114 |
robot.mouseRelease(InputEvent.BUTTON1_MASK); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
115 |
|
28071
3acb75b8df45
8063107: Change open swing regression tests to avoid sun.awt.SunToolkit.realSync, part 2
yan
parents:
14889
diff
changeset
|
116 |
robot.waitForIdle(); |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
117 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
118 |
} catch (AWTException e) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
119 |
throw new RuntimeException("Test Failed. AWTException thrown." + e.getMessage()); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
120 |
} catch (Exception e) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
121 |
e.printStackTrace(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
122 |
throw new RuntimeException("Test Failed."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
123 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
124 |
System.out.println("Mouse lies in " + MouseInfo.getPointerInfo().getLocation()); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
125 |
boolean frameIsOutOfScreen = false; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
126 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
127 |
setNewFrameLocationEDT(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
128 |
System.out.println("Now Frame lies in " + newFrameLocation); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
129 |
frameIsOutOfScreen = checkFrameIsOutOfScreenEDT(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
130 |
} catch (Exception ex) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
131 |
ex.printStackTrace(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
132 |
throw new RuntimeException("Test Failed."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
133 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
134 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
135 |
if (frameIsOutOfScreen) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
136 |
throw new RuntimeException("Test failed. JFrame is out of screen."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
137 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
138 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
139 |
} //for iteration |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
140 |
System.out.println("Test passed."); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
141 |
}// start() |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
142 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
143 |
private void createAndShowGUI() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
144 |
try { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
145 |
UIManager.setLookAndFeel( |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
146 |
"javax.swing.plaf.metal.MetalLookAndFeel"); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
147 |
} catch (Exception ex) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
148 |
throw new RuntimeException(ex.getMessage()); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
149 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
150 |
JFrame.setDefaultLookAndFeelDecorated(true); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
151 |
frame = new JFrame("JFrame Dance Test"); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
152 |
frame.pack(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
153 |
frame.setSize(450, 260); |
54231
e4813eded7cb
8213110: Remove the use of applets in automatic tests
serb
parents:
47216
diff
changeset
|
154 |
frame.setLocationRelativeTo(null); |
14889
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
155 |
frame.setVisible(true); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
156 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
157 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
158 |
private void setJLayeredPaneEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
159 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
160 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
161 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
162 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
163 |
lPane = frame.getLayeredPane(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
164 |
System.out.println("JFrame's LayeredPane " + lPane); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
165 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
166 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
167 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
168 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
169 |
private void setTitleComponentEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
170 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
171 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
172 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
173 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
174 |
for (int j = 0; j < lPane.getComponentsInLayer(JLayeredPane.FRAME_CONTENT_LAYER.intValue()).length; j++) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
175 |
titleComponent = lPane.getComponentsInLayer(JLayeredPane.FRAME_CONTENT_LAYER.intValue())[j]; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
176 |
if (titleComponent.getClass().getName().equals("javax.swing.plaf.metal.MetalTitlePane")) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
177 |
titleFound = true; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
178 |
break; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
179 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
180 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
181 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
182 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
183 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
184 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
185 |
private void setFramePosEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
186 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
187 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
188 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
189 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
190 |
framePosition = frame.getLocationOnScreen(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
191 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
192 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
193 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
194 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
195 |
private boolean checkFrameIsOutOfScreenEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
196 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
197 |
final boolean[] result = new boolean[1]; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
198 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
199 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
200 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
201 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
202 |
if (newFrameLocation.x > gcBounds.width || newFrameLocation.x < 0 |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
203 |
|| newFrameLocation.y > gcBounds.height || newFrameLocation.y |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
204 |
< 0) { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
205 |
result[0] = true; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
206 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
207 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
208 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
209 |
return result[0]; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
210 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
211 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
212 |
private void setNewFrameLocationEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
213 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
214 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
215 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
216 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
217 |
newFrameLocation = new Point(frame.getLocationOnScreen().x |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
218 |
+ frame.getWidth() / 2, frame.getLocationOnScreen().y + titleComponent.getHeight() / 2); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
219 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
220 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
221 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
222 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
223 |
private int getJFrameWidthEDT() throws Exception { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
224 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
225 |
final int[] result = new int[1]; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
226 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
227 |
SwingUtilities.invokeAndWait(new Runnable() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
228 |
@Override |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
229 |
public void run() { |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
230 |
result[0] = frame.getWidth(); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
231 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
232 |
}); |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
233 |
|
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
234 |
return result[0]; |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
235 |
} |
591d504751ec
7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
kshefov
parents:
diff
changeset
|
236 |
}// class |