views:

175

answers:

0

Hi ,

I'm working in fedora. I want to create a GUI in java , with two buttons : START and STOP. i have two processes : p1 and p2. When i click on START , the process p1 should run in the background and process p2 should run in the foreground. < in terminal , we do this by giving ./p1 & ./p2 > And when i click on STOP , both the processes should be killed < terminal equivalent is : CTRL+C and kill -9 pid > .

Can anyone suggest the way to do this..

Thanks in advance !