Show the class that is loading

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
thx

maybe this could help
it's a class i had to load the applet, that give me the possibility to start my splash screen before the user dl all my big applet
import javax.swing.JApplet;
import java.applet.AppletStub;
import java.awt.Graphics;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JEditorPane;
public class QuickLoader extends JApplet implements Runnable, AppletStub
    String appletToLoad;
    JLabel label;
    Thread appletThread;
    public void init()
        appletToLoad = getParameter("applet");
        if (appletToLoad == null)
            label = new JLabel("No applet to load.");
        else
            label = new JLabel("Please wait - loading applet " + appletToLoad);
        getContentPane().add(label);
    public void run()
        if (appletToLoad == null)
            return;
        try
            // Get the class for the applet we want
            Class appletClass = Class.forName(appletToLoad);
            // Create an instance of the applet
            JApplet realJApplet = (JApplet)appletClass.newInstance();
            // Set the applet's stub - this will allow the real applet to use
            // this applet's document base, code base, and applet context.
            realJApplet.setStub(this);
            // Remove the old message and put the applet up
            getContentPane().remove(label);
            // The grid layout maximizes the components to fill the screen area
            // - you want the real applet to be maximized to our size.
            getContentPane().setLayout(new GridLayout(1, 0));
            // Add the real applet as a child component
            getContentPane().add(realJApplet);
            // Crank up the real applet
            realJApplet.init();
            realJApplet.start();
        catch (Exception e)
            // If we got an error anywhere, print it
            label.setText("Error loading applet.");
        // Make sure the screen layout is redrawn
        getContentPane().validate();
    public void start()
          appletThread = new Thread(this);
          appletThread.start();
    public void stop()
          appletThread.interrupt();
          appletThread = null;
    // appletResize is the one method in the JAppletStub interface that
    // isn't in the JApplet class. You can use the applet resize
    // method and hope it works.
    public void appletResize(int width, int height)
          resize(width, height);
}bu i don't know how to integrate your code to load all my classes correctly and be able to display the name of the class that are loading
thx for help

Similar Messages

  • When I first am looking at my newly uploaded photos in "Library", a box appears near the bottom of the photo that says "loading" (the photo looks good to me), then it is more "faded" and does not look as good.  Is there some setting on that I am not aware

    When I am first looking at my newly uploaded photos in "Library," a box appears near the bottom of the photo that says "Loading".  While it is loading, I usually think the photo looks "good".  After the photo is done loading, it looks more washed out.  Is there some sort of setting that I might have on (or that I need to turn on) so that this does not happen.  I have Lr4.  Thanks.

    Hi Tracy,
    There used to be a way to see if poster was new to the forum.., anyway - welcome to the forum.
    As I was alluding to, biggest differences in initial display are due to:
    * Camera calibration profile.
    * Auto-exposure/contrast settings (for which compensations have been auto-applied in camera, but not in Lightroom).
    So, choose a matching camera calibration profile (whether that's an option or not depends on your camera model - they're available for many but not all models) if you prefer one of them over "Adobe Standard" (the factory default profile).
    Also, your camera covers for underexposure due to non-optimal auto-exposure/contrast setting, Lightroom doesn't, so your options are:
    * turn it off in camera.
    * learn to compensate manually (or automatically via a plugin) in Lightroom.
    Of course, in addition to preferred defaults (alt-click big "reset" button in dev module), come up with some presets which are appropriate for your druthers and type of photography.. e.g. these will compensate Nikon ADL settings:
    http://www.robcole.com/LrForumSupport/ADL%20Compensations%20%282012%29.zip
    Cheers,
    Rob

  • Problem with setting up new Ipad Air2:I can't set up my new Ipad using new Apple ID and it keeps showing the notification that wrong email or password and try again. I can log in Itune with thesame

    I can't set up my new Ipad using new Apple ID and it keeps showing the notification that wrong email or password and try again. I can log in Itune with the same ID. Please help me if you have come across the same issue. Thank you!

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • My hard drive crashed and I have lost my Itunes library. How can I get my the music that I loaded from my own CDs back on my PC from my iPod?

    My hard drived crashed in my HP Pavilion desktop and I have installed a new one. I have Windows 2007. My Itunes library is gone. How can I get all the music that I loaded onto my iPod from my own CD's back into an Itunes library?

    The loading of audio files to iPod is designed to go one way only: computer to iPod. There are some third-party applications available which will rescue an audio library and write the files back to a PC HDD. The playlists might not copy, nor the album art work, nor videos but you might be able to recover all audio files. Some apps are open source and available for free download, for example: Senuti, Onyx. There are others which are  Windows-based; do a Google search to find out. 

  • HELP iPod classic (2007) 80 GB FROZEN SCREEN (Now Playing window showing the song that is suppose to be playing, will not respond to buttons, Will not SYNC, iTunes does not recognize it AT ALL when I plug it in. Has anyone had similar experience? fixed?

    HELP
    My iPod classic (2007) 80 GB FROZEN SCREEN (Now Playing window showing the song that is suppose to be playing, will not respond to buttons, Will not SYNC, iTunes does not recognize it AT ALL when I plug it in. Will not shut off, will not charge... pretty frustrated, I updated it recently (within the last 10 days....Has anyone had similar experience? If so was it fixed? Please post any help for me... thank you... I am pretty frustrated right now.

    its fixed!!  After posting my problem with the FROZEN ipod classic (2007) 80 gb a screen popped up with similar subjects that I did not find in my original search.  'Rich Fleming' in the community posted a suggestion to someone with a similar frozen issue and it WORKED when I tried it. 
    hold the 'menu' and the 'circle' buttons down at the same time, KEEP the pressed until the apple appears. and now it is working.  Hope this helps others.

  • I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    You will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to your computer (that will copy PDFs and epubs that are in the iBooks app, not just actual ibooks), and you can then sync them to your iPhone. Or you might be able to open each PDF in iBooks on your iPad and use the share icon to email them to yourself and then use 'open in' in the Mail app on your iPhone to copy them to its iBooks app (if the PDF is protected then you may not get the email option via the share icon).
    The Settings > iBooks > Sync Collections setting doesn't copy items between devices, it just means that it a bookor PDF is on both devices and you move it into a collection on one device then it will be moved into the same collection on the other device

  • IPhoto 11 doesn't show the photos that I just imported from an SD card, but says its importing to library 15 min after SD card is removed.

    iPhoto 11 doesn't show the photos that I just imported from an SD card, but says its importing to library 15 min after SD card is removed. The import seemed to start normally, I went to mail to check messages, came back to iPhoto & the usual prompt about wanting to delete the photos on the card never came up. The photos didn't show up in events or the library & the device icon wasn't showing so I tried to import again. A prompt then came up saying that I needed to wait until the import was done!

    Hi, this problem is also happening to me also. I just took some pics of my daughter on my nikon d3100 and imported them from SD card to iPhoto. It says 'preparing to import' but during the process i do not see the photos being imported. After it was done, there was a new event album, i clicked opend it to see my photos but all of them were blank. I forced quit and re-launched iPhoto but it didnt work, i even re-imported, not to no avail.. Please help.  Earlly 2011 13' MacBook pro 10.7.2

  • I have Windows Professional and I used to be able to move the curser over the Firefox icon in the taskbar and it would give me a telescoped view of all open tabs, now it just shows the tab that I'm currently viewing. How do I fix this?

    I have Windows 7 Professional and I used to be able to move the curser over the Firefox Icon in the taskbar and it would show me a telescoped view of all open tabs, now it just shows the tab that I'm currently viewing. How do I fix this?

    Hey MikeDo,
    Do you have the option checked for ''Show Tab Previews in the Windows Taskbar''? If not, just go to ''tools->options->tabs.'' You can find more information on what each of these settings do in the Knowledge Base article [[Options window - Tabs panel]].
    Hopefully this helps!

  • Need info on the class that is used for BUILHEADER Genil query

    Hi All,
    Can some one pls let me know the class that is called by executing the query BUILHEADER.
    I m facing a strange error, everytime when i search and open any account other than sold to party in WEBUI, I am noticing soldto party in the Roles Assignment block. But the business partner in the backend is not having hte role sold to party. i am not finding how this defaulting is happening automatically.
    Any pointers/clues on this will be very very helpful.
    Thanks,
    Udaya

    Hello Udaya,
    The class is CL_BUIL_HEADER Copy it and redifine method GET_RESULT_TABLE.
    then goto SPRO I'm not remember exactly where you should change the SAP class into yours.
    Sorry it was on ICWC5.0 and not CRM2007
    Eli Steklov
    Edited by: Eli Steklov on Jul 16, 2008 3:52 PM

  • TS1702 Safari has just stopped opening PDF docs, it shows the message that I get on my PC when the server is unavailable etc.  Foxbrowser opens them fine.  Thanks  I.M.

    Safari has just stopped opening PDF docs, it shows the message that I get on my PC when the server is unavailable etc.  Foxbrowser opens them fine.  Thanks  I.M.

    Hello kmanthie,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    I worked on behalf of HP.

  • Reflect the class that implements Runnable

    Hi,
    I am implementing the reflection of the class that implements Runnable. In order to start a new thread I am trying to invoke "start()" method ( which is obviously not defined my class ) and I therefore I am getting "java.lang.NoSuchMethodException".
    I am wondering is it possible at all to start a new thread on a reflected class?
    thanks in advance.
    {              Class refClass = Class.forName(className);
    String methodName = "start";
    Class[] types = new Class[1];
    types[0] = Class.forName("java.util.HashMap");
    Constructor cons = refClass.getConstructor(types);
    Object[] params = new Object[5];
    params[0] = new HashMap();
    Method libMethod = refClass.getMethod(methodName, null);
    libMethod.invoke(objType, null); }

    Well, if we knew what it meant to "start a thread on a class" we could probably figure out how to "start a thread on a reflected class". If we knew what a "reflected class" was, that is.
    In other words, it would help if you rephrased your question using standard terminology (and also explained why you want to do whatever it is you want to do).
    But let's guess for now: If you have an object which implements Runnable then you start a thread to run that object like this:
    Runnable r = // some object which implements Runnable
    new Thread(r).start();Not what you wanted? Go ahead and clarify then.

  • HT4623 i m using iphone 3gs & i m updating the OS from 4.1 to 6.1 ,,it is showing the message that ur iphone cannot be activated because the activation server is not temporarily unavailable

    i m using iphone 3gs & i m updating the OS from 4.1 to 6.1 ,,it is showing the message that ur iphone cannot be activated because the activation server is not temporarily unavailable

    Contact your Carrier...
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • For iOS the ipad version shows the folio that has been published, but the iPhone app is not.

    I am responsible for handling the apps and not at all involved with or know how the folio creation process works.
    When I build the app for iOS the iPad version shows the folio that has been published, but the iPhone app is not showing the folio.
    Is this something related to the build process or how the folio was created?
    The folio also shows up in the Android app (at least the phone I have tested with).
    Thanks,

    "Android and iOS viewers have different requirements for displaying folios. Any folio size you create can appear in an Android viewer. The articles are scaled and letterboxed as needed. However, on the iPad, the viewer displays only folios with a 4:3 aspect ratio. The iPhone viewer displays only folios with a 3:2 or 16:9 (1136x640) aspect ratio."
    Here is the entire post if you'd like to read more: Digital Publishing Suite Help | Creating documents for multiple devices

  • I have two kinds of songs. one kind is buying from itune store, and the other kind is burning from CD. i got a new 5s, but it only shows the songs that i buy in itune but not the one that from the cds

    i have two kinds of songs. one kind is buying from itune store, and the other kind is burning from CD. i got a new 5s, but it only shows the songs that i buy in itune but not the one that from the cds

    Are the ones from the CD's on iTunes? You may just have to sync them over to the phone.

  • Changing the video that I loaded as intro media to my iBook?

    How do I change the video that I loaded as intro media without re-doing my whole iBook? Thanks!

    Are you asking how to replace the intro media or how to update a book in the store?
    Replacing the intro media is just a matter of selecting the current one, then deleting, then repeating the process to add using your new asset.

Maybe you are looking for