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 =
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