File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Update applet text runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Update applet text runtime" Watch "Update applet text runtime" New topic

Update applet text runtime

Paks Shukla

Joined: Mar 20, 2012
Posts: 4
I am new bee in Java. First I'm sorry if posting at wrong place.
I am developing 1 applet program which download the file from server to user system then install it and run it.
My issue is I want applet text to change according to process going on. If it is downloading file from server then it should display "downloading...", if it is installing then text should "Installing...", and at last "successfully installed..."
How can I do that? Please help me out.
Thanks in advance whoever help me..
Darryl Burke

Joined: May 03, 2008
Posts: 5115

Hello Shukla and welcome to the Ranch! We don't have too many rules here, but we do ask that you BeForthrightWhenCrossPostingToOtherSites <- link

Any more?

luck, db
There are no new questions, but there may be new answers.
Paks Shukla

Joined: Mar 20, 2012
Posts: 4
Sorry. But I am new and I am not aware about this rule.
I'm stucked out in my program and thought to get solution from anywhere.
I'll be careful next time about this.
Please let me get help this time.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

To change the text on a JLabel you call its setText() method. Have you not tried that already? If you didn't know that then I would suggest you go through the Swing tutorial and acquire basic knowledge about Swing programming.

However if you did try that and you are having some problem with making it work, then you should ask a question about that problem. See TellTheDetails if you don't see why that would be a good idea.
Paks Shukla

Joined: Mar 20, 2012
Posts: 4
Hi Paul,

below is my applet code. Can you help me out with my code.
I have one more issue in my code for mac os that I will let you know later on.

My applet code does everything what I need (it download, install and run the application). Now I just want to display static text whatever going on in my applet.
I have set a 'text' variable then repaint() the applet but it's not working.
Please suggest me here..
I agree. Here's the link:
subject: Update applet text runtime
It's not a secret anymore!