Custom splash screen for app under JWS 1.2 from 1.4.1 beta?

Has anyone gotten a custom app's splash screen to come up instead of the damn Sun Java Web Start splash screen to come up when the app starts from a desktop icon or if you launch it from JWS?
I added it to my jnlp file as specified in the docs, but it just doesn't come up :-(
<description kind="tooltip">TransMedia 2</description>
<icon kind="default" href="transmedia.gif" />
<icon kind="selected" href="transmedia.gif" />
<icon kind="disabled" href="transmedia.gif" />
<icon kind="rollover" href="transmedia.gif" />
<icon kind="splash" href="transmediasplash.gif" />
</information>

Hello,
I read your postings here and I did what you proposed.
Nevertheless the splash screen doesn't show up.
I'm using Java 1.4.1, Web Start 1.2; the jnlp file
looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://venus/example-client/" href="example.jnlp">
<information>
<title>Example</title>
<vendor>My Company/vendor>
<description>JBoss Client</description>
<icon href="splashscreen.jpg" kind="splash" />
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="example-client.jar" main="true"/>
<jar href="jbosssx-client.jar"/>
<jar href="concurrent.jar"/>
<jar href="jboss-client.jar"/>
<jar href="jboss-common-client.jar"/>
<jar href="jboss-j2ee.jar"/>
<jar href="jnp-client.jar"/>
<jar href="log4j.jar"/>
<jar href="datepicker.jar"/>
<jar href="jcommon-0.7.1.jar"/>
<jar href="jfreechart-0.9.4.jar"/>
<jar href="xercesImpl.jar"/>
<jar href="xml-apis.jar"/>
<jar href="xalan.jar"/>
<property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
</resources>
<application-desc main-class="com.mycompany.ui.Example"/>
</jnlp>
any idea why webstart doesn't use the custom "splashscreen.jpg"?
a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
thanx for help,
michael

Similar Messages

  • Custom Splash Screen for HTML Export?

    We're finding our customers are getting confused with the HTML screen that initally displays a single button to play our Captivate lessons. Is there any way inside Captivate to add some context to that screen?
    TIA
    Retiarius

    Hello,
    I read your postings here and I did what you proposed.
    Nevertheless the splash screen doesn't show up.
    I'm using Java 1.4.1, Web Start 1.2; the jnlp file
    looks like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://venus/example-client/" href="example.jnlp">
    <information>
    <title>Example</title>
    <vendor>My Company/vendor>
    <description>JBoss Client</description>
    <icon href="splashscreen.jpg" kind="splash" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="example-client.jar" main="true"/>
    <jar href="jbosssx-client.jar"/>
    <jar href="concurrent.jar"/>
    <jar href="jboss-client.jar"/>
    <jar href="jboss-common-client.jar"/>
    <jar href="jboss-j2ee.jar"/>
    <jar href="jnp-client.jar"/>
    <jar href="log4j.jar"/>
    <jar href="datepicker.jar"/>
    <jar href="jcommon-0.7.1.jar"/>
    <jar href="jfreechart-0.9.4.jar"/>
    <jar href="xercesImpl.jar"/>
    <jar href="xml-apis.jar"/>
    <jar href="xalan.jar"/>
    <property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
    </resources>
    <application-desc main-class="com.mycompany.ui.Example"/>
    </jnlp>
    any idea why webstart doesn't use the custom "splashscreen.jpg"?
    a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
    thanx for help,
    michael

  • Getting increasingly frequent system shutdown with appearance of the apple splash screen for several minutes then back to logon in the middle of using a variety of APPs or just walking on Safari.

    Using an IPAD 2 running 5.0.1 is frequently shutting down in the middle of a variety of Apps and showing the Apple splash screen for several minutes. This happens occasionally at inopportune times. Once the splash screen clears it goes back to the logon screen and the App that was open is closed. Has anyone else encountered this? Is there a resolution?

    RockHunter wrote:
    This happens occasionally at inopportune times.
    I don't think that there is ever a good time for this to occur.
    What do you mean the Apple splash screen? You see the Apple logo on the screen?
    It appears as though your apps are crashing. Have you tried quitting apps and restarting? Reset the iPad?
    Quit all apps and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Creating a splash screen for your app.

    Im trying to create a splash screen for my app but im not too sure how it's done.
    Im using the following piece of code.
    public static void main(String[] args)
              JPanel display = new JPanel();
              display.setPreferredSize(new Dimension( (300), (200) ));
              display.setBackground(Color.white);
                   // I WILL PUT AN IMAGE ICON ON A JLABEL HERE              
              display.setVisible(true);
                   // I WILL NEED A DELAY HERE
              test.instance();
    }The problem I am having is that the JPanel is not being displayed. I will also need a way to create a delay, I know that I can't just use Thread.sleep(5000); because the JPanel will require the thread to be running in order to display the panel.
    Does anyone know how I could get my JPanel to display and somehow insert a delay before test.instance();?
    Thanks.

    I made my own a few days before for a database program. It can be easily done with Threads.
    I recommend you create a new class to be used as the spalsh screen , it has to extends JFrame and implements Runnable.
    I ll give you an example. I used the spash screen to display the screen and also to laod the main GUI form so that when the spash screen dispose, the main GUI form displays instantly, making the user think that the application loads faster.
    public void run ()
            try
                 this.setVisible(true);
                 Thread.sleep(2000);
                 // sets the menu visible before disposing
                 guiMenu.setVisible(true);
                 // disposes the object and returns the resources to the OS
                 this.dispose();
            catch(InterruptedException exception)
                exception.printStackTrace();
    // this method must be implement in the class
    // that implements Runnable interface
    //MAIN
    public class Main
        public static void main(String[] args)
            Menu menu = new Menu();
            SplashScreen introScreen = new SplashScreen(menu);
            ExecutorService splashExecutor= Executors.newFixedThreadPool(1);
            splashExecutor.execute(introScreen);       
    }ExecutorService is a subinterface of Executor that declares methods for managing the threads. It also has the method execute (that provides the Executor interface) which when invoked calls the method public void run() of the argument class that must implement Runnable.
    Executors.newFixedThreadPool(1); creates a poll consisting of a 1 thread which is been used by splashExecutor to execute the Runnable.
    Hope i've been of some assistance!

  • Edge Animate correct software for Animated Splash Screen iOS app???

    Hi eveyone, I am fairly new to the mobile designing and come from a print background, 99% of my posts are on the InDesign forums.
    I was wondering if you could please direct me to the best way to create an Animated Splash Screen for iOS?
    Would Adobe Edge Animate be the right tool?
    Or is there a different way to do it?
    I thought it would be coded by the app developers but I can't really find enough info and I'm a bit out of my depth to understand all the websites I've read.

    Yes, it would be pretty simple with phonegap.
    http://www.lynda.com/Edge-Animate-tutorials/Creating-PhoneGap-Build-app-Edge-Animate/12430 7/127570-4.html

  • Lightroom won't boot -I only get the splash screen for a second.

    I do have the photographers version of the Creative Cloud which included Photoshop CC 2014 and Lightroom. Everything was working just fine until I upgraded to Lightroom version 5.6. Now when I try to load LR, the slash screen shows for a second then disappears and LR does not load. This occurs on both my Mac (a Mac Pro and a iMac). I uninstalled LR and had creative cloud reinstall but still the same thing is happening  - Splash screen for a second then nothing. Again, this is happening on both Mac's. Photoshop CC 2014 I working just fine.
    Before I call Adobe, any ideas here on this issue. BTW, Creative Cloud App states LR in up to date and installed.
    Thanks
    James

    Hi PBAYARD,
    I see that you are experiencing an issue with your iPod classic. Here is an article for you that will hep you through some troubleshooting steps regarding this issue:
    iPod: No power or frozen - Apple Support
    https://support.apple.com/en-us/TS1404
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Custom splash screen only shows up when command line is used...

    Hi,
    Everything in my Java web start application works perfectly but, the custom splash screen only shows up when command line is used ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"), if I use the shortcut on the desktop or in the start menu, the Java 7 splash screen shows up (tested under Windows Vista and Seven). Does someone have any clues?
    Thanks...
    My jnlp file :
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="6.0+" href="AcSent.jnlp">
      <information>
        <title>AcSent : Commande de repas</title>
        <description>AcSent - Commande de repas</description>
        <vendor>AcSent</vendor>
        <homepage href="http://www.xxx.eu" />
        <icon href="acSentIconBiseau.png" />
        <icon href="splashAcSentRC.png" kind="splash" />
        <shortcut online="true">
          <desktop />
          <menu submenu="AcSent" />
        </shortcut>
      </information>
      <security>
        <all-permissions />
      </security>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" max-heap-size="128m" />
        <jar href="AcSentJnlpProgressIndicator.jar" download="progress" />
        <jar href="AcSentJnlp.jar" main="true" version="1.0" />
        <property name="jnlp.packEnabled" value="true" />
        <property name="jnlp.versionEnabled" value="true" />
      </resources>
      <application-desc name="AcSent" main-class="eu.acsent.jnlp.AcSentApplication"
           progress-class="eu.acsent.jnlp.progressindicator.CustomProgress"> 
      </application-desc>
    </jnlp>

    Hi again,
    I made some researches :
    - The link in the generated shorcuts ("C:\Windows\SysWOW64\javaws.exe -localfile -J-Djnlp.application.href=http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp "C:\Users\Arnaud\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\69c1e9ee-1f252d1a") is not the same as the one I use in the command line ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"). Is there a way in the the JNLP file to tell how to generate shortcuts (not the icon, etc., but command line options)?
    - This sample (https://blogs.oracle.com/thejavatutorials/entry/changing_the_java_web_start) displays the splash screen when I click on the the generated shortcuts (I use Windows 7). I have copied the ButtonDemo jar file and the JNLP file on my IIS web server (Windows 2008 Server), this time the splash screen does not show up when I click the generated shortcuts but always shows up when I use the command line. Can someone tell me if it is a trouble with IIS ?
    Thanks again...

  • Custom splash screen not appearing in the Dynamic created jnlp()

    Hi,
    I am not able to show my custom splash screen while starting the webstart application, instead getting the "sun webstart logo". I am dynamically generating the jnlp file using jsp (struts application). Application is working perfectly except custom splash screen. Below is my jsp which will generate the jnlp on fly. The test.gif file is in place.
    <% response.setContentType("application/x-java-jnlp-file");
      response.setHeader( "Pragma", "no-cache");
      response.setDateHeader( "Expires", 0 );%>
    <%@ page import="java.io.*" %> 
    <%String baseURL = WebUtil.webUrlParser(request.getRequestURL().toString(),request.getContextPath(),request.getServerPort());%>
    <jnlp      spec="1.0+" codebase="<%=baseURL%>/cs_jnlp">
    <information>
        <title>Launching JNLP</title>
        <vendor>Satyasai</vendor>
        <icon href="/images/test1.jpg"/>
        <homepage href="docs/help.html"/>
       <description>test</description>
            <icon kind="splash" href="images/test.gif" />
       </information>
          <security>
            <all-permissions/>
         </security>
         <resources>
       <j2se version="1.6+"/>
       <jar href="<%=baseURL%>/cs_jnlp/AppLaunch.jar"/>
      </resources>
           <application-desc main-class="Launch" >
           <%
           int roleId = (Integer)session.getAttribute(Constant.USER_TYPE);
           String sessionID=(String)request.getAttribute("SELECTION_SESSION_ID");
           String action=(String)request.getAttribute("action");
           String userID = (String)session.getAttribute(Constant.LOGIN_ID);       
           String sessionType=(String)request.getAttribute("sessionType");        
           %>
           <argument><%=sessionID%></argument>
           <argument><%=action%></argument>
           <argument><%=userID%></argument>
           <argument><%=sessionType%></argument> 
    </application-desc>
    </jnlp>If I use normal servlet - jsp using RequestDispatcher to forward request to a jsp which on fly creates jnlp, it shows the my custom splash screen. I am not very sure where is the difference. If I look at both generated jnlps they are almost one and the same. Can any one throw some insight on this.
    Thanks & Regards,
    Satyasai

    Hi Andrew,
    Thanks for your response.
    1. I have launched it number of times but no luck.
    2. I have written a jsp (using servlet + jsp no struts frame work) which will create jnlp on fly, which is showing my custom splash screen. If you refer in the initial post, it is not working with struts kind of framework. See the below jsp which shows custom splash screen. It worked without href.
    3. All jnlps are well formed and perfectly working in my development environment. For security purposes I have not shown some of the texts and logos.
    <% response.setContentType("application/x-java-jnlp-file");
      response.setHeader( "Pragma", "no-cache");
      response.setDateHeader( "Expires", 0 );%>
    <%@page import="java.util.ArrayList" %>
    <%
    String client = (String)request.getAttribute("clientLocation");
    String fileNames = (String)request.getAttribute("filenames");
    String url= (String)request.getAttribute("serverFilesLocation");
    String baseURL = "http://"+request.getLocalAddr()+":"+request.getServerPort()+request.getContextPath();
    %>
    <jnlp spec="1.0+" codebase="<%=baseURL%>/sw_jnlp"> 
      <information>
        <title>Softwares Download</title>
        <vendor>test</vendor>
        <icon href="/images/test1.jpg"/>
        <homepage href="docs/help.html"/>
       <description>Software Downloads </description>
            <icon kind="splash" href="images/logo_small.gif" />
       </information>
       <update check="timeout" policy="always"/>
          <security>
          <all-permissions/>
      </security>
      <resources>
        <j2se version="1.6+"/>        
        <jar href="mod.jar"/>  
      </resources> 
      <application-desc main-class="InstallSW">
      <argument><%=client%></argument>
      <argument><%=fileNames%></argument>
      <argument><%=url%></argument>
      </application-desc>
    </jnlp>Thanks & Regards,
    Satyasai

  • OpenSUSE-inspired splash screen for GIMP

    I saw this (old) openSUSE splash screen for GIMP and quite liked it:
    And so I created a new version of it, using Inkscape.  The PNG splash screen should be placed in $HOME/.gimp-2.6/splashes/ (or .gimp-2.7/ if you're using gimp-devel).  The font used is FifthLeg, which is based upon the font used in the openSUSE splash, and can be found in the AUR under otf-fifthleg: http://aur.archlinux.org/packages.php?ID=23740.
    The quick install (original version):
    mkdir -p $HOME/.gimp-2.8/splashes
    wget http://oi43.tinypic.com/s33fo9.jpg -O $HOME/.gimp-2.8/splashes/gimp-splash.png
    Here is the SVG file, in case you want to scale it up/down or change anything for your usage:
    http://www.mdn.fm/files/100696_f4f0h/gimp-splash.svg
    Screenshot:
    EDIT: Switched image hosting from ImageShack to TinyPic ... ImageShack has been very unreliable in the past few years.
    EDIT: Updated links (TinyPic is forcing the extension to JPG for whatever reason, but the file itself is a PNG). SVG link is dead.
    Last edited by MkFly (2015-05-27 15:33:01)

    Anonymo wrote:But you used Inkscape to make it? 
    Yes, I appreciate the irony there.  I wanted it to be easily scalable, and I didn't want to make some gigantic XCF.
    That and, I wanted to learn a little more about Inkscape.  The combination of the two (GIMP, Inkscape) is outstanding.
    Last edited by MkFly (2010-05-17 15:58:34)

  • I have 2 Apple IDs. How can I move all my purchased (paid-for) apps under only 1 of my Apple IDs?

    Long ago I bought several, relatively expensive, apps under a old Apple ID.
    I then purchased many more paid-for apps under a new Apple ID.
    I was unaware that the purchased apps are tied to the Apple ID which I happen to be logged in with, at the time of the purchase: I thought they'd be tied to my authorised PC(s).
    Now I'm absolutely sick of having to constantly switch between IDs, even just to CHECK for updates.
    What I want to do is move all the paid-for apps which I bought under the old Apple ID to the new Apple ID. Both ID demonstrably belong to me.
    Having all my apps under 1 only Apple ID would allow me to update them easily, and no longer be FORCED to switch IDs all the time.
    In short I want to use only 1 Apple ID for the future.
    If the Apple Store locks the apps to the Apple ID (as it does) instead than to the authorised PC (as it should do), then it should also PREVENT a user from creating a second Apple ID (at least, from the same iTunes installation on the same PC!), or at the very least display a HUGE warning that any paid-for apps purchased under another, older Apple ID will be unavailable under the new Apple ID! The apple Store, and iTunes, do neither thing,
    Then the Apple Store and iTunes should at the very least allow a user to put all apps under the same Apple ID!
    After all, the Apple Store and iTunes on my PC and iTunes on my Iphone can all "see" that I own TWO legitimate Apple IDs (with purchases and updates): it must be possible to move these apps from one ID to the another ID, at least once! They're MY OWN purchases, paid: can I manage them a bit easier?
    Marco

    No, it seems you don't (want to) understand. I see 2 things very wrong with your explanation.
    1. The move would only need to happen between "accounts" demonstrably and legitimately belonging to the same user. In fact, I'm still using both the old one (for updates only, no new purchases) and the new one (updates and purchases -- actually no morep urchases until Apple solves this). And unless I'm mistaken, I can already have my apps on more than one iDevice at the time: eg. on 1 iPhone and1 iPad. I don't ask for apps to be moved between unrelated accounts: only between accounts belonging to the same "person". And I do not see how changing what is effectively just a "label" embedded in the binary files residing on my hard disk (or in the cloud), which can be verified as legitimately belonging to me thru two ID registered on the same authorised PC could possibly allow anyone to cheat the system. The apps' files have embedded an old label before, and a new label after the operation, both belonging to me, associated to my payment details. That's not rocket science.
    In fact, both my Apple ID were at some point linked to the same credit card. And in fact, I only created a second one because at some point I managed to forget my Hotmail EMAIL password, not my Apple STORE password!
    The two passwords needn't be the same, adding to the confusion. For months I used that account to buy apps, and never checked the email, since I was not interested in marketing from Apple, and I could see the payments from my credit card statements: that's how I forgot my Hotmail EMAIL password for that Hotmail email address.
    Since Microsoft wouldn't allow me to access my Hotmail account anymore (and rightly so, becuase I managed to exhaust all possibilities, and even forgot the security question), and so I could not check my Apple Store emails, I then decided to create a new account, this time with a Live! email address, and this time I used the same password for both the Live! EMAIL and the Apple STORE authentication.
    For more than TWO years I used the old Hotmail Apple ID to get updates, without during all that time being able to read the email or access that Hotmail account: this should tell you how stupid this system is! And for the same time, and until last month (I no longer buy anything), I used the new ID for both NEW purchases and their updates.
    Now after getting both a new iPhone (only because the old one was unfortunately stolen on my holiday) and a new PC, i NO longer want to be forced to use both IDs, which forces me to constantly switch between them, and also carries the risk that I inadvertently purchase something with the old one, to which EMAIL address I no longer have access: so I can't even check invoices. But most of all, I don't want to be inconvenienced like this by Apple.
    Since the Apple ID is such an important concept, forever ID tied to your purchases, it should NOT be an email address, which are disposable by their own nature. When creating it, one is naturally driven to think it'll only be needed to check Apple Store's emails and newsletters and the such. Why should people be forced to FOREVER use an email address, perhaps linked to a job or relationship they had years earlier, to update their purchases?
    The thing is, Apple made the Apple IDs as email addresses simply to ensure that as many people as possible can at any time buy as many apps and songs as possible: just create a new Apple ID: after all, it is (seems) just an email address! and you're done. But they DON'T telly you they'll tie FOREVER your purchases to it. So you're reasonably entitled to think they'll tie them to your payments details, until you discover otherwise the hard way.
    And since most Apple users feel humbled by Apple (the "genial" idea of calling "Genius" the support guys at the stores, wo usually don't have a clue on anyhting less than trivial, is part of this) and fear of feeling "stupid" for getting wrong soemthing with what are supposed to be the most user-friendly company and products, they will simply buy the apps again under the new ID, bringing more profits to Apple. This also can't be casual.
    My apps are available, under both Apple IDs at the same time, to iTunes: be it on my PC on in the iCloud. The same mechanism that physically "embeds" that Apple ID in the app file when I first buy it, can surely be used to change it afterwards. It's just a matter of willing to do so. This content (apps, songs, etc) may be digital (that is, files) rather than traditional (eg. books), but I assure you that the disk blocks taken by the app or song files in the iTunes directory on my PC or in the iCloud are as physical as a book or a mp3 player: they CAN be changed in a perfectly safe and trackable way, without risk of cheating. Ever heard of MAC addresses? Or other unique info that can easily be gathered from the PC's operating system or BIOS? or credit card details, already available?
    2. The policy of inconveniencing (punishing) the huge majority of users (citizens) to prevent a tiny minority from misbehaving can be good for sheep, but not for rational people. It's typical of unimaginative, monopolistic companies (oppressive governments), not of progressive, modern and innovative ones. The cost of protecting their proficts from those who would steal from them is theirs (the company's), not ours (the users'). They should be more creative and inventive, in finding solutions to stop 10 people who would misuse their system, rather than annoying the 10 million who won't. I would never do so (mostly because I thing it's morally wrong, but also because I can't be bothered), but I understand why people invent ways to circumvent this gratuituos, bullish constraints.
    Also, CAN'T you REALLY see the difference between these TWO options:
    - allowing a user to change an app's associated account ONCE IN A LIFETIME, even only ONCE per app
    - FORCING a user to switch Apple IDs EVERY TIME (DAY, OR WEEK) FOREVER, to check and/or update
    ??? Am I talking to a person, or to a robot, or to a undercover Apple employee here?
    Both things are possible. The second is more convenient financially for Apple, that's all.
    But it's also so clearly unfair to their customers. No more, thanks.
    To finish, many if not almost all of the issues in threads like https://discussions.apple.com/message/18954743#18954743 (like husband and wife sharing a PC with two iPhones, or kids' gifts, etc) really boil down to this issue, despite being often complicated by sloppy explanation (when they say "password" , do they mean the Apple ID's or the Email account's?, and so on) and unreasonable requests (like having the same app, only paid once, available under two IDs, even if on the same PC: this is not what I ask, and it's unreasonable) -- and could be solved by the concept of a "master" ID and "secondary" ID: if you read well, the real issue is almost always for everybody having to switch between "old" (or "wife's", "kids'") and new (or "husband's", "dad's") Apple IDs: and this must be done on BOTH the iTunes application on the PC or Mac, and on the devices themselves.

  • To display splash screen for certian period of time using threads

    i want to write a program to display splash screen for certian period of time using threads. could some one help me

    If you just want a splash screen: [http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/|http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/]
    If you want to learn threads: [http://java.sun.com/docs/books/tutorial/essential/concurrency/|http://java.sun.com/docs/books/tutorial/essential/concurrency/]

  • Show splash screen for x amount of seconds

    Is there a better way to show a splash screen for x seconds than putting it in a while loop? It just seems so inefficiant and it uses a lot of processing power. This is what I have: long startTime = System.currentTimeMillis();
    while(System.getCurrentTimeMillis() <= startTime + 5000) {
        //wait
    mainPage.setVisible(true);

    javax.swing.Timer.
    Also:
    http://java.sun.com/javase/6/docs/api/java/awt/SplashS
    creen.htmlThank you, I knew there had to be a better way.

  • Chromeless splash screen for application

    hi!
    Anyone know how to create a Chromeless splash screen for java application.Just like the startup screen for the normal application? When the java application start-up the screen will show, it's close after a few screen or user click a button.
    and is there anyway to add background image for a java application?
    Thank in advance!
    jet

    hi there, check a look at this code:
    import javax.swing.*;
    import java.awt.*;
    public class Splash implements Runnable, mainInterface{
    private String initMsg;
    public Splash(String initMsg) {
    this.initMsg = initMsg;
    public void run() {
    splashWindow.getContentPane().add(l, BorderLayout.CENTER);
    splashWindow.pack();
    splashWindow.setSize(splashWindow.getSize().width, splashWindow.getSize().height);
    splashWindow.setLocation(dim.width/2 - splashWindow.getWidth() /2,dim.height/2 -
    splashWindow.getHeight()/2);
    splashWindow.toFront();
    splashWindow.show(); }
    public JWindow getWindow()
    return splashWindow;
    }add this code to the main file
    private static void splash()
              th.start(); // I sleep to let the thread startup and display the window
                   while (splash3.getWindow() == null || !splash3.getWindow().isShowing())
                        try {
                             Thread.sleep(2000);
                        catch (InterruptedException e){}
         }hope u understand this
    asrar

  • Excel 2013 stalling at splash screen for files in use by others

    Excel 2013 is stalling (and not opening) when trying to open a file that is in use by another user. In office 2010 it would prompt the user to open in read-only mode, but in 2013 it seems to just stall and never open. It just stays on the splash screen
    for ever. We have done some testing and it appears that double clicking on an excel file causes this to occur, but will function correctly if the file is opened through excel's file browser.  Any suggestions on how to fix this?  It's a pain to make
    all the users open excel first, then browse through a lengthy network location.  Thanks in advance!
    For information purposes: these are files on a network location shared by many users.

    Hi,
    Did the issue occur when you just installed the Office 2013 or after using Office 2013 sometimes? I recommend we try the following methods and test to check if they are helpful.
    1. Click the File tab>Options>Advanced>scroll down to the General section>Clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the General area.
    2. Install the latest Cumulative Update for Excel
    3. Right click on the Start Button>Click 'Open Windows Explorer'> click Organize > Layout> Uncheck Details Pane and Preview Pane.
    On a Windows menu, click on Tools > Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK.
    4. Check/Disable the Excel add-ins
    5. Repair Office.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support

  • Building Splash Screens for my MIDlet ????

    i want to build a Splash Screen, please help. My Code:
    package ewetmidlet;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    public class EwetMidletMain extends MIDlet implements CommandListener {
         public Display display = null;
         private Command cmdAdd;
         private Command cmdBack;
         private Command cmdExit;
         private EwetNews en = null;
         private EwetDates ed = null;
         private EwetForum ef = null;
         private EwetSchedule es = null;
         private EwetPref ep = null;
         private EwetServlet servlet = null;
         public Alert alert = null;
         public List mainMenu;
         private String[] mainMenuChoices = {"News",
                             "Termine",
                             "Stundenplan",
                             "Forum",
                             "Einstellungen"};
         public EwetMidletMain () {
              display = Display.getDisplay (this);
         protected void startApp () {
              genNewsScr ();
              genMainMenu ();
              genDatesMenu ();
              genForumMenu ();
              genScheduleMenu ();
              genPrefScr ();
              display.setCurrent (mainMenu);
         protected void pauseApp () {
         protected void destroyApp (boolean unconditional) {
              ep.savePref ();
         private void genMainMenu () {
              if (mainMenu == null) {
                   cmdAdd = new Command ("OK", Command.OK, 1);
                   cmdBack = new Command ("Zur�ck", Command.BACK, 2);
                   cmdExit = new Command ("Beenden", Command.EXIT, 3);
                   mainMenu = new List ("EWET-Men�", List.IMPLICIT, mainMenuChoices, null);
                   //mainMenu.setTicker (new Ticker ("Achtung heute 1 Termin"));
                   mainMenu.addCommand (cmdAdd);
                   mainMenu.addCommand (cmdExit);
                   mainMenu.setCommandListener (this);
         private void genNewsScr () {
              en = new EwetNews (mainMenu, display);
         private void genDatesMenu () {
              ed = new EwetDates (mainMenu, display);
         private void genScheduleMenu () {
              es = new EwetSchedule (mainMenu, display);
         private void genForumMenu () {
              ef = new EwetForum ();
              ef.getForumMenu ().setCommandListener (this);
         private void genPrefScr () {
              ep = new EwetPref ();
              ep.getPrefScr ().setCommandListener (this);
         public void commandAction (Command c, Displayable d) {
              if (d == mainMenu) {
                   if (c.getCommandType () == Command.EXIT) {
                        ewetMidletExit ();
                   else if ((c == List.SELECT_COMMAND) || (c == cmdAdd)) {
                        switch (mainMenu.getSelectedIndex ()) {
                             case 0:
                                  display.setCurrent (en.getMenu ());
                                  break;
                             case 1:
                                  display.setCurrent (ed.getMenu ());
                                  break;
                             case 2:
                                  display.setCurrent (es.getMenu ());
                                  break;
                             case 3:
                                  display.setCurrent (ef.getForumMenu ());
                                  break;
                             case 4:
                                  display.setCurrent (ep.getPrefScr ());
                                  break;
              else if (d == ef.getForumMenu ()) {
                   if (c == ef.cmdBack) {
                        display.setCurrent (mainMenu);
              else if (d == ep.getPrefScr ()) {
                   if (c == ep.cmdBack) {
                        display.setCurrent (mainMenu);
         private void ewetMidletExit () {
              destroyApp (true);
              notifyDestroyed ();
         /*public void showSplashScreen(Display d, Displayable next ){
              Image logo = null;
              try {
                   logo = Image.createImage("/ewet.png" );
              catch( IOException e ){
              Alert a = new Alert( null,
                        "Copyright 2002 by Frank Putzger",
                             logo, null );
              a.setTimeout( Alert.FOREVER );
              display.setCurrent( a, next);
    }

    uh, you gave us the entire midlet....
    here's a splash screen extending canvas, with the calling method (from the midlet), below it:
    import java.util.*;
    import javax.microedition.lcdui.*;
    public class Splash extends Canvas {
    private Display display;
    private Displayable next;
    private Timer timer=new Timer();
    public Splash (Display display,Displayable next) {
    this.display=display;
         this.next=next;
         display.setCurrent(this);
    protected void showNotify () {
    timer.schedule( new TimerTask () { public void run() {
         displayNext(); }},8000);
    protected void hideNotify() {
    timer.cancel();
    protected void keyPressed (int keycode) {
    displayNext();
    protected void pointerPressed (int x, int y) {
    displayNext();
    private void displayNext() {
    display.setCurrent(next);
    protected void paint (Graphics g) {
    int height=this.getHeight();
    int width=this.getWidth();
    // fill background as white
    g.setColor(0xFFFFFF);
    g.fillRect(0,0,width,height);
    Image logo=null;
    try {
    logo=Image.createImage("/images/logo.png");
              } catch (Exception ignore) {}
    g.drawImage(logo,width/2,height/2,g.HCENTER|g.VCENTER);
    here's the calling method (it passes the Display and current Displayable):
    * This shows the splash
    private void showSplash () {
         new Splash (display,MenuList);

Maybe you are looking for

  • FM for Actual cost line items for orders.

    HI EXPERTS, I was working on Actual cost line items for orders / Internal orders of an employee. standard program RKAEP000 is present through TCODE KOB1. I want some customization of report, so debugged the program and found that its using a FM 'K_LI

  • Soap Adapter will be stored?

    hi..      How  Soap Adapter will be stored? bye.

  • How does preordering work?

    I am currently under no carrier and have not owned any cellphone. Im just wondering how does pre-ordering the iPhone6 work(the process)? I'm planning on getting the 64Gig with Verizon Wireless, but when I pre-order does the phone get sent to my house

  • Aperture 3 and Photo-Feeds

    how can I suscribe to Photo-Feeds? In iPhoto this works easily with "cmd and U".

  • Different behaviour of XMLType storage

    hi, I have problem with different behaviour of storage type "BINARY XML" and regular storage ( simple CLOB I guess) of the XMLType datatype. Setup - Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production - XML file ( "Receipt.xm