11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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.
22 */
23
24 /* @test
25 * @key headful
26 * @bug 6725409
27 * @requires (os.family == "windows")
28 * @summary Checks that JInternalFrame's system menu
29 * can be localized during run-time
30 * @author Mikhail Lapshin
31 * @library ../../../../lib/testlibrary/
32 * @modules java.desktop/com.sun.java.swing.plaf.windows
33 * @build ExtendedRobot
34 * @run main bug6725409
35 */
36
37 import javax.swing.*;
38 import java.awt.*;
39
40 public class bug6725409 {
41 private JFrame frame;
42 private JInternalFrame iFrame;
43 private TestTitlePane testTitlePane;
44 private boolean passed;
45 private static ExtendedRobot robot = createRobot();
46
47 public static void main(String[] args) throws Exception {
48 try {
49 UIManager.setLookAndFeel(
50 new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel());
51 } catch(UnsupportedLookAndFeelException e) {
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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.
22 */
23
24 /* @test
25 * @key headful
26 * @bug 6725409
27 * @requires (os.family == "windows")
28 * @summary Checks that JInternalFrame's system menu
29 * can be localized during run-time
30 * @author Mikhail Lapshin
31 * @library ../../../../lib/client/
32 * @modules java.desktop/com.sun.java.swing.plaf.windows
33 * @build ExtendedRobot
34 * @run main bug6725409
35 */
36
37 import javax.swing.*;
38 import java.awt.*;
39
40 public class bug6725409 {
41 private JFrame frame;
42 private JInternalFrame iFrame;
43 private TestTitlePane testTitlePane;
44 private boolean passed;
45 private static ExtendedRobot robot = createRobot();
46
47 public static void main(String[] args) throws Exception {
48 try {
49 UIManager.setLookAndFeel(
50 new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel());
51 } catch(UnsupportedLookAndFeelException e) {
|