Merge remote-tracking branch 'origin/master'

This commit is contained in:
apeterescam1982 2019-05-21 15:26:58 -05:00
commit 0a1a5d9415

View File

@ -7,8 +7,8 @@ import java.awt.*;
public class Main extends Applet { public class Main extends Applet {
public static boolean start = false; public static boolean start = false;
private Rectangle startBtn = new Rectangle(100,100,340,600); private Rectangle startBtn = new Rectangle(100,100,340,600);
private Rectangle Lbtn = new Rectangle(100,100,340,600); private Rectangle Lbtn = new Rectangle(480,220,120,80);
private Rectangle Rbtn = new Rectangle(100,100,340,600); private Rectangle Rbtn = new Rectangle(530,220,120,80);
public void paint(Graphics g){ public void paint(Graphics g){
test(g); test(g);
@ -31,7 +31,9 @@ public class Main extends Applet {
start = true; start = true;
repaint(); repaint();
} }
if (Lbtn.inside(x,y)) if (Lbtn.inside(x,y)){
System.out.println("inside lbtn");
}
System.out.println(x+" "+y); System.out.println(x+" "+y);
return true; return true;
} }