Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add label to frame during button action

 
Krithika Beri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My requirement is that there is a process which is taking place which takes quite some time. The process starts when a button is clicked. So when the button is clicked, I want to add a Label before the actual process starts to show that the process is in progress. But what i found is that, after the button action is completed only then the JFrame is updated with the label. Please help
 
Maneesh Godbole
Saloon Keeper
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be better than a simple JLabel, if you're in a position to take up the extra learning: How to Use Progress Bars
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic