GUI Objekte 0.1 Debug 2

Import erneut verbessert ("Java" zu "java")
"redraw()" Methoden nun überall zu "public" geändert
master
Zocker1999NET 9 years ago
parent e543bf666a
commit 3ebea693cb

@ -1,5 +1,5 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import Java.awt.Color;
import java.awt.Color;
/**
* Diese Klasse stellt einen Button dar.
@ -67,7 +67,7 @@ public class Button extends GUI_Interface {
}
}
private void redraw() {
public void redraw() {
GreenfootImage tI = new GreenfootImage(text,textSize,foreC,backC);
GreenfootImage corner = new GreenfootImage("images/Button_Corner.png");
int csx = corner.getWidth();

@ -1,5 +1,5 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import Java.awt.Color;
import java.awt.Color;
/**
* Zeigt einen Text an.
@ -14,7 +14,7 @@ public class Label extends GUI_Interface {
int textSize = 1;
String text = "";
private void redraw() {
public void redraw() {
GreenfootImage tI = new GreenfootImage(text,textSize,foreC,backC);
setImage(tI);
}

Loading…
Cancel
Save