This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Progress / Status update. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Progress / Status update." Watch "Progress / Status update." New topic

Progress / Status update.

Kriss Reddy
Ranch Hand

Joined: Mar 29, 2005
Posts: 54

First, Thanks for all your help.

I am using net beans gui builder,
Have a JFrame on which I placed two JTrees on left and right side and place a button in the middle. When I click middle button, I copy files from left tree to right tree. This copy logic is implemented in a separate class which I invoke when button is clicked.

So far so good. Now I would like
- to show some kind of status/progress update when the transfer is going on, actually transfer class spits out to System.out.println().
- When transfer is finished, capture that event 'transfer is finished' and show a dialog on which a button is available for user to click which would close the application or reset so that another transfer could start.

I need help in how to implement this not the actual code.

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

I think that this tutorial will answer all your questions.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Kriss Reddy
Ranch Hand

Joined: Mar 29, 2005
Posts: 54
Thanks Wouter. Please let me know if you come across some other tutorials because Sun's tutorials are sometimes complicated for my 'slow to understand' brain.
I agree. Here's the link:
subject: Progress / Status update.
It's not a secret anymore!