Posted 06 March 2000 - 03:11 PM
Hello again folks.
Well I''m at it again with yet another problem. Basically what I have is a Panel with 4 canvases and 4 labels underneath each canvas (it''s to scroll through the tiles for a game editor). So what I want to do is when I click on a canvas, I want the label underneath it to go a different background color. Well it''s the clicking that''s the problem. Here''s what I tried:
public boolean action (Event evt, Object arg)
String lbl = new String();
for (int x = 0; x < 4; x++)
if (evt.target == canvas[x])
Well needless to say this didn''t work. Does anyone have any other ideas/suggestions? I''d appreciate it.
BTW canvas[x] is another class that extends canvas