Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update applet text runtime

 
Paks Shukla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Shukla and welcome to the Ranch! We don't have too many rules here, but we do ask that you BeForthrightWhenCrossPostingToOtherSites <- link

http://www.codeguru.com/forum/showthread.php?s=3e604b9bc696741de01a821c634439bf&p=2060955
http://www.java-forums.org/awt-swing/56987-update-applet-text-runtime.html

Any more?
 
Paks Shukla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21576
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic