title: How to show loading
body: <p>I want to know how to show the loading of an application.  Normally (let's say Netbeans IDE,)
  the application will show how far it has loaded and how far to load.  Also, loading classes as well can be seen in welcome page. How is this is done and how we can show our classes loading and loaded status (in a progress bar) in our applications?  Also let's say that we have used Hibernate, and there is a login on first page, it takes time to start but only for the starting (I think it is because that the Hibernate factory is getting started and load its classes). The answer is hoped in Java.</p>