I'm coding, to open windows calculator, but the compiler is giving an error:
unreported exception IOException; must be caught or declared to be thrown.
If I write throws against the ActionListener
method then it is not overridden.
Part of the code:
else if(e.getActionCommand().equals("Window Calculator")) {
Runtime.getRuntime().exec("calc");
}