- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShopButton.java
More file actions
Latest commit
18 lines (14 loc) · 549 Bytes
/
Copy pathShopButton.java
File metadata and controls
18 lines (14 loc) · 549 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
packageGrafica.JavaClashOfClans;
importjava.awt.event.ActionEvent;
importjava.awt.event.ActionListener;
publicclassShopButtonextendsCardLayoutButton {
publicShopButton(MainWindowmainWindow) {
super("NEGOZIO", MainWindow.calcRightX(mainWindow, 25) - 150, MainWindow.calcBottomY(mainWindow, 25) - 150, 150, 150);
addActionListener(newActionListener() {
@Override
publicvoidactionPerformed(ActionEvente) {
mainWindow.switchGameState("Shop");
}
});
}
}