This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Dispose JFrame  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded the following Class from the net, its just displaying a progressbar while a task is running, I need to dispose the whole Class when the task is finished automatically?, this code is downloaded from a Demo website and mostly the programmer decide the way his application runs, and I do see so many applications which displays a progressBar while something is running and then it disappears automatically, and adding dispose() after line 53 does not help, it disposes the JFrame immediately!!
Posts: 64471
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please remind yourself how the code button works. I have corrected it for you just this once and doesn&apost it look better
Please always tell us where such code comes from, to reduce copyright problems and to allow us to assess the original.
It is unusua to dispose a GUI programmatically as you are suggesting. You can try adding a dispose() call after line 53. It is normal to get the user to clck the close button..
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!