fireStateChanged() not working

I

IKerr.

Hi,

I have a custom spinner model attached to a JSpinner. I have used this
before in a banually built app and can attach an event handler to it and
capture the events, but now I have made it into a bean, dropped it onto a
form and the ide's events tab where you choose which event you want to
listen to is blan - as though no events whatsoever are available to attach
to.

I have 2 classes, a main class which instantiates the custom model and binds
itself to it. This class extends JSpinner. The second class is the spinner
model and it has the following included in it.

public void setValue(Object value) {
int new_value = ((Number)value).intValue();

if (new_value != this.currentValue) {
this.currentValue = new_value;
fireStateChanged();
}
}

As I say, this is working in a manually built app, why won't the property
sheet for events in forte display any events - what have I done wrong ? I
have beaninfoclasses generated by forte.

thanks

Iain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top