Using Swing package with Process and Runtime classes

Status
Not open for further replies.

Mr Cappuccino

Junior Member level 1
Joined
Apr 22, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,408
I happened to make a utility that used Process and Runtime classes of java to initiate a C program. I created a GUI in java but the output of the C program only was displayed in the GUI when the C program terminated. So if the C program printed 30 lines, instead of showing the lines 1 by 1 as it would when the C program is run directly, all of the 30 output lines came together. Anybody has an idea how to solve this problem ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…