mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 08:49:44 +02:00
Merge branch 'master' of github.com:jokerx3/prp
This commit is contained in:
@@ -6,6 +6,10 @@ import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JLabel;
|
||||
|
||||
|
||||
public class Objekt {
|
||||
private static int numberOfInstances;
|
||||
@@ -22,13 +26,13 @@ public class Objekt {
|
||||
*
|
||||
*/
|
||||
|
||||
Objekt(String filename) throws IOException {
|
||||
public Objekt(String filename) throws IOException {
|
||||
numberOfInstances++;
|
||||
objectImage = ImageIO.read(new File(filename));
|
||||
objectLabel = new JLabel(new ImageIcon(objectImage));
|
||||
}
|
||||
|
||||
Objekt(char objectIdentifier) throws IOException {
|
||||
public Objekt(char objectIdentifier) throws IOException {
|
||||
numberOfInstances++;
|
||||
String filename = getImageFilename(objectIdentifier);
|
||||
System.out.println(filename);
|
||||
|
||||
@@ -11,6 +11,9 @@ import javax.swing.BorderFactory;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import de.heatup.objects.Gegner;
|
||||
import de.heatup.objects.Objekt;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user