Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.ImageIcon;
- public class Karte {
- private int wert;
- private String name;
- private ImageIcon icon;
- public Karte(int wert, String name, String fileName) {
- this.name = name;
- this.wert = wert;
- this.icon = new ImageIcon(fileName);
- }
- public String getName() {
- return name;
- }
- public int getWert() {
- return wert;
- }
- public ImageIcon getIcon() {
- return icon;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement