How to relate a button to "control+c"

Hi:

I am using runtime class to run a java program from within

the original java program.

My question is if I run a endless loop program from within the original program,

is there a way for me to just click a button and let the endless loop

program terminate?

It is like in console environment, by clicking control+c then the program stops.

The original program still runs but the endless loop program terminates.

Thanks

[478 byte] By [tienfuliua] at [2007-10-1 5:56:49]
# 1
i do not know if this will be happend in button but in menu we can set ctrl+cuse setAcceleratorbuttonOne.setAccelerator( /* i forget the parameter */ )
JavaLEara at 2007-7-9 14:12:41 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...