I want to creat a Object of the Button class and put it into the world, but nothing happens.
No compile mistake and no runtime error is found. It just seems to do nothing.
This is the code where i want to add the object.
The used part of the constructor is:
When the "ZoomBox" is clicked a little bit of math go on and it should zoom in where the "ZoomBox" is. The box looks like this:
[Disallowed URL]
But realy nothing happen. It can't be created, becaus in this case it must zoom in directly or ther must be the image visible but nothing happens.
Is it incorrectly programmed?
I know you can't follow all steps that happens when the project is running, but is there a mistake so far?
public void zoomIn(Spiel w) { Button box = new Button("ZoomBox",1); w.addObject(box,0,0); ZoomStatus = true; }
public Button(String type, int value) { group = type; definition = value; if(group == "ZoomBox") { if(definition == 1) { setImage("ZoomBox.png"); } } }