6
6e
Hi! Im creating a java application that works in a JFrame.
Ive put a button onto my frame called butNewType, however when I try to
add an actionlistener, I get the error "Cannot use this in a static
context"
butNewType.addActionListener(this);
does anybody know a way to work around this, Im sure that there is a
simple solution... Thanks!
butNewType.setMnemonic(KeyEvent.VK_T);
butNewType.setActionCommand("butNewType");
butNewType.setToolTipText("create a new \"type\".");
butNewType.addActionListener(this);
does anybody know a way to work around this, Im sure that there is a
simple solution... Thanks!
Ive put a button onto my frame called butNewType, however when I try to
add an actionlistener, I get the error "Cannot use this in a static
context"
butNewType.addActionListener(this);
does anybody know a way to work around this, Im sure that there is a
simple solution... Thanks!
butNewType.setMnemonic(KeyEvent.VK_T);
butNewType.setActionCommand("butNewType");
butNewType.setToolTipText("create a new \"type\".");
butNewType.addActionListener(this);
does anybody know a way to work around this, Im sure that there is a
simple solution... Thanks!