- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.java
More file actions
Latest commit
21 lines (19 loc) · 452 Bytes
/
Copy pathButton.java
File metadata and controls
21 lines (19 loc) · 452 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
importjava.lang.*;
importjava.awt.*;
importjavax.swing.*;
importjava.awt.event.*;
importjava.util.*;
publicclassButtonextendsJButton
{
JButtonbtnPuzzle;
Randomrnd= newRandom();
finalintHight=100;
finalintLength=100;
Button(Stringcap)
{
super(cap);
intXaxis = rnd.nextInt(700)+100;
intYaxis = rnd.nextInt(600);
setBounds(Xaxis,Yaxis,Hight,Length);
}//constructor
}//class