Splash screen with startup information

Hi,
I have build a splash screen but I am looking for a way to load some text over it to show the user what the application is doing while starting up.
Anyone has a idea on how to?
Eg

Hi! I have some sample code for you
Here it is the file SSCanvasBar.java:
package CdList;
import java.awt.*;
public class SSCanvasBar extends Canvas{
     private int width, height ;
     private Color poz = new Color(42,54,164);
     private String str = "", strFile = "";
     private int k, val = 0;
     public SSCanvasBar(int width, int height)
          this.width = width ;
          this.height = 50 ;
          this.setPreferredSize(new Dimension(width,height)) ;
     public void updateBarAndStr(int k, String str)
          this.str = str ;
          this.k = k ;
          repaint();
     public void paint(Graphics g)
               g.setColor(poz) ;
               g.fillRect(0,0,width,height) ;
               g.setColor(Color.black) ;
               g.fillRect(0,30,width,7) ;
               g.setColor(Color.yellow) ;
               g.fillRect(0,30,val += k, 7 ) ;
               g.drawString(str,3,20);
Here it is the file SSCanvasPic.java:
package CdList;
import java.awt.*;
public class SSCanvasPic extends Canvas{
     private final String fileSeparator = System.getProperty("file.separator");
     private final Image img = Toolkit.getDefaultToolkit().createImage(getClass().getResource("images/img.jpg"));
     private int picWidth, picHeight;
     public SSCanvasPic(int width, int height)
          picWidth = width ;
          picHeight = 300;
          this.setPreferredSize(new Dimension(picWidth,picHeight));
     public void paint(Graphics g)
               g.drawImage ( img , 0 , 0 , picWidth , picHeight , this ) ;
Here it is the file SplashScreen.java
package CdList;
import javax.swing.JWindow;
import java.awt.Toolkit;
import java.awt.Graphics;
import java.awt.BorderLayout;
public class SplashScreen extends JWindow{
     private final int SCREEN_WIDTH = Toolkit.getDefaultToolkit().getScreenSize().width;
     private final int SCREEN_HEIGHT = Toolkit.getDefaultToolkit().getScreenSize().height;
     private final int WIN_WIDTH = 500;
     private final int WIN_HEIGHT = 350;
     SSCanvasBar sscb = new SSCanvasBar(WIN_WIDTH,WIN_HEIGHT);
     SSCanvasPic sscp = new SSCanvasPic(WIN_WIDTH,WIN_HEIGHT);
     public SplashScreen()
          this.setSize(WIN_WIDTH,WIN_HEIGHT);
          this.setLocation( (SCREEN_WIDTH / 2) - ( WIN_WIDTH / 2 ) ,
                                (SCREEN_HEIGHT / 2 ) - ( WIN_HEIGHT / 2 ) );
          this.setLayout(new BorderLayout());
          this.getContentPane().add(sscp,BorderLayout.NORTH);
          this.getContentPane().add(sscb,BorderLayout.CENTER);
     public void updateBar(int k, String str)
          sscb.updateBarAndStr(k,str);
     public void start()
          this.setVisible(true);
     public void close()
          sscb.updateBarAndStr(WIN_WIDTH,"Starting the program...");
          try{
               Thread.sleep(1000);
          }catch(Exception e){}
          this.dispose();
}I hope that you can understand the code.

Similar Messages

  • Pavilion p6-2117 won't get past the splash screen with a parallel card installed.

    Pavilion p6-2117c won't get past the splash screen with a pci express parallel card installed.  I take the card out and the machine works just fine.  The screen says press "esc" for startup menu but nothing happens.
    This question was solved.
    View Solution.

    Take a careful look at the slot and see if any of the pins are broken or smashed to the bottom of the slot.  Do you have another pci slot to try or just the one?
    Reminder: Please select the "Accept as Solution" button on the post that best answers your question. Also, you may click on the white star in the "Kudos" button for any helpful post to give that person a quick thanks. These feedback tools help keep our community active, so you receive better answers faster.

  • Splash screen with progress bar and multiple jar files to load

    Hello,
    I have been looking to the new features in java 6 for splash screens. I haven't implemented this never before and i was wondering how i could do the following with java 1.5 or 6:
    I would like to see a splash screen with a progress bar that "grows" when every jar file has been read.
    At this time i call my application like this from a shell script:
    exec "$JAVA_BIN" -Djava.library.path=$LIBRARIES_J3D -classpath xxxx.jar yyyy.jar zzzz.jar ...
    where xxx.jar, yyy.jar and zzz.jar are very heavy jars.
    So i would like to see in the progress bar 33% 66% and 100% when they are loaded.
    I do not know if this is the right forum to ask for this. If no, please point me which would be the ideal one.
    Any help will be very useful. Thanks to all!

    Am 10.07.2015 um 07:17 schrieb Lalit Solanki:
    > Hi friend,
    >
    > I am create pure eclipse E4 application and trying to splash screen with progress bar and message.
    >
    >
    >
    >
    > but above image in only support eclipse E3 application so pleas help me how to add progress bar and message in eclipse E4 application
    >
    Hi Lalit,
    there's a Bug entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382224
    Meanwhile you can use this solution:
    https://www.eclipse.org/forums/index.php/t/328812/5ceed4bcaa683a94d65efb161bffd217/
    Regards,
    Ralf.

  • Assistance in programming a splash screen with a JProgressbar?

    I want to implement a Splash screen with a JProgress Bar showing that its loading. Anyone can provide any hints and ideas on how to do it.
    I manage to do a splash screen with just a simple image and using timer to control it but now i want to add in the progress bar. And now i'm stuck. had a look through the JProgressBar and it looks hard.
    cheers

    >
    I felt my question was specific enough. >Live and (hopefully) learn.
    >
    ..Surely software developers have heard of splash screen and know what it is. It is a start up screen that pops up before any application starts.>JWS can provide the same basic 'download with progress' functionality as a 'start up splash' might do, for functionalities that are not even supplied before the app. is on-screen, which is why I was asking for clarification about whether you meant 'before start-up' or ..something else.
    BTW - did you actually notice the two methods I pointed to, that provide splash/loading progress for an application start-up?
    >
    Ever used Eclipse IDE or Netbeans? If you have you would of know what i meaning. >Sure I've seen them. It was some time ago though, and all I recall was a splash image, no progress bar.
    Had you ever deployed application resources lazily? Seen an app. that does a long running process such as DB interrogation or report generation with a progress dialog? There are many purposes that might fit the general description of providing something for the user to look at, during a long-running process.
    The world is not as small as you seem to think.
    >
    What my questions is how do you code that splash screen, combining a progress bar onto the splash.>Well CB gave you the 'google' for the term, and you seemed to think that was helpful, so see how you go with it..

  • Splash Screen with a progress bar at the bottom

    Hi,
    I want to display a splash screen with the progress bar at the bottom just like eclipse , limewire etc
    Take a look at the image below.
    [http://imageupload.com/out.php/i138889_splashScreen.png]
    Can anybody tell me how to achieve this type of splash screen?
    Thnx in advance.

    Search Google.
    This is one of the results: [Splash screen avec progress Bar|http://www.labo-sun.com/resource-fr-codesamples-1126-0-java-gui-splash-screen-avec-progress-bar.htm]

  • Premiere Pro CC - Hangs on splash screen / slow startup

    Hey everyone,
    I recently asked another question about CC, but here's another one that's been annoying me since when I first subscribed.
    Premiere Pro, in fact, any CC product I use, takes forever to load on startup. When it loads the splash screen it hangs (with no message) for a few minutes at a time before launching the application. I've checked the process and the software is using a consistent amount of CPU. I can only assume it's stuck in some sort of loop while trying to communicate with the activation server, but that's just guesswork on my part. The problem is exactly the same as this user here demonstrates: http://youtu.be/TeE6FBCzrqI
    It's more annoying than anything, but for a subscription product it's rather bothersome. It's downright embarassing if a client comes over... and I wonder if it might be tied to some other compatibility issues I've been having.
    I've been using CS6 in the mean time, but have to deliver a session through CC now. If anyone's experienced similar problems I'd really appreciate hearing your solutions. Running Windows 7.
    Thank you!

    Hi Kevin,
    Thanks so much for your reply! I've reset the preferences in the past and did so again after your suggestion, but no luck. I even went into the AppData folder to remove the preferences sub-folder altogether. It still hangs and acts as "Not responding" for several minutes before startup.
    I wonder if there's any connection between this issue and a second issue I'm having with CC not being able to play ProRes files. http://forums.adobe.com/message/5845690#5845690
    In any case, I uninstalled every Adobe Product on my machine, ran the Adobe cleaner successfully, then re-installed Premiere Pro CC. Unfortunately, nothing seems to have changed.

  • Weird Splash Screen with 32.1

    We have this Download Error problem with our Magazine App. So I made an update with the new App Builder to v32.1. Now I get weird Splash Screens in the Developer App.
    If I'm starting the App horizontally I get the vertically Splash Screen for a short time at the end of the startup process. If I'm starting the App vertically I get a rotated vertical Splash Screen for a short time at the end of the startup process. Please see screenshots attached.
    Thanks
    Haeme

    That's great news Neil, thanks for sharing.
    On Wed, Oct 15, 2014 at 7:50 AM, Neil Enns - Adobe <[email protected]

  • Splash screen on startup

    How can I show a startup splash screen when my air app opens?
    Preferably like a traditional splash screen, meaning just a
    rectangular box without any window chrome, etc, containing a logo
    image and some info text.
    thanks

    I'm not sure about any out of the box splash screen, but you
    get the same functionality by:
    1. Set <visible>false</visible> in -app.xml
    2. Create an mxml component (SplashWin.mxml) with
    mx:TitleWindow as the base class and add your controls to display
    message.
    3. add creationComplete event handler for WindowedApplication
    4. In creationComplete event handler, create a SplashWin
    popup like the following:
    var splash:TitleWindow =
    TitleWindow(PopUpManager.createPopUp(this, SplashWin, false));
    5. In the SplashWin close handler
    PopUpManager.removePopup(this) ;
    and set
    Application.application.visible = true;
    You can use Timer class in SplashWin to close the Splash
    screen automatically after certain milli secs
    Hope that helps.
    -Jeesmon

  • How to resolve a Lenovo PC that will not pass the Lenovo Splash screen with no access to Windows

    Here is my problem and here is the solution!!!
    My B540 Ideacentre would not pass the Lenovo splash screen. The only operational keys I had was F1 (BIOS) and F12 (BIOS options). F2 went to a light blue screen so no chance of even a one key recovery. Warrenty had expired four and a half months ago. I contacted Lenovo and after the guy told me to try F2 twice he said it was a HDD or other hardware failure and would cost around £200 maybe and also would take about two weeks. 
    AT THIS POINT YOU SHOULD NOT BE ANGRY FRUSTRATED OR PANIC. REMAIN CALM AND STOP AND THINK WHAT ACTUALLY WAS HAPPENING WHEN YOU LAST USED YOUR PC.
    For me I remembered Windows had auto downloaded 8.1 and was asking me to install. Also my keyboard had lost shift W T Y keys. This told me that it was not a hardware issue but a software issue and perhaps from this update. My HDD was not clicking or beeping and this PC has a 2TB Seagate Barracuda which has a good reputation. Luckly for me I also have a Seagate external expansion 2TB and a 500MB expansion which was the HDD from my old HP Touchsmart which I converted into an external hard drive by buying a HDD enclosure with cooling fan and all leads from eBay for £25 and this is where the solution is.
    If you can create an expansion drive so easily and access the HDD then why cant I do it with the HDD from my Ideacentre and of course you can. So first unplug your PC or laptop. Next remove the cover and unclip the HDD (which is easy with the B540. See user instructions). Next I removed my HP HDD from the enclosure and fitted my Ideacentre HDD in its place. Next you need a laptop or another PC. Switch it on and then connect your HDD to the laptop or PC via highspeed USB cable. My laptop is running Windows 7 Ultimate and of course has all the repair tools required. When the software has loaded you may get a box that will have two options. The first will ask you if you want to repair your files and the second to scan for bad sectors and to attempt repair recovery of sectors. Tick both boxes and click start. This is a long slow process but worth the wait. Nine hours later my HDD was ready. I connected my Seagate expansion to my laptop and moved all new files that I had not backed up. So at this point you should create a folder and move all your photos music videos documents etc to it. This can take upto three hours if you have never backed up before and are moving everything. Once completed I shut everything down and replaced the HDD into my Ideacentre. Make sure do not have any external devices connected such as expansions external drives headphones etc. Connect the power and switch on. The Ideacentre booted up and there was a pause at the splash screen then it went to a black screen and then by the miracle of logical thinking I was at my lock screen. I was never so glad to see the map of my home land "Ukraine". After jumping up and down with joy I then went in and all was as normal but to be sure I went into safemode and started a complete restore. This is the option where you completely format your HDD and restore as new. It takes a long time but it is the best option because you do not want this to happen again. When this has completed and you are in Windows do not wait a moment longer by playing with your photos or creating your desktop picture. Go to create a recovery drive (use a 32GB stick) and after that also make a copy to disc. Next go to command prompt (cmd) Admin and change a setting by typing bcdedit /set {default} bootmenupolicy legacy. This will now enable your F8 key to boot straight into safemode just incase you need to in the future. It will slow boot time a little but better to be able to get in to Windows than not at all for the sake of a few seconds. 
    Well I hope this helps someone out there and I know you may think its a lot to do but it is not. Ask a friend to borrow a laptop or PC and perhaps a HDD encloser. The rest is just time but when you see your lock screen you will not care trust me. 
    Cлава Україні!!! Героям слава!!!

    I thought this was the method I used before but I followed through it and it was a horrific fail.  "Operating system not found".  Can anyone help?
    http://superuser.com/questions/421402/how-to-create-a-bootable-usb-windows-os-us ing-mac-os-x
    Steps To Achieve Victory
    Download the ISO you want to use
    Open Terminal (in /Applications/Utilities)
    Convert .iso to .img using hdiutil:
    hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
    Rename if OS X gave it a .dmg ending:
    mv /path/to/target.img.dmg path/to/target.img
    Type diskutil to get a list of currently connected devices
    Insert USB drive you want to use
    Run diskutil again to see what your USB stick gets assigned eg - /dev/disk3
    Run diskutil unmountDisk /dev/diskN (where N is the number assigned to your USB stick, in previous example it would be 3)
    Run sudo dd if=/path/to/target.img of=/dev/diskN bs=1m (if you get an error, replace bs=1m with bs=1M
    Run diskutil eject /dev/diskN and remove your USB stick
    The USB stick will now be ready to use
    Also similarly described here: http://www.tomshardware.co.uk/answers/id-1733410/creating-microsoft-bootable-usb -mountain-lion.html#.

  • WD Splash screen with portal integration

    Hello,
    I'm wondering why the splash screen of a WD4A isn't displayed while loading within the portal. Without the portal it's displayed.
    Can anyone tell me the cause for this? Or how we achieve having the screen within the portal?
    Thanks for your help.
    Regards
    Markus Armbruster

    Well the core question might be why is it taking so long to load the screen?  Most applications should take a second or two to start the initial rendering, but if it is taking much longer than that it makes me wonder if there is a large initialization in the application itself or some tuning problem on your application server.  If the problem is a large initialization at the application level you might think about designing a sort of spash screen of your own into the application. Otherwise I can't some up with any way to force the WD splash screen without making a modification to the system.
    As to the future - well in the release that I mention that doesn't have the splash screen at all - the Unified Renderer was completely rewritten.  It now uses AJAX for parallism and loading libraries Asynchronously.  Therefore you get a spinning loading icon almost immedately upon launch of the application - as the back channel does most of the loading.

  • Illustrator crashes before splash screen with networked home dir

    I’m having a problem with deploying Adobe CS6 in my school’s labs. Actually, this problem only affects Illustrator CS6 as all the other applications of the suite are functioning normally.
    Here are some data about our network Environment
    120+ imacs of various models (from late 2007 to early 2013)
    Each mac is bound to 2 directory services (Windows AD and a Mac mini server)
    Authentication is taken care of by the Windows AD server.
    Preferences management and Mac-specific settings are controlled by the Mac server
    Each user (teacher and student) has a remote home directory located on a huge (21 TB) synology NAS
    The address of this home directory is maintained by the windows AD and retrieved at logon
    Users can authenticate with no issues and their home directory is correctly mounted on the Imacs. The applications of the Creative suite (deployed through AAMEE) are all working fine except for Adobe Illustrator CS6.
    Here is the problem
    If a remote user (that is a user with a distant home directory, so pretty much everyone in the school)  launches Illustrator, The application hangs and crashed even before this beautiful brownish splash screen appears on the screen. I can see illustrator in red in the activity monitor an have to kill it manually
    If a local user logs in (that is the local admin or the guest user) Illustrator works fine! (Which tells me that it is not an install or dependency issue)
    In short, It looks like Illustrator does not like users whose home directory is not stored on the local machine.
    Has anyone run into a similar issue?  Is this documented somewhere? Are there some preferences I need to customise to make Illustrator work with remote users? Will it be naturally solved when I’ll deploy Illustrator CC in a month or so?
    In case any Adobe employee read this message, I attache the Crash report as generated by my iMac.
    Any insight on this issue is very much appreciated. I’m stuck with this one...... heeeeeeelp!!
    Thanks and regards from cloudy Belgium!

    I confirm what Serge said.
    We worked on this issue with the Illustrator team and Illustrator just does not work when the home directory of the current user is not on the local drive.
    That being said, it IS possible to make Illustrator work in a Network environment. There are 2 ways to do that.
    1) when binding the MAc to an Active Directory domain, tick the "Force home directory on local drive" checkbox. That will create the home directory of the user on the local drive and Illustrator will work fine. The down side of this method is that if the user switches to another Mac (whith is the case in our school lab) his home directory will be re-created from scratch on the new Mac and all his custom preferences and setting will be lost.
    2) Use the WorkGroup Manager to create a roaming profile. With this method, The home directory of the user is copied over from the network location on the local drive at logon. As far as Illustrator is concerned, The home folder is then local and everything works as expected. You can have the local home folder be synchronized with the remote home folder at logout (or even at regular intervals during the session) so that the custom preferences and settings of the user does follow him from Mac to Mac
    The only case where Illustrator does not work is when the home directory is mounted as a remote folder. That configuration prevents Illustrator from openning.
    Damien

  • Tecra M5 freezes at splash screen on startup (post Safeguard Easy Install)

    Since installing Safeguard Easy disk encryption, my M5 freezes at the initial Toshiba splash screen. Pressing Ctrl - Alt - Delete gets passed this and onto the Safeguard password screen.
    It seems there is a BIOS patch for the Satellite Pro series but I'm not seeing anything for the Tecra, or indeed Tecra M5.
    Any advice appreciated.

    This is because of Vista bios support for fastboot.
    There is a new version of utimaco released that fixes this bug.

  • Satellite P300 PSPCCE: I want to remove or chang splash screen on startup

    I have Satellite P300 PSPCCE laptop and want to remove or change splash screen on begin of booting laptop.
    Is there a way to do it? My Bios version is v3,40

    this is how it looks my BIOS setup (no options like quite boot, fast boot, etc.)
    Main
    * System Time
    * System Date
    * CPU Type
    * CPU Speed
    * HDD1 model name
    * HDD2 model name
    * Optical Disc driver
    * Power on display
    * Total Memory
    * System Bios version
    * Language
    Advanced
    * Legacy USB Support
    * Core Multri-Processing
    * Execute-Disable bit Capability
    * Intel(R) Virtualization Technology
    * Built-in LAN
    * Wake-up on keybord
    * Wake-up on LAN/Wireless LAN
    * Critical Battery Wake up
    * Pointing devices
    * Illumination LED
    * USB Sleep and charge
    * HDMI-CEC
    * Remote power on/off
    * SATA controler Mode
    Security
    * User password Is
    * Supervisor password is
    * Set user password
    * Set supervisor password
    * HDD1 password
    * Set HDD1 User password
    * HDD2 password
    * Set HDD2 User password
    Boot
    * HDD1
    * HDD2
    * CD/DVD
    * FDD
    * LAN
    Exit
    * Exite saving changes
    * Exit discarding changes
    * Load setup defaults
    * Discard changes
    * Save changes
    Which version of bios, are you having?

  • Android splash screen with Flex?

    Hi,
    To my knowledge there is no default option to add an android splash screen in a flash cs5.5 project.
    There is a little bit of a delay before the image appears when first opening the app(1 to 2 seconds...no big deal)
    I read in the notes here that you can implement a splash screen in flex
    https://bugbase.adobe.com/index.cfm?event=bug&id=2948842
    So i was just curious, is there a splash screen delay when creating a flex project like there is in my AS3 projects from flash cs5.5?

    Yes. (Flex doesn't have any magic over ActionScript). Also, in Flex, a splash screen is more useful. It takes longer to load an initialize the Framework, so you would have a longer black screen in Flex if you don't use a preloading splash screen.

  • Calendar has white screen with no information

    For no known reason, my native ios calendar app comes up as a blank white screen, with no data appearing (nor do you see the calendar grid or the appointment list below). Has anyone experienced this, and if so, does anyone have a solution? Thanks.

    Sorry, never heard of a blue water sensor. I'd plug your phone in to mains, leave it overnight and try again tomorrow.
    There are many places other than Apple that repair iPhones. Here are a few...
    http://www.iresq.com/iphone-repair.html
    http://www.ipodjuice.com/apple-iphone-repair.htm#iphone-repair
    http://www.drcellphone.com/

Maybe you are looking for

  • Taglib: class not found in jar-file

    I've got the following problem: I whant to deploy a taglib to tomcat 5.0.25. If I point to the jsp which uses the taglib I got the following error: org.apache.jasper.JasperException: Unable to read TLD "META-INF/taglib.tld" from JAR file "file:/C:/Pr

  • ITunes decoder settings don't work

    I've got the problem that I can't change the settings in the decoder. I hope I have the right names, since I only work with the German version. I mean when I want to change the decoder using my own settings, iTunes just doesn't do anything for ACC-fo

  • Administered account's sound disabled

    I am running 10.6.8 and have setup 2 administered accounts for my children with parental controls. We have suddenly noted that the one account has no sound whereas the administrator account and one administered account are fine. When I say no sound I

  • Archiving Business partner

    Hi, I need to extract Business partner which are not flagged for Archiving and generate a .csv file. i m writing a zprogramme to extract data from crm. can any one advise me what do i need to do to make sure that only those BP which are not set as ar

  • Using photos not in iPhoto

    I've been a mac user since the days of Classic, but there's always