Hi, I was wondering if anyone could help me out with a program. I've only been messing around with Java for a few weeks, so currently I suck but..
Ok. I've got an application that creates a Menu. What I want it to do, is for another program (my calculator program) to appear in the screen when you click one of the Menu Items called "Calculator". So basically I want it to kind of link to the Calculator. I guess it's something to do with this part:
But I don't know how to do this. Can anyone help? It would be much appreciated!
Ok. I've got an application that creates a Menu. What I want it to do, is for another program (my calculator program) to appear in the screen when you click one of the Menu Items called "Calculator". So basically I want it to kind of link to the Calculator. I guess it's something to do with this part:
public boolean action (Event evt, Object o)
{
if(evt.target instanceof MenuItem)
if (evt.target == calc)
{
I guess something should go here..
}
return (false);
}
But I don't know how to do this. Can anyone help? It would be much appreciated!
