Bizzare error in an applet

A

aaronfude

Hi,

This error has started occurring spontaneously.

I have an applet with a bunch of private memebers and a private
subclass (that implements ListSelectionListener). When the value
changed method refers to one of the private members, I get the
following error?

Exception in thread "AWT-EventQueue-2" java.lang.IllegalAccessError:
tried to access field mypackage.MyApplet.myMember from class
mypackage.MyApplet$MySelectionListener.

When I run essentially the same code as an application, no such problem
occurs.

What the heck is going on?!!

Many thanks in advance.

Aaron
 

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,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top