how to get the instance of class that includes the component which activats action ev
public class myone extends JFrame
the above is a main class,how to get the instance of myone that includes the variable addbtn from below?
public class mylistener extends WindowAdapter implements ActionListener
public void actionPerformed(ActionEvent e)
Object ob= e.getSource();
, Ranch Hand
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards
This thread has been viewed 599 times.
All times above are in ranch (not your local) time.
The current ranch time is
Jun 21, 2018 00:52:47.