yay this first time that I develop something larger ;)
My problem: main method display a frame with buttons where you choose what function/action you want to perform. Once you press a button I want the main window become invisible and windows with option for function to become visible.
So what I did is
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == btnFirst)
{
myApp.setVisible(false); // pass control to selected function
doSomething();
myApp.setVisible(true); // retrive control
}
}
however this get me following error
C:\MyApp.java:54: cannot find symbol
symbol : method doSomething()
location: class MyApp
doSomething();
^
with call doSomething() I want to triger this
public RenameImage()
{
myFrame = new JFrame("Do Something");
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
buildGUI();
myFrame.setSize(470,470);
myFrame.setVisible(true);
}
I don't even what to google for :confused: