File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
test/jdk/javax/swing/text/DefaultEditorKit/4278839 Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -62,12 +62,6 @@ public void run() {
62
62
robo .waitForIdle ();
63
63
64
64
area .setCaretPosition (0 );
65
-
66
- if ("Aqua" .equals (UIManager .getLookAndFeel ().getID ())) {
67
- Util .hitKeys (robo , KeyEvent .VK_HOME );
68
- } else {
69
- Util .hitKeys (robo , KeyEvent .VK_CONTROL , KeyEvent .VK_HOME );
70
- }
71
65
robo .waitForIdle ();
72
66
73
67
passed &= moveCaret (true ) == 1 ;
@@ -152,6 +146,7 @@ private static void createAndShowGUI() {
152
146
frame = new JFrame ();
153
147
frame .setTitle ("Bug# 4278839" );
154
148
frame .setSize (200 , 200 );
149
+ frame .setLocationRelativeTo (null );
155
150
frame .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
156
151
area = new JTextArea ("\n aaa bbb\n ccc ddd\n " );
157
152
frame .getContentPane ().add (new JScrollPane (area ));
You can’t perform that action at this time.
0 commit comments