Splash window

Hello,
I am having a slow database connection (which is not possible to speed up).
So I would like to have a kind of splash window to communicate to the user why she/he has to wait.
anything recommendable there (JSF or JSP)?
Thanks,
javoso

Thank you Sergey,
I am looking on how to implement that....
My problem is that I come to the "slow" window (before the one I would like to have the splash) from many other windows.
So, I should in that case put the main and hidden DIV in all that windows... Not really elegant :)
I am considering forwarding to a "middle" window (which will act as the splash).
Thanks!

Similar Messages

  • Saved component splash window is blank

    I use components a lot, but have lots of annoyance with the splash window that happens - when you save a component, then GoLive tells you about updating the pages that use the component, then it does it . . . and then there's a splash window that tells you (in so many words) -
    Updated [ok]
    Except that this last splash is quite often completely white/blank, with no way of getting rid of it - no [x] in the top corner, nothing.
    Does anyone else have this problem? Causes? Solutions?
    Thanks, Nick

    GoLive CS, running under Windows XP, as it has done ever since I got it years ago.Has proved much more stable than other folks report, but does crash out from time to time, c'est la vie. But it's such a nice program (I have used Dreamweaver, professionally) and enables me to concentrate on structure, design and content - which is what websites are all for, and not getting computer nerd credentials (which I have no interest in).
    This however, is a perennial and irritating program glitch, especially prone to occur when the component editing window is maximised - not so much when a window amongst/over other windows in the GoLive workspace. The program saves, updates, smallifies the component window (without my wanting it to!!!) and then comes up with a blank 'I've done it' splash. Has happened more, recently, since I got a higher spec machine with a higher resolution screen. Progress, huh?

  • When i download digital editions any version, we enter run then we get splash window and get no furthe

    when we download digital editions any version, we open and all we get is the splash window, we have left the splash window run all night before but cannot get any further help would be appreciated

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Painting on a splash window?

    Is it possible to paint on a splash window? i have downloaed skinlf from www.l2fprod.com...everything is working just fine. Just need to see if there is a way to paint to it...make buttons and such...
    THANKS BROTHAS!! well and SISTAS!

    nevermind i figured it out!! weeeeeeee!

  • DVDSP4 stalls on startup splash window

    Has anyone else run into this issue? I start the application and the splash page comes up and then it just sits there. I've walked away, thinking maybe it's just taking a while to start up (as it sometimes will) and come back 30 minutes later and it's still not opening a project. I go to the dock and control click to force quit and it doesn't say that the program is not responding. Any ideas?

    So, I went into my admin account and looked at more of my console logs and found this from today:
    2009-02-11 16:15:28.307 DVD Studio Pro[347] * -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)
    2009-02-11 16:15:50.901 DVD Studio Pro[347] -[DSPXInspectorMainCategoryViewModule loadWindow]: failed to load window nib file 'DSPXInspectorBaseViewModule'.
    2009-02-11 16:16:05.846 DVD Studio Pro[347] -[DSPXThemeViewModule loadWindow]: failed to load window nib file 'DSPXThemeViewModule'.
    2009-02-11 16:16:05.847 DVD Studio Pro[347] -[DSPXStyleViewModule loadWindow]: failed to load window nib file 'DSPXStyleViewModule'.
    2009-02-11 16:16:05.847 DVD Studio Pro[347] -[DSPXShapeViewModule loadWindow]: failed to load window nib file 'DSPXShapeViewModule'.
    2009-02-11 16:17:09.590 DVD Studio Pro[364] no localization for TemplateCacheNameKey in Templates
    2009-02-11 16:17:09.590 DVD Studio Pro[364] no localization for DefaultName in Templates
    2009-02-11 16:17:09.598 DVD Studio Pro[364] TSAssert: <TSAssertionToLog>
    Function: -[DSPXWorkspaceTemplateManager directoryForCategory:]
    File: /SourceCache/DSP/DSP-431.25/DSPInterface/Templates/DSPXWorkspaceTemplateManager .m
    Line: 181
    It's actually saying that these window nibs failed to load. Is there some way from the information given for me to figure out WHY they failed to load.

  • Speedgrade won't launch  - Splash Window then nothing!

    Hello,
    I have had an issue with Adobe Speedgrade CC 2014 not launching either stand-alone (just launching the app) or by using the Direct Link from Premiere Pro.
    The Splash screen appears, then vanishes without showing the software. Basically, it looks like this after attempting to launch the app.
    After that, the splash screen vanishes, and I'm left with this:
    The Speedgrade app doesn't launch, and the Speedgrade Menu Bar item doesn't do much; it allows me to quit the app, or I can force quit from the dock.
    This happened to me before, and I contacted Adobe Support. They logged into my machine, and did something with folders and the like, and it seemed to work for a few days, but they did not tell me WHAT they had done. My attempts just now to recreate those steps have been in failure.
    Here is what I have attempted:
    Opt-Shift click to launch Speedgrade, to skip Preferences.
    Trash Preferences.
    Uninstall-Reinstall Speedgrade.
    Run the adobe CC Cleaner app.
    Restart my computer.
    The computer I am using is a MacPro tower, late 2012.
    3.2 Ghz Quadcore Intel Xeon
    20 GB Ram
    ATI Radeon HD 5700 1024 MB Graphics
    OS is currently on 10.10.1, and Speedgrade is fully up-to-date, as is the OS, I believe.
    I'm unsure of how to proceed, but would love to find a permanent solution. This is the only software in the Creative Cloud that is 'acting up' on me, and it was becoming one I had hoped to use more frequently....sadly I won't be able to do so if it fails to launch like this again. I would like to be do this myself without needing adobe support to log into my machine, as I don't recall what they did exactly, since they merely left me with a 'okay, it should work now.'
    Thanks for your time!
    Jonathan Williams

    Yes, there have been others with similar issues. Perhaps a bit more to the Mac side of the Grand Divide, but some in PC World also. There have not been a *lot* of users with this, but some ... and for whomever this hits, it's not a minor issue, is it?
    As to other software ... yes, there have been instances of PrPro & Ae having the same problem. There's a lot fewer installations of Sg (as far as I know) than either PrPro or Ae, so I've no clue as to percentage of this per program in a relative sense.
    As I've noted in another thread, in a few cases the "solution" was based in Mac OS ... someone finally re-formatted their machine, re-installed their OS, then all the flipping programs on the rig ... and when firing up their Adobe DVA's, the offending program worked as per expectations after having been through every flipping thing anyone here or Adobe staff could think of without success. As I'm thinking about it, I do recall one PC user reporting a similar thing ... completely re-formatted and then things just worked. On the Mac side, there've been a couple dot-releases of the OS that have been notable for having problems here, and by reverting to the previous OS release they got back in operation. I don't know which particular numbers those are.
    Re-formatting and/or reverting is a time-consuming and frustrating/painful process for most of us. I don't recommend doing so. I'm just noting that for a few, it's been an OS issue, something they couldn't find but clearly with re-installing their OS, stopped being an issue. And a few people have then tried it ... and ... just had all the pain & none of the success.
    At this point, I'm gonna reference Dennis Weinmann and Fran Roig who are both engineers on the Sg team and work these forums when not buried with little things like say, reworking the program itself, as they have the tech knowledge of all the under-the-hood things that might be of useful assistance. I can speculate ... they could probably help. Or Kevin-Monahan who's more known for being on the PrPro boards but does help here some also ...
    Neil

  • Disconnecting produces lots of connect splash windows

    Hello forum,
    today I downloaded SQL Developer 1.1.0.23.64 and experienced a strange behaviour when disconnecting from Oracle.
    I run SQL Developer on Debian Linux against an Oracle 10.2 on Solaris. After connecting, I enter e.g. select * from dual and press F9.
    Then I right click on the connection an select Disconnect.
    Now a spash window pops up saying "Connecting to atlas - la" (that is the name of the connection". It has an abort button, that does nothing. When I move the window away. There is another one beneath it. As I'm writing this I have 11 of these windows on my desktop (Windowmaker).
    Regards,
    dhalek

    Basically, there is a bug with SQL Developer in that it attempts to connect again after disconnecting in certain circumstances (maybe as simple as SQL Worksheet open that has been used for the connection).
    Where you save passwords, this doesn't produce a big problem, although it is keeping the connection open by reconnecting. Where you don't save passwords, this locks up SQL Developer and you need to use kill SQL Developer to get out of the "Connecting to ..." loop (at least I do).
    As le848dave indicated in their post, even the work-arounds of saving passwords or closing worksheets before disconnecting doesn't completely avoid the problem.
    Has anyone on the SQL Developer team seen this thread, as I have not recognised any of the responders as being in the team?

  • Useful Code of the Day:  Splash Screen & Busy Application

    So you are making an Swing application. So what are two common things to do in it?
    1) Display a splash screen.
    2) Block user input when busy.
    Enter AppFrame! It's a JFrame subclass which has a glass pane overlay option to block input (setBusy()). While "busy", it displays the system wait cursor.
    It also supports display of a splash screen. There's a default splash screen if you don't provide a component to be the splash screen, and an initializer runner which takes a Runnable object. The Runnable object can then modify the splash screen component, for example to update a progress bar or text. See the main method for example usage.
    It also has a method to center a component on another component (useful for dialogs) or center the component on the screen.
    NOTE on setBusy: I do recall issues with the setBusy option to block input. I recall it having a problem on some Unix systems, but I can't remember the details offhand (sorry).
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    * <CODE>AppFrame</CODE> is a <CODE>javax.swing.JFrame</CODE> subclass that
    * provides some convenient methods for applications.  This class implements
    * all the same constructors as <CODE>JFrame</CODE>, plus a few others. 
    * Methods exist to show the frame centered on the screen, display a splash
    * screen, run an initializer thread and set the frame as "busy" to block 
    * user input. 
    public class AppFrame extends JFrame implements KeyListener, MouseListener {
          * The splash screen window. 
         private JWindow splash = null;
          * The busy state of the frame. 
         private boolean busy = false;
          * The glass pane used when busy. 
         private Component glassPane = null;
          * The original glass pane, which is reset when not busy. 
         private Component defaultGlassPane = null;
          * Creates a new <CODE>AppFrame</CODE>. 
         public AppFrame() {
              super();
              init();
          * Creates a new <CODE>AppFrame</CODE> with the specified
          * <CODE>GraphicsConfiguration</CODE>. 
          * @param  gc  the GraphicsConfiguration of a screen device
         public AppFrame(GraphicsConfiguration gc) {
              super(gc);
              init();
          * Creates a new <CODE>AppFrame</CODE> with the specified title. 
          * @param  title  the title
         public AppFrame(String title) {
              super(title);
              init();
          * Creates a new <CODE>AppFrame</CODE> with the specified title and
          * <CODE>GraphicsConfiguration</CODE>. 
          * @param  title  the title
          * @param  gc     the GraphicsConfiguration of a screen device
         public AppFrame(String title, GraphicsConfiguration gc) {
              super(title, gc);
              init();
          * Creates a new <CODE>AppFrame</CODE> with the specified title and
          * icon image. 
          * @param  title  the title
          * @param  icon   the image icon
         public AppFrame(String title, Image icon) {
              super(title);
              setIconImage(icon);
              init();
          * Creates a new <CODE>AppFrame</CODE> with the specified title and
          * icon image. 
          * @param  title  the title
          * @param  icon  the image icon
         public AppFrame(String title, ImageIcon icon) {
              this(title, icon.getImage());
          * Initializes internal frame settings. 
         protected void init() {
              // set default close operation (which will likely be changed later)
              setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              // set up the glass pane
              glassPane = new JPanel();
              ((JPanel)glassPane).setOpaque(false);
              glassPane.addKeyListener(this);
              glassPane.addMouseListener(this);
          * Displays a new <CODE>JWindow</CODE> as a splash screen using the
          * specified component as the content.  The default size of the
          * component will be used to size the splash screen.  See the
          * <CODE>showSplash(Component, int, int)</CODE> method description for
          * more details. 
          * @param  c  the splash screen contents
          * @return  the window object
          * @see  #showSplash(Component, int, int)
          * @see  #hideSplash()
         public JWindow showSplash(Component c) {
              return showSplash(c, -1, -1);
          * Displays a new <CODE>JWindow</CODE> as a splash screen using the
          * specified component as the content.  The component should have all
          * the content it needs to display, like borders, images, text, etc. 
          * The splash screen is centered on monitor.  If width and height are
          * <CODE><= 0</CODE>, the default size of the component will be used
          * to size the splash screen. 
          * <P>
          * The window object is returned to allow the application to manipulate
          * it, (such as move it or resize it, etc.).  However, <B>do not</B>
          * dispose the window directly.  Instead, use <CODE>hideSplash()</CODE>
          * to allow internal cleanup. 
          * <P>
          * If the component is <CODE>null</CODE>, a default component with the
          * frame title and icon will be created. 
          * <P>
          * The splash screen window will be passed the same
          * <CODE>GraphicsConfiguration</CODE> as this frame uses. 
          * @param  c  the splash screen contents
          * @param  w  the splash screen width
          * @param  h  the splash screen height
          * @return  the window object
          * @see  #showSplash(Component)
          * @see  #hideSplash()
         public JWindow showSplash(Component c, int w, int h) {
              // if a splash window was already created...
              if(splash != null) {
                   // if it's showing, leave it; else null it
                   if(splash.isShowing()) {
                        return splash;
                   } else {
                        splash = null;
              // if the component is null, then create a generic splash screen
              // based on the frame title and icon
              if(c == null) {
                   JPanel p = new JPanel();
                   p.setBorder(BorderFactory.createCompoundBorder(
                        BorderFactory.createRaisedBevelBorder(),
                        BorderFactory.createEmptyBorder(10, 10, 10, 10)
                   JLabel l = new JLabel("Loading application...");
                   if(getTitle() != null) {
                        l.setText("Loading " + getTitle() + "...");
                   if(getIconImage() != null) {
                        l.setIcon(new ImageIcon(getIconImage()));
                   p.add(l);
                   c = p;
              splash = new JWindow(this, getGraphicsConfiguration());
              splash.getContentPane().add(c);
              splash.pack();
              // set the splash screen size
              if(w > 0 && h > 0) {
                   splash.setSize(w, h);
              } else {
                   splash.setSize(c.getPreferredSize().width, c.getPreferredSize().height);
              centerComponent(splash);
              splash.show();
              return splash;
          * Disposes the splash window. 
          * @see  #showSplash(Component, int, int)
          * @see  #showSplash(Component)
         public void hideSplash() {
              if(splash != null) {
                   splash.dispose();
                   splash = null;
          * Runs an initializer <CODE>Runnable</CODE> object in a new thread. 
          * The initializer object should handle application initialization
          * steps.  A typical use would be:
          * <OL>
          *   <LI>Create the frame.
          *   <LI>Create the splash screen component.
          *   <LI>Call <CODE>showSplash()</CODE> to display splash screen.
          *   <LI>Run the initializer, in which: 
          *   <UL>
          *     <LI>Build the UI contents of the frame.
          *     <LI>Perform other initialization (load settings, data, etc.).
          *     <LI>Pack and show the frame.
          *     <LI>Call <CODE>hideSplash()</CODE>.
          *   </UL>
          * </OL>
          * <P>
          * <B>NOTE:</B>  Since this will be done in a new thread that is
          * external to the event thread, any updates to the splash screen that
          * might be done should be triggered through with
          * <CODE>SwingUtilities.invokeAndWait(Runnable)</CODE>. 
          * @param  r  the <CODE>Runnable</CODE> initializer
         public void runInitializer(Runnable r) {
              Thread t = new Thread(r);
              t.start();
          * Shows the frame centered on the screen. 
         public void showCentered() {
              centerComponent(this);
              this.show();
          * Checks the busy state.
          * @return  <CODE>true</CODE> if the frame is disabled;
          *          <CODE>false</CODE> if the frame is enabled
          * @see  #setBusy(boolean)
         public boolean isBusy() {
              return this.busy;
          * Sets the busy state.  When busy, the glasspane is shown which will
          * consume all mouse and keyboard events, and a wait cursor is
          * set for the frame. 
          * @param  busy  if <CODE>true</CODE>, disables frame;
          *               if <CODE>false</CODE>, enables frame
          * @see  #getBusy()
         public void setBusy(boolean busy) {
              // only set if changing
              if(this.busy != busy) {
                   this.busy = busy;
                   // If busy, keep current glass pane to put back when not
                   // busy.  This is done in case the application is using
                   // it's own glass pane for something special. 
                   if(busy) {
                        defaultGlassPane = getGlassPane();
                        setGlassPane(glassPane);
                   } else {
                        setGlassPane(defaultGlassPane);
                        defaultGlassPane = null;
                   glassPane.setVisible(busy);
                   glassPane.setCursor(busy ?
                        Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) :
                        Cursor.getDefaultCursor()
                   setCursor(glassPane.getCursor());
          * Handle key typed events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  ke  the key event
         public void keyTyped(KeyEvent ke) {
              ke.consume();
          * Handle key released events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  ke  the key event
         public void keyReleased(KeyEvent ke) {
              ke.consume();
          * Handle key pressed events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  ke  the key event
         public void keyPressed(KeyEvent ke) {
              ke.consume();
          * Handle mouse clicked events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  me  the mouse event
         public void mouseClicked(MouseEvent me) {
              me.consume();
          * Handle mouse entered events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  me  the mouse event
         public void mouseEntered(MouseEvent me) {
              me.consume();
          * Handle mouse exited events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  me  the mouse event
         public void mouseExited(MouseEvent me) {
              me.consume();
          * Handle mouse pressed events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  me  the mouse event
         public void mousePressed(MouseEvent me) {
              me.consume();
          * Handle mouse released events.  Consumes the event for the glasspane
          * when the frame is busy. 
          * @param  me  the mouse event
         public void mouseReleased(MouseEvent me) {
              me.consume();
          * Centers the component <CODE>c</CODE> on the screen. 
          * @param  c  the component to center
          * @see  #centerComponent(Component, Component)
         public static void centerComponent(Component c) {
              centerComponent(c, null);
          * Centers the component <CODE>c</CODE> on component <CODE>p</CODE>. 
          * If <CODE>p</CODE> is null, the component <CODE>c</CODE> will be
          * centered on the screen. 
          * @param  c  the component to center
          * @param  p  the parent component to center on or null for screen
          * @see  #centerComponent(Component)
         public static void centerComponent(Component c, Component p) {
              if(c != null) {
                   Dimension d = (p != null ? p.getSize() :
                        Toolkit.getDefaultToolkit().getScreenSize()
                   c.setLocation(
                        Math.max(0, (d.getSize().width/2)  - (c.getSize().width/2)),
                        Math.max(0, (d.getSize().height/2) - (c.getSize().height/2))
          * Main method.  Used for testing.
          * @param  args  the arguments
         public static void main(String[] args) {
              final AppFrame f = new AppFrame("Test Application",
                   new ImageIcon("center.gif"));
              f.showSplash(null);
              f.runInitializer(new Runnable() {
                   public void run() {
                        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        f.getContentPane().add(new JButton("this is a frame"));
                        f.pack();
                        f.setSize(300, 400);
                        try {
                             Thread.currentThread().sleep(3000);
                        } catch(Exception e) {}
                        f.showCentered();
                        f.setBusy(true);
                        try {
                             Thread.currentThread().sleep(100);
                        } catch(Exception e) {}
                        f.hideSplash();
                        try {
                             Thread.currentThread().sleep(3000);
                        } catch(Exception e) {}
                        f.setBusy(false);
    "Useful Code of the Day" is supplied by the person who posted this message. This code is not guaranteed by any warranty whatsoever. The code is free to use and modify as you see fit. The code was tested and worked for the author. If anyone else has some useful code, feel free to post it under this heading.

    Hi
    Thanks fo this piece of code. This one really help me
    Deepa

  • Boot Camp 2.x and Windows XP incompatible with Radeon 1600 Video Adapter

    Using Boot Camp Assistant 2.0 from a Leopard Install, I generated a 20GB partition and installed Windows XP SP2 reformatting during the install to NTFS. At this point things seemed to be working well. I then used my Leopard Install disk to update the MAC drivers. Now when I tried to reboot, I see the Windows splash window, the screen goes black, the screen goes cyan, then the screen goes black and stays that way. At this point, I cannot do anything with the Windows XP partition other than a power down by holding the power key. If I try to reboot on the XP partition, it goes through a hard drive repair, then goes black screen, light blue screen, black screen, hung. I can boot with Safe Boot, but I have no keyboard or trackpad drivers. I can run the system with an external USB mouse and keyboard.
    A friend found that the Video Adapters being used were a problem. (We can't find the reference.) If I go to Start/RightClick My Computer/Hardware/Device Manager/Video Adapters, I can right click on whatever adapters are located there and Uninstall them. At this point, the system will boot up fine using a generic video adapter. I don't know how well it would work if you wanted to use it for high speed gaming.
    On bootup I could get to the Internet. I went to Start/All Programs/Windows Update and did the Windows Update. I did it twice to get everything updated to Service Pak 3. (I have read that there is a problem if you upgrade the Apple Drivers to version 2.1 before you upgrade to Service Pak 3.)
    At this point, I installed the Boot Camp Update 2.1 and all worked well. I then installed Update 2.2 and the video was again a problem. It appears that the system was booting up ok, but it was happening behind a black screen. If I booted up in Safe Mode, connected a USB Mouse and Uninstalled the Video Adapter/Radeon 1600, I could boot up and the system worked fine.
    Unfortunately, Windows (for the first time that I know of) was smart enough to recognize that there was new hardware (the X1600) and it reinstalled the @!#$#-ed X1600 driver without asking me. Now I couldn't reboot without it hanging again.
    The final step was that I found that if, instead of Uninstalling, I Disabled the X1600, I can now run using the generic Video Adapter and Windows does not re-enable it.
    I hope this helps anyone who has a similar problem, so they don't waste 2 weeks like I did.

    Hi Dave,
    thanks for these informations.
    Before my beloved 2006 iMac went awry and finally bit the dust, I have used the ATI MobilityCatalyst Drivers for XP.
    If you're in for another try, here's the link http://support.amd.com/de/gpudownload/windows/Legacy/Pages/radeonmob_xp.aspx?typ e=2.4.2&product=2.4.2.3.10&lang=English
    Using the Generic Microsoft Graphics driver is IMHO not a solution, as it really only supports a minimum of the capabilities of the X1600 and is definitely not suited for gaming.
    Stefan

  • Designer Window does not open: User already logged In: Reset Users,Continue

    Hi,
    When I try to login to Business Objects XI 3.2 data services Desginer-> It opens the 'SAP BusinessObjects Data Services Repository Login' Window. I eneter the ODBC data source, Username and Password correctly.
    It gives a message: The following users are already logged on: Do you want to 'Reset users', 'Continue', Exit.
    When I click on either 'Reset Users' or 'Continue'.... it opens the splash window, yellow color, 'SAP Business Objects Data Services XI' and hangs there....
    I tried re-installing 3.2, but that did not help...
    Also the user which it mentions in the error message, The following users are already logged on: , is the user which I use to log in to my system.
    Could anyone pls suggest, how do I resolve this, so that it opens the 'Designer window'.

    Hello LaRaju
    Is better to late than never...
    when you start BO you have got "cannot initialize application BODI 1270039" error message.
    I got that message on Business Objects XI 3.2 installation.
    Root cause of problem - BO uninstaller dont delete keys from Windows registry.
    you should to do next:
    1) uninstall BO when uninstaller asked you for reload your PC ask - NO (later)
    2) load registry editor
    3) find HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects
    4) delete that branch
    5) go to the BO installation directory -delete it with all content
    6)  reload your PC
    7) repeat installation process
    after that all will be work fine
    Regards
    Kanstantsin Chernichenka

  • Synchronizing sound and image for splash screen.

    Hello all,
    I have a peculiar request. ...
    I have a sound file (about 137KB) and an animated gif (about 134KB).
    I would like to use this as my splash window before my app starts up.
    I know how to load these 2 to a screen but my problem is how do I synchronize the sound to go along with the image when it starts up? (Its a gunshot sound, whcih is looped with the animated image showing the bullet holes ;-)
    I've been investigating using the Timer class but no success to date.
    Currently, the sound file loads up, starts and then a few seconds later the image..
    So.... How do I:
    1. Load the sound first.
    2. Load the image.
    3. Start both of them synchronized.

    This is actually pretty involved...
    Are you using java.applet.AudioClip to play the sound? Are you loading the animated gif as a JLabel or something using ImageIcon?
    If you are using AudioClip for the audio, I suggest that you cache the sound and image before playing the sound... otherwise you'll probably hear pops or the sound will pause. To cache the sound, do this:
    AudioClip clip = Applet.newAudioClip("somefile");
    Unfortunately, java really sucks at handling animated gifs. On slower computers, I've seen it take about 15-20 seconds to load an animated gif that's around 90k in size... totally unacceptable! If you have a gif that just plays a once (or a few times) and then stops, you'll have to flush the graphic to restart the image. This will reload the file and cause the long delay every time you need to replay the gif.
    It seems like the best thing to do is to break up the animated gif into frames (either put each frame in its own file, or place each frame into one large image file and use clip rectangles to retrieve frames) and handle the animation yourself with your own thread. Alternatively, you can use the GifDecoder utility available at http://www.fmsware.com/stuff/gif.html, but be careful when using GifDecoder, it eats up a lot of memory for larger Gif files. When you handle the animation yourself, things should work properly. Again, make sure to cache the images by doing something like:
    ImageIcon ii = new ImageIcon("somefile");
    Once everything is preloaded, things should be pretty much synchronized if you play the sound and then show the image.
    To have more control, you may have to use an object with synchronized methods... like if you want a sound to play on the 3rd and 10th frame of animation. Another option is to use Quicktime for Java.
    If you need more info, let me know!

  • Splash Screen Appears as a White Rectangle

    Hi,
    I am trying to show a splash screen in my application, which is to be shown as long as a runtime process has completed execution.
    The code i used for the Splash screen is:
    import javax.swing.JWindow;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import java.awt.MediaTracker;import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.*;
    public class Splash implements Runnable
    private JWindow splashWindow;
    private String message;
    protected JLabel label;
    public Splash(String initMsg)
    this.message = initMsg;
    public void run()
    label = new JLabel(message);
    splashWindow = new JWindow();
    splashWindow.getContentPane().add(label, BorderLayout.CENTER);
    splashWindow.pack();
    splashWindow.setSize(splashWindow.getSize().width, splashWindow.getSize().height);
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
    splashWindow.setLocation(dim.width/2 - splashWindow.getWidth() /2,dim.height/2 -
    splashWindow.getHeight()/2);
    splashWindow.toFront();
    splashWindow.show();
    public JWindow getWindow()
    return splashWindow;
    public void close()
    splashWindow.dispose();
    public void showStatus(final String status)
    label.setText(status);
    splashWindow.show();
    In my main program, i am using the Splash class as follows:
    splash = new Splash("Drawing Graph...");
    Thread th = new Thread(splash);
    th.start();
    while (splash.getWindow() == null || !splash.getWindow().isShowing())
    try
    th.sleep(100);
    catch (InterruptedException e){}
    try
    Thread.sleep(1000);
    catch (InterruptedException e) {}
    Process proc = null;
    proc = Runtime.getRuntime().exec(....some process to draw a graph....);
    proc.waitFor();
    // deal with the proc streams....
    splash.showStatus("Drawing Graph....Done");
    splash.close();
    The problem is that, the splash window appears as a blank rectangle without any string on in. It appears and closes properly. But, it does not show the status string.
    Please help!!!
    thanks,
    bblak

    You're blocking the event dispatch thread so no repaints can be processed.
    Take a look at SwingWorker or http://spin.sourceforge.net.
    Sven

  • Problem in displaying splash screen..

    Hi..
    First of all my apology to repost the question as i was asked to post it here for the answer.I've developed a desktop application which has a splash screen.I'm using netbeans 6.0.Now, i am able to view the splash screen if i 'build' and 'run' the application in the IDE.But when i run the jar file i am not able to see the splash screen.
    This is how i've put the splash screen for my application.In project->properties->run->in VM options : splash.gif. Please help to display the splash screen when i run just the jar file.
    Thank you

    I don't understand what the way you're doing. It's a Netbeans option??
    Currently I'm developing a Swing app and I have a splash window. The way I've done it is creating a sublcass of JWindow, adding a panel, a JLabel and setting an icon.
    Like this:
    public class InitSplash extends JWindow {
         public InitSplash(Frame owner) throws HeadlessException {
              super(owner);
              initGUI();
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              Dimension labelSize = jLabel.getPreferredSize();
              setLocation(screenSize.width / 2 - (labelSize.width / 2),
                        screenSize.height / 2 - (labelSize.height / 2));
         private void initGUI() {
              try {
                        this.setPreferredSize(new java.awt.Dimension(110, 150));
                        this.setLocationByPlatform(true);
                        jPanel1 = new JPanel();
                        getContentPane().add(jPanel1, BorderLayout.CENTER);
                        jPanel1.setBackground(new java.awt.Color(255,255,255));
                        jPanel1.setBorder(new LineBorder(new java.awt.Color(0,0,0), 2, false));
                             jLabel = new JLabel();
                             jPanel1.add(jLabel);
                             jLabel
                                       .setIcon(new ImageIcon(
                                                 getClass()
                                                           .getClassLoader()
                                                           .getResource(
                                                                     "com/ttt/common/gui/graphics/logo-transparente.gif")));
                             msgLabel = new JLabel();
                             jPanel1.add(msgLabel);
                             msgLabel.setText("Loading...");
                             msgLabel.setFont(new java.awt.Font("Tahoma",1,12));
                             msgLabel.setPreferredSize(new java.awt.Dimension(102, 25));
                             msgLabel.setHorizontalAlignment(SwingConstants.CENTER);
                   pack();
              } catch (Exception e) {
                   e.printStackTrace();
         }Is this what you are trying?

  • Inserting a splash screen

    I'm thinking of inserting a splash screen before the actual screen to be displayed is available( for wap). This is just like a screen will appear for a few seconds and then straight go to the next page or card.
    Thanks.

    Here is one simple examples, which creates splash screen and disposes off on click of mouse.
    class SplashWindow extends JWindow
    public SplashWindow(Frame f)
    super(f);
    try{
    Log.out(Log.LEVEL_LOG , getClass(), "Splash Window");
    ImageIcon icon = new ImageIcon(getClass().getResource("me.jpg"));
    JLabel l = new JLabel(icon);
    getContentPane().add(l, BorderLayout.CENTER);
    setSize(new Dimension(500, 350));
    Dimension screenSize =
    Toolkit.getDefaultToolkit().getScreenSize();
    Dimension labelSize = l.getPreferredSize();
    setLocation(screenSize.width/2 - (labelSize.width/2),
    screenSize.height/2 - (labelSize.height/2));
    addMouseListener(new MouseAdapter()
    public void mousePressed(MouseEvent e)
    setVisible(false);
    dispose();
    setVisible(true);
    } catch (Exception e) {}

  • Dmenu_themed - Applies the colors of your window manager to dmenu

    Hi everybody,
    i put together a little script named dmenu_themed which reads the window colors from the configuration of the i3 window manager and calls dmenu_run with those colors. Currently, only i3 is supported, but i'll eventually add support for gtk+ colors and other window managers.
    You can use it like dmenu_run and append all dmenu_run options as they will be handed over to dmenu_run.
    Head over to github and check it out:
    https://github.com/okraits/dmenu_themed
    Any feedback including questions, suggestions, feature requests, improvements etc is highly appreciated.
    Greetings,
    Oliver

    unexist wrote:Well, I must admit the overall idea really sounds like subtle and I don't understand some of the named differences, but I agree that the grid approach nice.
    Perhaps mentioning the idea of the 3x3 grid up front was too distracting, given folks' experience with subtle. The goomwwm grid is really just a guide for fast floating window movement. Tiling functionality is not strongly linked to it, nor limited by it. Don't think of this as a tiling WM with strict grids, but a stacking WM that makes it easy to tile.
    Some screenshots of tiling layouts done on the fly using a few keyboard commands:
    I'm still working on the controls, but the above was done pretty quickly. I'd guess easily as fast as most manual tiling WMs, once one knows the controls...
    unexist wrote:So basically all windows are stacked above each other, how do you plan multiscreen support without a virtual desktop concept? Just span the single desktop across all screens?
    From the EWMH perspective of a desktop, goomwwm tags are the same thing.  Use the desktop pager from any dock or panel to switch tags, just like desktops.  The only oddities are that, like any good tiling WM, goomwwm's windows can have multiple tags and raising a tag does not hide other tags.
    Multiscreen support for Xinerama and Xrandr is done and tested on what hardware I have access to (an Nvidia Twinview box, a regular Xinerama box, and a Laptop using xrandr to run an external monitor). Each physical screen has it's own grid -- that is, a fullscreen app would only fill one physical screen and splash windows center on the active monitor -- but nothing more strict than that. I suppose tags-as-desktop could be limited to each screen, but that is up to the user doing the tagging.

Maybe you are looking for

  • How to run Weblogic Server 8.1 in Win 98/Red Hat Linux

    I've receieved the Weblogic Server 8.1 Evaluation version. I've installed it successfully. But while I try to start the Weblogic Server the progress bar shows the completion of the server start but the indicator does not turn green. What might be the

  • Struts internalization for javascript messages

    Hi ALL, I am doing an internalization to my struts application... i am using property files for each language (say for example, english, french.. etc,) ... i can get the labels, messages to the struts fields, other texts.. but how to interact the jav

  • G470 Bluetooth not listed under Device Manager and not working

    Hi, Can someone teach me how to solve my G470 problem? Its Bluetooth is not listed under Device Manager and I can't find it anywhere. Before that, it isn't working at all. Thanks Solved! Go to Solution.

  • Gallery on flash

    hello !! I want some help to make a flash gallery the gallery is in this site: http://www.silversteinproperties.com/ I make buttons for the thumbnails.. but I need the code, can you give me help, some tutorial or something?? Thanks a lot Bruno

  • DB2 UDB Compression vs performance improvements benchmarks

    Hi Are there any bench mark results on the effect of DB2 UDB data compression. Though by theory, this is supposed to improve the performance, even after considering the trade off in the data compression, I am not seeing any real life results on this.