Button event
- From: jaap <news@xxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 00:58:01 +0200
Hello
I'm a real noob with java. I worked for 4 years with php but now I have to use java.
I'm looking for a clean way to get an action behind a button/menuitem. I already found the class actionListener. but the method actionpreformed is not very clean if you want to give 20 buttons an action. The way I know is 20 times else if. There must be an better method.
I will try to use my GUI like an interface. It does'nt have to include much code in my opinion. I think it have to be only some field and button delcarations.
thx for your help
greetz
Jaap
.
- Follow-Ups:
- Re: Button event
- From: nblloyd@xxxxxxxxx
- Re: Button event
- From: Thomas Fritsch
- Re: Button event
- From: IchBin
- Re: Button event
- From: Brandon McCombs
- Re: Button event
- Prev by Date: Re: GridBagBlues #2376234
- Next by Date: Re: Button event
- Previous by thread: GridBagBlues #2376234
- Next by thread: Re: Button event
- Index(es):