Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import javax.swing.ImageIcon;
  2.  
  3. public class Karte {
  4. private int wert;
  5. private String name;
  6. private ImageIcon icon;
  7.  
  8. public Karte(int wert, String name, String fileName) {
  9. this.name = name;
  10. this.wert = wert;
  11. this.icon = new ImageIcon(fileName);
  12. }
  13.  
  14. public String getName() {
  15. return name;
  16. }
  17.  
  18. public int getWert() {
  19. return wert;
  20. }
  21.  
  22. public ImageIcon getIcon() {
  23. return icon;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement