Results 1 to 4 of 4
- 04-04-2009, 11:26 AM #1
Member
- Join Date
- Sep 2008
- Posts
- 43
- Rep Power
- 0
Anyone know how to interrupt a process forcibly?
Hi guys,
I've got a java process running from a basic GUI that will sometimes finish quite quickly but other times will take several minutes to finish depending on the size of the calculation I am making.
While the process is running all of the buttons on my GUI are unaccessible.
I was wondering if any of you guys know how to still be able to access the buttons and ultimately if it is possible to interrupt the process also using a button?
Thanks in advance for you help!
:p
- 04-04-2009, 04:08 PM #2
Learn how to handle threading in Swing and your GUI won't be unresponsive.
Lesson: Concurrency in Swing (The Java™ Tutorials > Creating a GUI with JFC/Swing)
db
- 04-05-2009, 07:27 AM #3
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
You need to use a second thread to do the lengthy calculation.
- 04-05-2009, 06:29 PM #4
Member
- Join Date
- Sep 2008
- Posts
- 43
- Rep Power
- 0
Similar Threads
-
Process running or not
By smartsubroto in forum New To JavaReplies: 4Last Post: 11-16-2009, 03:09 AM -
Process name
By logicbug in forum Threads and SynchronizationReplies: 1Last Post: 03-16-2009, 02:11 PM -
Process exit value = 128
By trivektor in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-19-2008, 08:11 AM -
forcibly terminating io operations
By arnab321 in forum CLDC and MIDPReplies: 2Last Post: 11-15-2008, 08:51 PM -
i need help in http process
By sureshjava in forum New To JavaReplies: 0Last Post: 01-29-2008, 04:56 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks