File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4040import java .awt .*;
4141import java .awt .event .*;
4242import javax .swing .*;
43+ import javax .swing .plaf .metal .MetalLookAndFeel ;
4344import test .java .awt .regtesthelpers .Util ;
4445
4546public class HWDisappear
@@ -109,7 +110,7 @@ public void actionPerformed(java.awt.event.ActionEvent e) {
109110
110111 // Click on the button.
111112 Point bLoc = b .getLocationOnScreen ();
112- robot .mouseMove (bLoc .x + b .getWidth () / 2 , bLoc .y + 5 );
113+ robot .mouseMove (bLoc .x + b .getWidth () / 2 , bLoc .y + b . getHeight () / 2 );
113114
114115 robot .mousePress (InputEvent .BUTTON1_MASK );
115116 robot .mouseRelease (InputEvent .BUTTON1_MASK );
@@ -148,8 +149,9 @@ public void actionPerformed(java.awt.event.ActionEvent e) {
148149 // instantiated in the same VM. Being static (and using
149150 // static vars), it aint gonna work. Not worrying about
150151 // it for now.
151- public static void main ( String args [] ) throws InterruptedException
152+ public static void main ( String args [] ) throws Exception
152153 {
154+ UIManager .setLookAndFeel (new MetalLookAndFeel ());
153155 mainThread = Thread .currentThread ();
154156 try
155157 {
You can’t perform that action at this time.
0 commit comments