In an attempt to better organise my code, I decided to have a main class,
public class MainClass extends Applet implements MouseListener, MouseMotionListener
and a second DrawMenu class,
public class DrawMenu extends PopupMenu implements MouseListener, MouseMotionListener, ActionListener
And it works perfect, except that after issuing a command in the menu, I need a repaint() in MainClass... ofc I can't create an instance of MainClass in DrawMenu, can't call MainClass.repaint() as it is not static... so I'm kind of stuck. Is there a proper way to do this, or do I have to put them in the same class?