Добавлен объект для управления с клавиатуры и мыши
This commit is contained in:
parent
683072f003
commit
57f0c23688
@ -27,6 +27,11 @@ public class FileIconsWindow extends JFrame {
|
|||||||
public void execute() {
|
public void execute() {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
|
||||||
|
// Добавляем элемент которым будем управлять.
|
||||||
|
FileIconPaintable controllable = new FileIconPaintable(1.8, new Color(0x0E7405), true);
|
||||||
|
controllable.setLocation(10, HEIGHT - 80);
|
||||||
|
panel.addPaintable(controllable);
|
||||||
|
|
||||||
Random rnd = new Random();
|
Random rnd = new Random();
|
||||||
final int size = 8;
|
final int size = 8;
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user