• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Update applet text runtime

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 26750
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic