Posted by Frank Hale on 1999-07-13
>
> Usage:
>
> DoubleBuffer db = new DoubleBuffer();
> ImageButton i = new ImageButton("image.gif");
> db.add(i);
> add("Center", db);
>
> Then define your button behaviour (ie. what you want
> to happen when the button is clicked) like so:
>
> f.addClickListener(f.new ClickEventClass() {
> public void preformClickEvent() {
> System.out.println("You clicked the
> ImageButton");
> }
> }, this);
>
Oops the above should read for the example I gave like
so:
i.addClickListener(f.new ClickEventClass() {
public void preformClickEvent() {
System.out.println("You clicked the
ImageButton");
}
}, this);
You add a click listener to the button to define its
behavoir.
Sorry for the typo. Hopefully it didn't cause any
confusion.
Frank
===
ICQ: 7205161
Webpage: http://jade.netpedia.net/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Previous post | Next post | Timeline | Home