Yes its possible.
Get the runtime instance of the application and then execute the command.All this should be implemented within the actionlistener. Hope this is helpful.
sample action listener code:
******************************************
JButton button1= new JButton("Button1");
button1.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
try{
String command = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE
http://java.sun.com/" ;
Process link = Runtime.getRuntime().exec(command);
}
catch(Exception ex){
System.out.println("cannot execute command. " +ex);
}
}
});