how to invoke system calculator in java
/**
*
* @see
* @param
* @return String
* Description : displayCalculator() displays system calculator on screen
*
* Date : Oct 31, 2009
* Coded by : +joseph james
*/
public String displayCalculator(){
*
* @see
* @param
* @return String
* Description : displayCalculator() displays system calculator on screen
*
* Date : Oct 31, 2009
* Coded by : +joseph james
*/
public String displayCalculator(){
Process process = null;
try {
process = Runtime.getRuntime().exec(“calc”);
}
catch (IOException e) {
process = Runtime.getRuntime().exec(“calc”);
}
catch (IOException e) {
e.printStackTrace();
}
catch (Exception exp){
JOptionPane.showMessageDialog(null, ” use Microsoft xp “);
}
return SUCCESS;
}
}
catch (Exception exp){
JOptionPane.showMessageDialog(null, ” use Microsoft xp “);
}
return SUCCESS;
}
No comments:
Post a Comment
Your feedback may help others !!!