Show the class that is loading
Posted on 2004-04-29
Hi i have an applet that take a lot of classes to load and i have a splash screen that display the user a little image with a JProgressBar with the setIndeterminate() to true. For this i don't care, but what i want is to do like acrobat software that display all plugin that is loading. So when the splashscreen start i want it to display all classes that is loading at the moment the jre load it.
Is there a dynamic way? Cause i know i can use
Class thatClass = Class.forName("TheClassToLoad");
theObject = thatClass.newInstance();
but each time i will have to add a new class i will add to add these line... so i want something that will know which classes the java runtime is loading and display the name to the user