Geat
09-22-2003, 10:29 AM
We're currently developing an applet for editing web pages, and we've come across a problem.
The user has previously chosen a colour scheme and as such has an arbitrary number of colours they can select for text. We create the interface for the pallette with buttons, which are created via a loop. However, the event listener does not accept the button as a valid object from which to display the value.
Basically, how do we create an unfixed number of buttons with listeners thereon?
The user has previously chosen a colour scheme and as such has an arbitrary number of colours they can select for text. We create the interface for the pallette with buttons, which are created via a loop. However, the event listener does not accept the button as a valid object from which to display the value.
Basically, how do we create an unfixed number of buttons with listeners thereon?