fdai6040
2 years ago
2 changed files with 52 additions and 8 deletions
@ -0,0 +1,34 @@ |
|||
package src; |
|||
|
|||
import javax.swing.*; |
|||
|
|||
public class Field extends JPanel { |
|||
private int x; |
|||
private int y; |
|||
|
|||
private JLabel jLabel; |
|||
|
|||
public JLabel getjLabel() { |
|||
return jLabel; |
|||
} |
|||
|
|||
public void setMyJLabel(JLabel jLabel){ |
|||
this.jLabel = jLabel; |
|||
} |
|||
|
|||
public int getMyX() { |
|||
return x; |
|||
} |
|||
|
|||
public int getMyY() { |
|||
return y; |
|||
} |
|||
|
|||
public void setMyX(int x) { |
|||
this.x = x; |
|||
} |
|||
|
|||
public void setMyY(int y) { |
|||
this.y = y; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue