PropertyChangeListener for an int value

What I want is that a few variables update accordingly when one specific int's value changes. I heard PropChListener would provide this feature (well, not specifically for integers, but..), and so I tried it.

intVariable.addPropertyChangeListener(this);

but at compile I get "int cannot be dereferenced". How'd I get it working? Am I completely wrong?

[405 byte] By [Lombraa] at [2007-11-27 1:30:17]
# 1
You need to convert the int to an Integer.
camickra at 2007-7-12 0:31:09 > top of Java-index,Desktop,Core GUI APIs...