author | brutisso |
Mon, 16 Dec 2013 13:43:06 +0100 | |
changeset 22204 | eef85c68cec0 |
parent 5954 | fc070edf8e98 |
child 27764 | 4e79ff3e0602 |
permissions | -rw-r--r-- |
1285
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
1 |
/* |
5954
fc070edf8e98
6959266: test javax/swing/JInternalFrame/6725409/bug6725409.java should be modified
malenkov
parents:
5506
diff
changeset
|
2 |
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
1285
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
4 |
* |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
8 |
* |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
13 |
* accompanied this code). |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
14 |
* |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
18 |
* |
5506 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
1285
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
22 |
*/ |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
23 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
24 |
/* @test |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
25 |
* @bug 6725409 |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
26 |
* @summary Checks that JInternalFrame's system menu |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
27 |
* can be localized during run-time |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
28 |
* @author Mikhail Lapshin |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
29 |
*/ |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
30 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
31 |
import javax.swing.*; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
32 |
import java.awt.*; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
33 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
34 |
public class bug6725409 { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
35 |
private JFrame frame; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
36 |
private JInternalFrame iFrame; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
37 |
private TestTitlePane testTitlePane; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
38 |
private boolean passed; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
39 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
40 |
public static void main(String[] args) throws Exception { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
41 |
try { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
42 |
UIManager.setLookAndFeel( |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
43 |
new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel()); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
44 |
} catch(UnsupportedLookAndFeelException e) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
45 |
System.out.println("The test is for Windows LaF only"); |
5954
fc070edf8e98
6959266: test javax/swing/JInternalFrame/6725409/bug6725409.java should be modified
malenkov
parents:
5506
diff
changeset
|
46 |
return; |
1285
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
47 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
48 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
49 |
final bug6725409 bug6725409 = new bug6725409(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
50 |
try { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
51 |
SwingUtilities.invokeAndWait(new Runnable() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
52 |
public void run() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
53 |
bug6725409.setupUIStep1(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
54 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
55 |
}); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
56 |
realSync(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
57 |
SwingUtilities.invokeAndWait(new Runnable() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
58 |
public void run() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
59 |
bug6725409.setupUIStep2(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
60 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
61 |
}); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
62 |
realSync(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
63 |
SwingUtilities.invokeAndWait(new Runnable() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
64 |
public void run() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
65 |
bug6725409.test(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
66 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
67 |
}); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
68 |
realSync(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
69 |
bug6725409.checkResult(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
70 |
} finally { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
71 |
if (bug6725409.frame != null) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
72 |
bug6725409.frame.dispose(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
73 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
74 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
75 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
76 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
77 |
private void setupUIStep1() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
78 |
frame = new JFrame(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
79 |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
80 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
81 |
JDesktopPane desktop = new JDesktopPane(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
82 |
iFrame = new JInternalFrame("Internal Frame", true, true, true, true); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
83 |
iFrame.setSize(200, 100); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
84 |
desktop.add(iFrame); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
85 |
frame.add(desktop); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
86 |
iFrame.setVisible(true); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
87 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
88 |
frame.setSize(500, 300); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
89 |
frame.setLocationRelativeTo(null); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
90 |
frame.setVisible(true); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
91 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
92 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
93 |
private void setupUIStep2() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
94 |
UIManager.put("InternalFrameTitlePane.restoreButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
95 |
"CUSTOM.restoreButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
96 |
UIManager.put("InternalFrameTitlePane.moveButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
97 |
"CUSTOM.moveButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
98 |
UIManager.put("InternalFrameTitlePane.sizeButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
99 |
"CUSTOM.sizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
100 |
UIManager.put("InternalFrameTitlePane.minimizeButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
101 |
"CUSTOM.minimizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
102 |
UIManager.put("InternalFrameTitlePane.maximizeButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
103 |
"CUSTOM.maximizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
104 |
UIManager.put("InternalFrameTitlePane.closeButtonText", |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
105 |
"CUSTOM.closeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
106 |
SwingUtilities.updateComponentTreeUI(frame); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
107 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
108 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
109 |
// The test depends on the order of the menu items in |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
110 |
// WindowsInternalFrameTitlePane.systemPopupMenu |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
111 |
private void test() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
112 |
testTitlePane = new TestTitlePane(iFrame); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
113 |
passed = true; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
114 |
checkMenuItemText(0, "CUSTOM.restoreButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
115 |
checkMenuItemText(1, "CUSTOM.moveButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
116 |
checkMenuItemText(2, "CUSTOM.sizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
117 |
checkMenuItemText(3, "CUSTOM.minimizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
118 |
checkMenuItemText(4, "CUSTOM.maximizeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
119 |
// Skip separator |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
120 |
checkMenuItemText(6, "CUSTOM.closeButtonText"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
121 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
122 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
123 |
private void checkMenuItemText(int index, String text) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
124 |
JMenuItem menuItem = (JMenuItem) |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
125 |
testTitlePane.getSystemPopupMenu().getComponent(index); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
126 |
if (!text.equals(menuItem.getText())) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
127 |
passed = false; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
128 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
129 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
130 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
131 |
private void checkResult() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
132 |
if (passed) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
133 |
System.out.println("Test passed"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
134 |
} else { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
135 |
throw new RuntimeException("Unable to localize " + |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
136 |
"JInternalFrame's system menu during run-time"); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
137 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
138 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
139 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
140 |
private static void realSync() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
141 |
((sun.awt.SunToolkit) (Toolkit.getDefaultToolkit())).realSync(); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
142 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
143 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
144 |
// Extend WindowsInternalFrameTitlePane to get access to systemPopupMenu |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
145 |
private class TestTitlePane extends |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
146 |
com.sun.java.swing.plaf.windows.WindowsInternalFrameTitlePane { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
147 |
private JPopupMenu systemPopupMenu; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
148 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
149 |
public TestTitlePane(JInternalFrame f) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
150 |
super(f); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
151 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
152 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
153 |
public JPopupMenu getSystemPopupMenu() { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
154 |
return systemPopupMenu; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
155 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
156 |
|
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
157 |
protected void addSystemMenuItems(JPopupMenu menu) { |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
158 |
super.addSystemMenuItems(menu); |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
159 |
systemPopupMenu = menu; |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
160 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
161 |
} |
d2d433263986
6725409: Unable to localize JInternalFrame system menu during run-time
mlapshin
parents:
diff
changeset
|
162 |
} |