Re: EventListener

1999-08-23 Thread Pavel Tolkachev
One way is to store your frame somewhere in your MIActionListener. With minimum changes in your code you can write like this menulistener.addActionListener(new MIActionListener(this)); class MIActionListener implements ActionListener{ Frame f; MIActionListener(Frame f) { this.f =

EventListener

1999-08-22 Thread ALPESH KOTHARI
Hello all, I am developing a GUI using JAVA 2 on linux. There is one menuitem, which when pressed should resize my main window. But I am not exactly able to write the resize code in the actionlistener.. class xxx extends JFrame{ . . . menulistener.addActionListener(new