Splash Screen Code

I couldn't find any splash screen code I like on the Internet, so I made this. I'm just posting this in case someone else finds it useful.
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JWindow;
* The worst Splash Screen. Ever.
* @author George Wyatt
* @version 0.1
public class SplashScreen extends JWindow {
      * Holds a static instance of this class.
    static private class Holder
       static protected final SplashScreen manager = new SplashScreen();
      * Hides the splash.
     public static void hideSplash() {
          SplashScreen.Holder.manager.setVisible(false);
      * Changes the image file to be splashed.
      * @param filename  the name of the file
     public static void setFilename(String filename) {
          if (!new File(filename).exists()) {
               System.out.println("File doesn't exist!");
               return;
          SplashScreen.Holder.manager.filename = filename;
      * Displays the splash. Should display above other windows.
     public static void showSplash() {
          SplashScreen ss = SplashScreen.Holder.manager;
          if (ss.filename == null) {
               System.out.println("No file to display!");
               return;
          if (!new File(ss.filename).exists()) {
               System.out.println("File doesn't exist!");
               return;
        JLabel l = new JLabel(new ImageIcon(ss.filename));
        ss.getContentPane().add(l, BorderLayout.CENTER);
        ss.pack();
        Dimension screenSize =
          Toolkit.getDefaultToolkit().getScreenSize();
        Dimension labelSize = l.getPreferredSize();
        ss.setLocation(screenSize.width/2 - (labelSize.width/2),
                    screenSize.height/2 - (labelSize.height/2));
        screenSize = null;
        labelSize = null;
          ss.setVisible(true);
          ss.repaint();
          ss.toFront();
     private String filename;
}

Including this (for 1.6)? http://java.sun.com/developer/JDCTechTips/2005/tt1115.html

Similar Messages

  • Main program start before splash screen, help

    hi:
    below is the splash screen code:
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.PrintStream;
    import java.util.Random;
    class Splash extends JWindow {
         public Splash(String filename, Frame f, int waitTime) {
              super(f);
              JLabel l = new JLabel(new ImageIcon(filename));
              getContentPane().add(l, BorderLayout.CENTER);
              pack();
              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();
              final int pause = waitTime;
              final Runnable closerRunner = new Runnable() {
                   public void run() {
                        setVisible(false);
                        dispose();
              Runnable waitRunner = new Runnable() {
                   public void run() {
                        try {
                             Thread.sleep(pause);
                             SwingUtilities.invokeAndWait(closerRunner);
                        } catch (Exception e) {
                             e.printStackTrace();
                             // can catch InvocationTargetException
                             // can catch InterruptedException
              setVisible(true);
              Thread splashThread = new Thread(waitRunner, "SplashThread");
              splashThread.start();
    below is the constructor that started the splash and the main:
    public static void main(String args[])
    PictureViewer PV = new PictureViewer();
    standaloneApp = true;
    splash Splash sw = new Splash("prestigestetho.gif",null, 5000);
    the splash appear just fine, the problem is that it appears after
    my main program appear first.
    I try to shift the priority of splash, which is sw first and then PV,
    in that case the splash screen appear first then PV, but this time PV
    stay in front of sw makes it totally not viewable.
    is there any method to make splash screen appear first and on the screen you can see the process of main program starting up (for example
    : loading this ...., loading that.....) something like acrobat reader's
    startup screen, and then splash screen disappear and then main program
    pop up.

    okay, I got it, it's under SwingSet2.java the related code is as follow:
    // Used only if swingset is an application
    private JFrame frame = null;
    private JWindow splashScreen = null;
    // The tab pane that holds the demo
    private JTabbedPane tabbedPane = null;
    private JEditorPane demoSrcPane = null;
    private JLabel splashLabel = null;
    * SwingSet2 Constructor
    public SwingSet2(SwingSet2Applet applet, GraphicsConfiguration gc) {
    // Note that the applet may null if this is started as an application
         this.applet = applet;
    // Create Frame here for app-mode so the splash screen can get the
    // GraphicsConfiguration from it in createSplashScreen()
    if (!isApplet()) {
    frame = createFrame(gc);
    // setLayout(new BorderLayout());
         setLayout(new BorderLayout());
    // set the preferred size of the demo
         setPreferredSize(new Dimension(PREFERRED_WIDTH,PREFERRED_HEIGHT));
    // Create and throw the splash screen up. Since this will
    // physically throw bits on the screen, we need to do this
    // on the GUI thread using invokeLater.
    createSplashScreen();
    // do the following on the gui thread
         SwingUtilities.invokeLater(new Runnable() {
         public void run() {
              showSplashScreen();
    initializeDemo();
         preloadFirstDemo();
         // Show the demo and take down the splash screen. Note that
         // we again must do this on the GUI thread using invokeLater.
         SwingUtilities.invokeLater(new Runnable() {
         public void run() {
              showSwingSet2();
              hideSplash();
         // Start loading the rest of the demo in the background
         DemoLoadThread demoLoader = new DemoLoadThread(this);
         demoLoader.start();
    * Show the spash screen while the rest of the demo loads
    public void createSplashScreen() {
         splashLabel = new JLabel(createImageIcon("Splash.jpg", "Splash.accessible_description"));
         if(!isApplet()) {
         splashScreen = new JWindow(getFrame());
         splashScreen.getContentPane().add(splashLabel);
         splashScreen.pack();
         Rectangle screenRect = getFrame().getGraphicsConfiguration().getBounds();
         splashScreen.setLocation(
    screenRect.x + screenRect.width/2 - splashScreen.getSize().width/2,
              screenRect.y + screenRect.height/2 - splashScreen.getSize().height/2);
    public void showSplashScreen() {
         if(!isApplet()) {
         splashScreen.show();
         } else {
         add(splashLabel, BorderLayout.CENTER);
         validate();
         repaint();
    * pop down the spash screen
    public void hideSplash() {
         if(!isApplet()) {
         splashScreen.setVisible(false);
         splashScreen = null;
         splashLabel = null;

  • REPOST: White Rectangle Before Splash Screen

    I reposted this topic because the last one got too long and full of code without any progress towards a solution. I'm trying to show a splash screen without the white rectangle flashing first. I tried placing the setVisible(true) statement at the end of my splash screen code, no luck. There has got to be some way to stop the white screen from appearing until the image has loaded!! By the way, my image is only 5 KB! If that's too big, something is definitely wrong.
    I believe the problem lies in the following code...
    public void start()
    Thread thread = new Thread()
    public void run()
    Runnable run = new Runnable()
    public void run()
    try
    Thread.sleep(3000);
    catch(Exception e)
    dispose();
    setVisible(true);
    SwingUtilities.invokeLater(run);
    thread.start();
    Previous posting...
    http://forums.java.sun.com/thread.jsp?forum=57&thread=268231

    Hey mtnkid420,
    If you had to painfully concede to the white screen that flashes up, I empathise with you. I have the solution for you now, albeit 3 years late - posting also for those who are currently mythed by the pre-splash white screen.
    It was the suggestion, although rebutted, that loading larger images causes the problem. If the diagnosis was correct, the usual solution would be to load and draw the image off-screen i.e. to a BufferedImage... and you know what, it worked.
    Here is a code snippet if required:
         private Splash(int displayTime, Class application)
         throws IllegalArgumentException, SecurityException, IllegalAccessException,
         NoSuchFieldException, IOException, InterruptedException
              this.displayTime = displayTime;
              splashPath = String.valueOf(application.getField("SPLASH_PATH").get(null));
              URL splashURL = application.getClassLoader().getResource(splashPath);
              Image img = ImageIO.read(splashURL);
              MediaTracker tracker = new MediaTracker(this);
              tracker.addImage(img, 1);
              tracker.waitForID(1);
              splashImage = new BufferedImage(500, 300, BufferedImage.TYPE_INT_ARGB);
              Graphics g = splashImage.getGraphics();
              g.drawImage(img, 0, 0, 500, 300, this);
              setSize(500, 300);
              setLocationRelativeTo(null);
              splash();
         } // end primary constructor
         public void paint(Graphics g)
              g.drawImage(splashImage, 0, 0, this);
         } // end paintThis code will not compile as is, but it serves the purpose to illustrate BufferedImage usage.
    Warm regards,
    Darren B

  • Splash Screen Msg not showing immediately??

    Hi
    A splash screen with a msg is displayed after the edited
    cell values of a JTable are being sent to the database
    for updation,till the database responds with a msg of
    success or failure.
    This is to let the general user know that an updation is
    in progress.
    MY PROBLEM IS
    Only the splash window with a blue background is displayed
    with no msg in it.Only after the database displayes the
    msg does the splash screen msg appear.
    MY CODE is
    public void setValueAt(Object new_value,int row,int col)
    strf[row][col] = new_value.toString();
    ((AbstractTableModel)th.getModel()).fireTableCellUpdated(row,col);
    int selec = JOptionPane.showConfirmDialog(null,"Save
    changes " ,"Table Name",
    JOptionPane.YES_NO_OPTION);
    if(selec == 0) // YES OPTION
    // Here only a blue window is displayed with no msg in it?????
    SplashWindow sw = new SplashWindow("Please Wait" , null );
    try
    {  // Call a file that commits the changes to the database..
    new set_di_details(param1,param2,.....);
    catch(java.sql.SQLException)
    sw.dispose(); // Dispose the splash screen.
    else if( selec == 1) // NO OPTION
    // Do not commit
    MY SPLASH SCREEN CODE IS
    import javax.swing.*;
    import java.awt.*;
    public class SplashWindow extends JWindow
    public SplashWindow(String msg, Frame f)
    super(f);
    JLabel l = new JLabel(new String(msg));
    l.setFont(new Font("Courier",Font.ITALIC,16));
    getContentPane().add(l, BorderLayout.CENTER);
    pack();
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension labelSize = l.getPreferredSize();
    setLocation(screenSize.width/2-(labelSize.width/2),screenSize.height/2-(labelSize.height/2));
    setVisible(true);
    public static void main(String args[])
    SplashWindow sw = new SplashWindow(" Set is applied... ",null);
    }

    You need to read this section from the Swing tutorial on "Threads and Swing":
    http://java.sun.com/docs/books/tutorial/uiswing/mini/threads.html
    Basically, the Database access it being done using the same thread as the GUI would use to paint the splash screen, so the screen can't be repainted until the database access is finished.
    Solution, the database access need to run in a separate thread.

  • 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

  • Windows 8.1 error code 0xC1900101-0x30017, stuck on splash screen.

    I have a Gateway ZX 4270 series, every time I try to update to windows 8.1, it's stuck on the splash screen. For hours there would just a black screen that says Gateway. Then I would have to restart it, and it would switch back to the regular windows 8.
    When I logged on, the error code 0xC1900101-0x30017 comes up. How could I solve this issue? 

    Most of issue like this regarding BIOS update
    You should follow this document from Gateway to upgrade Windows 8.1
    http://gateway-us.custhelp.com/app/answers/detail/a_id/32011
    I suggest you revert back to Windows 8, and ask for technical detail to Gateway regarding this before you update your PC

  • Z77A-GD65 Multiple BIOS Issues - B4 Hang, Splash Screen Blinking

    Back in November 2012, I built a home server with a Z77A-GD65.  Lately, I've noticed some strange things happening that I've been trying to research but to no avail.
    First off, I get the B4 code hang-up whenever I'm booting.  This doesn't matter if it's a cold boot or a reboot, it hangs on B4 for about 10-15 seconds, flashes 92 really quick, and then goes to A2 which it stays for another 5 or so seconds.  After that I get the MSI splash screen for about 1 second, then it blinks 5 times.  After that it goes into Windows just fine.
    The blinking is a new issue, the B4 hang is not.  I've read from multiple posts that this is a USB issue.  When I disable USB legacy support, the issue goes away, but of course then I can't have legacy support.  I have yet to figure out what exact device is causing it.  In the process of trying to figure this out, I updated BIOS to A.A0.  After updating to this version of BIOS the splash screen blinks 5 times before going to the "Starting Windows" splash screen.  This is a more difficult issue to figure out why it's doing this because if you search for "BIOS" and "flash" or "flashes" or "flashing", you typically get results for flashing your BIOS.   Hence, why I'm using the term "blinking".  But even then I can't really find a solution out there.
    I also happened to see that the website for the Z77A-GD65 is showing a newer BIOS version, but I'm unable to flash this (at least using M-Flash).  I threw it on a USB, re-enabled USB legacy and whenever I click on it to install, the BIOS screen hard locks.  The screen just freezes exactly where it's at in the BIOS and the mouse is dead.  However, I can CTRL+ALT+DEL on the keyboard and it will reboot the system so I don't need to power cycle the computer.  Not sure why this is happening either.  Perhaps I need to flash this a different way?  Maybe I don't need to flash this at all?
    I could really use some input here on why this is happening.
    As for the specs on my system, they're as follows:
    i7-3770K overclocked to 4.2 Ghz by using the Turbo Mode in BIOS
    32GB Komputerbay DDR3 PC3-12800 1600MHz DIMM with Low Profile Blue Heatspreaders Quad Channel RAM | 9-9-9-24 XMP ready
    AMD PowerColor 7870 Myst Edition GPU - currently not overclocked although overclocking this doesn't seem to affect any issues
    2 - 128 GB Corsair SATA III SSD - one runs the OS, the other I use to load games from
    2 - 500 GB Seagate Barracuda 7200 RPM Sata II HDD's mirrored via Windows 7
    1 - 750 GB Seagate Barracude 7200 RPM Sata II HDD
    1 - 1 TB Western Digital MyBook USB 2.0 external
    2 - 3 TB Seagate USB 3.0 external
    ASUS DVD Burner - not sure which one, it's a cheapy $20 from Newegg
    1 - PCI USB 3.0 expansion card
    Antec TruePower New TP-550 Modular 550W Continuous Power ATX12V V2.3 / EPS12V V2.91 SLI Certified CrossFire Ready 80 PLUS BRONZE Certified Active PFC "compatible with Core i7/Core i5" Power Supply
    NZXT Switch 810 gunmetal - currently have 4 fans running but plan on more, also the Switch 810 has the multi-card reader in the front with 1x SD Card, 2x USB 2.0, 2x USB 3.0
    for peripherals
    1 - Microsoft 360 Wireless controller adapter (legit one, not the knockoff although I had a knockoff prior to getting the real deal)
    1 - Logitech Wireless USB Keyboard with Touchpad
    I tried to be thorough.  Thanks in advance for any help!

    Quote from: PirateDog on 26-August-13, 12:45:18
    Probably a USB device problem.
    This is a candidate, as well as mouse and keyboard. Disconnect USB devices one at a time to find the culprit.
    A lot of devices running. PSU a +12V single rail or is it multi rail? A rail going to the graphics or components may not be enough amps. My best guess is the card reader.
    For UEFI/BIOS flashing, select your mainboard here and use the forum flash method;
    I'll definitely try unplugging some of these USB devices to see if that helps with the B4 hang issue.
    As for the PSU, according to the description for it on Newegg:  "Four industry-leading independent +12v rails are provided for more stable and safer power output."  It has two rails going to the GPU.  The GPU is a new addition to the system and so I wasn't running it until recently.  The issues were occurring beforehand, but you're right that this PSU is underpowered for the rig considering PowerColor recommends a minimum of 500w.  I'm going to be buying a larger capacity one sometime in the very near future.  Any recommendations on good modular PSU's?  What's a good way to tell what wattage to get?
    Thanks for letting me know about the forum flash method.  I'll be back later when I have some results.

  • BLACK SCREEN on start up with 3 beeps, FREEZES when power unplugged, IF IT BOOTS splash screen freezes, OVERHEATING REQUIRED TO BOOT - 0x7B, Event 41 kernel-power

    Issue: One day I unplug the power, the screen freezes and I get frozen music sound. I shut down, start up, I get 3 beeps (1 short 2 long), which indicates a Video failure according to the Thinkpad Laptop beep code list.
    How I solve the issue day-to-day: I turn the heat up - I disconnect the battery and hard drive and plug in the power then turn it on. I will wait until the underneath is searing hot with a blanket blocking the fan's flow of air, I mean way hot because any
    cooler and it won't start. Plug stuff back in, Hard drive first, Battery second, turn off with power button hold, unplug power, replug power. 
    I turn it on, no beeps, it goes past the first Lenovo screen, then gives me a prompt because it "didn't shut down properly" and continue regular startup. What happens next is the Windows logo appears,
    and just as the animated windows logo starts to move (you see 2 small colored dots on the screen), it freezes. I see this every time, I know naturally that it means that the laptop is still too hot to go past that point, so I shut it down and try again. After
    about 5 - 10 tries it will go past the splash screen and into the login area, then it's all fine. 
    Sometimes when I unplug the power from the back by accident it will freeze. By accident I mean that the connector wiggles it's self out easily. This unplug freezing thing started happening about 1 week before the 3 beep black screen problem started rolling,
    so I'm putting 2 together.
           Errors:
    I got a Blue Screen of Death the first time I started it up with the overheating ritual, but I never got it since. It was 0X7B.
    I got another Blue Screen of Death about a week ago, but came as it was on already and I had been using it, and said something about disabling Cache or Shadowing in BIOS. I never got it since.
           Event Viewer events found:
    1. Kernel-Power, Summary page.
    There are critical events for a few things like Kernel-Power, Event ID 41, Task Category (63). There are 19 of them, each day 1 or 2 of them but mostly 1, so this maybe corresponds to my daily ritual.
    "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    2. Kernel-Processor-Power - Event ID 37, task category (7)
    "The speed of processor 1 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for 71 seconds since the last report."
    3. LMS - HCMI - Event ID 2, Task Category: none
    "LMS Service cannot connect to HECI driver".
    I came across a very sluggish performing control panel for Nvidia before and after this problem, and I tried installing a newer version, which I had to jump through a few hoops to do, like uninstalling first, not just updating. At first it said that the
    driver wasnt for the system, which was wrong. I made it work somehow, but it was still sluggish. I rolled it back to an earlier driver, and now it works fine. No sluggish performance / slight freeze window thing going on.
                 MSCONFIG.exe, Boot Advanced Options: I have tried twice to change this 1 setting, check box "Number of processors" and change to 2 processors, because I do have 2 processors. I have been able to change
    this in the past, but it does not save the setting now, and I believe this option was selected before I started having problems, and settings did not disappear then.
    What could this be. The small round BIOS battery? The video card like everyone presumes? (I.E. the entire motherboard replacement), Software? The wiggly power input area? (Not enough power getting in?), Firmware of some sort? The BIOS software being wrong?
    SYSTEM INFO:
    Thinkpad T61p 6457-A24, Intel core 2 duo (T7700) 2.4GHz, Intel 120GB SSD 6Gb/s, NVIDIA Quadro FX 570M (256 MB),
    Windows 7 64 bit Home Premium (6.1, Build 7601), BIOS Ver 1.00PARTTBLx
    Display: 1680 x 1050 (32 bit 60 Hz), Integrated RAMDAC, Main driver: nvd3dumx.dll,nvwgf2umx,nvwgf2,
    Version 8.17.12.9688, Date 5/31/2012, DDI version 10, Driver model WDDM 1.1
    Please excuse the small text at the beginning, there isn't an option to un-do that error.

    You are very wrong about that mystified. What do YOU think made my computer work without beeping at all hu? (I bet you're gonna tell me). I figured it out.
    RE-INSTALL WINDOWS 7 OS.
    SOLVED.
    DOESN'T BEEP ANY MORE.
    THAT IS A PART OF microsoft ISN'T IT.
    ::: EGO KILLER 9000 :::

  • I'm looking for a script that preloads a Splash Screen on Android

    I've read all threads here already about this subject. For most AdobeAir projects for Android, no matter what size, it could take up to 20 sec to load the app, and while it loads, all you see is a black screen. As there's no support for a Default.png like there is for iPhone, we have to use a preloader.
    I've only found one for Flex, which is no good to me as I'm using Flash Pro 5.5 (IDE). I've tried doing some simple preload-a-swf-preloader but it just loads it to 100% before showing anything anyway.
    Anyone here that can share a script of a simple preloader for Flash CS5.5?
    I know that to reduce the loading time and show a splash screen on android we need to make a very small swf that will contain the loading screen image, and that same swf will also preload the maingame.swf (but can that be done? Appstore don't like code in more than one swf) into it. My tries have failed.
    Here's some quotes in case someone who reads this might be knowledgable enough to help me out:
    Yes its possible to get a splash to appear straight away (well within one to 2 seconds which is close enough) but
    (a) You have to create a small splash .SWF which loads your main .SWF (OK so that's fairly obvious but a "Default.PNG" splash screen facility as per the iPhone packager and FLEX projects is what you might expect)
    (b) Your splash .SWF must embed the splash image. If you try to dynamically load an image nothing will appear until the whole of the APK file is loaded ( and presumably initialised). That was what I was doing wrong.
    It takes 20 sec to load, it's all black before it's done loading and the runtime takes up 25mb!
    (1) Yes that is a bit of a problem but seems to be the cost of compiling in the AIR runtime.  I am sure that most mobile projects only use a subset of the entire AIR library - its a shame you can't just compile in the bits that you need and drop the rest.
    (2) This is partly because of (1) and the fact it takes so long to get a big file up and running with AIR.  You need to create a preloader that is very small and all it does is display a splashscreen and then loads in the main 25mb file that you embed in the assets of your preloader.  The small preloader appears quickly and then gives you time to do your 'work' loading the main app with something onscreen.  This gives an example / explanation and there are others out there :
    http://www.mcbrearty.me.uk/index.php/2011/05/09/actionscript-mobile-pr oject-splash-screen/

    Hi Nick,
    Using the FileSystemObject object to delete a folder will delete the profile directory, but it won't delete its associated registry path:
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\user's SID
    There are also two other complications: 1. you can't delete a profile for a user that's logged on; and 2. the user might have logged off, but the profile might not be completely unloaded (see
    http://support.microsoft.com/kb/837115 ).
    In the meantime, I recommend 'uphclean' and the 'delprof.exe' found in the Resource Kit utilities.
    HTH,
    Bill
    Can we combine FileSystemObject and deleting Reg Keys?
    ¯\_(ツ)_/¯

  • Pavillion Elite e9120y Hangs at HP splash screen, I've tried it all...

    About a month ago I came home to find my PC stuck on the HP splash screen. After hours of trial and error I managed to repair the boot sectors by manually inputing codes into a command prompt. Unfortunately, I had to go to work immediatly after. When i returned, the screen was stuck at the splash screen again, and I haven't seen windows yet..
    This desktop is about 2 years old now (no longer under warantee), although its relatively lightly used. At the time of failure it was running Vista 64 Bit. None of the hardware has been ugraded/modified in any way.
    Only sometimes can I reach any of the splash screen menus (BIOS, Diagnostics, etc). These actions, and reaching the post screen, can only be executed by unplugging the power cord from the PSU for X amount of time (usually 5-10 mins, which is annoying to do EVERY time..)
    Things I've tried:
    -Removing all plugged in components except the stock keyboard and monitor
    -Re-seating all of the components/wires
    -Tested Mobo (removed memory, it beeped and made me happy ha)
    -Individually seated each RAM stick in each slot.
    -Repairing boot sectors
    -Removing CMOS battery to reset
    -Removing biult in media card reader (rare, yet prospectable issue)
    -Many of the things in the recovery disk
    -Removing USB ports from Mobo incase of short circuit (I think I did that correctly..)
    Notes:
    -Ever since I was able to first repair the boot sectors, my PC will NOT make it to the Windows Recovery Environment (The disk reading progress will freeze at a random spot on the progress bar and will not complete)
    -Diagnostics froze after the Memory test completed
    -*cringes* I have not backed up ANYTHING due to lack of funds for an external HD (though I've purchased one now incase I make it to my OS), so reformatting is really not an option.. Too many important school documents
    -I have close to 10 years of intermediate software/hardware building/troubleshooting experience, but there are still many things that I do not know or may have overlooked! Any help is appreciated!
    -*Sometimes* the post screen/BIOS does not display my 2 optical drives and/or my 1 hard drive device
    -It's new favorite thing to do is say "Reboot and select proper media device," even though my boot order is correctly set in BIOS
    Quick recap:
    -HP Elite 9120y Vista 64 bit
    -Cannot boot to Windows (most commonly hangs at splash screen)
    -I've tried as much as I can think of/find online, and I'm tearing my hair out. Any help would be amazing!
    I'm sure I missed something, though I tried to cover it all for anyone willing to help. PLEASE!!!! 
    Thanks,
    -Andrew

    Well I knew that there were quite a few problems with mobos used by HP, but I was unaware of the lawsuit. Unfortunately, its far past its warrantee. It's just unfortunate because all of the components are in great shape and it was treated very well. And aside from Windows Vista, it performed great all along until the day it decided to do this. I have literally tried everything, the next step is diagnosis from my computer engineering friends hah. You'd think being a student at a tech school would aid my effort.  So far, no help..
    There appear to be as many solutions to this problem as people walking the planet.. and none of them work!
    Anyone who has fixed this problem please leave any information. Even if I have already tried that and it didn't solve my problem, it's worth a second shot. This computer was not cheap!

  • Launch a splash screen when an iPhone app starts

    Hi, I am trying to make a simple game for the iPhone, and when the app launches, I want a splash screen with instructions to come up. I also want the user to be able to push anywhere on the screen to dismiss it. However, the splash screen doesn't load! I made a new nib file with the splash screen, created a view controller, and a UIView subclass for the screen. Then, I inserted this code into the applicationDidFinishLaunching method of the app delegate:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    [window addSubview:[splashViewController view]];
    splashViewIsCurrentView = YES;
    [window makeKeyAndVisible];
    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    if(splashViewIsCurrentView) {
    [[splashViewController view] removeFromSuperview];
    [window addSubview:[gameViewController view]];
    splashViewIsCurrentView = NO;
    I forgot to mention, in interface builder, I made the splash view's class as SplashView, and the File's Owner as the SplashViewController. Also, splashViewIsCurrentView is a boolean I made.

    I like the idea behind your use of "splashViewIsCurrentView". I think that may solve my problem.
    I too have a full-screen instruction view pop up over the main input view of the app. The instruction view is added as a subview of the main input view. I want to dismiss the instruction view with a touch. However, in the instruction view view controller, the touch even methods are not fired - even after twiddling with enabling user interaction on the instruction view and its subviews of label and fiddling with their frame sizes. While the instruction view is displayed over the main input view, the touch events are actually still associated with the main input view (and its controls) underneath. Seems like I am forgetting something but i don't know what.
    Your solution will probably work well and it is similar to what I was originally doing in handling the touch events in the main input view view controller. However, technically, it seems kludgy to not be able to handle the touch events in the instruction view view controller where it seems to make more sense to do so.
    Would you or anyone else know why or have any suggestions on things to look out for? The view and controls involved are all supposed to be descendants of UIResponder. Is there a bug or restriction I'm not aware of? Wondering why you went the route you did. Seems like you may have run up against what I am currently facing.

  • 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!

  • Splash Screen for Android with Flash CS5.5

    How can I make a SplashScreen with Flash CS5.5 or just with AIR/AS3 codes. I need it while the App/Game is loading...
    I know that it's possible with Flex 4.5 as:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              firstView="views.HomeView"
                              splashScreenImage="@Embed('splashscreen.png')" />
    http://workflowflash.com/98437/air-for-android-splash-screen-with-flex-4-5.php
    But I want to do it without Flex. So can I ?
    Thank you

    i'm not sure if this is necessary anymore, but i took the advise of another user here
    http://forums.adobe.com/thread/764981
    the key difference is, the user stated a preloading swf needed to embed the image in order to display before the whole apk is loaded.
    Seems to be working for me anyway

  • Splash screen ABAP (Was 6.20) SAPGui 6.20

    I love splash screens. A small pop-up window with a picture should come for say 5  to 10 seconds and disappear by a timer task.
    Giving such timer splash screens at START or END makes the application attractive. I do it in VB PB & Java.
    How to do Slash screen in ABAP SAP GUI 6.20 WAS 6.20?
    Should be thrown up as a "floating" popup.
    Regards & Hopeful
    -jnc

    With good tips from Thomas Jung
    I made 2 function modules to suit my whims.
    SAP being a serious Businesss Software you cannot have too many JPGs floating around! One or two is fun.
    In Function group uou need two screens 0806 & 2009 which are essentially blank.
    I put 2 title Bars - 0806 "SAP - JOB in Progress"; 2009 - "SAP - JOB OVER!!"
    Code listing for function: ZJNC_START_SPLASH
    Description: Show Splash at Start
    FUNCTION zjnc_start_splash.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(IMAGEFILE) TYPE  C DEFAULT 'THANKS.JPG'
    *"     REFERENCE(WIDTH) TYPE  I DEFAULT 415
    *"     REFERENCE(HEIGHT) TYPE  I DEFAULT 274
    *"     REFERENCE(TIMEOUT) TYPE  I DEFAULT 3
    *"     REFERENCE(CALLBACK) TYPE  C
          Global data declarations
      MOVE imagefile TO g_name.
      MOVE width TO picwidth.
      MOVE height TO picheight.
      MOVE timeout TO pictimeout.
      MOVE callback TO piccallback.
      TRANSLATE piccallback TO UPPER CASE.
      PERFORM getpicurl.
      CALL SCREEN 0806.
    ENDFUNCTION.
    Code listing for function: ZJNC_END_SPLASH
    Description: Show Splash at End
    FUNCTION ZJNC_END_SPLASH.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(IMAGEFILE) TYPE  C DEFAULT 'THANKS.JPG'
    *"     REFERENCE(WIDTH) TYPE  I DEFAULT 415
    *"     REFERENCE(HEIGHT) TYPE  I DEFAULT 274
    *"     REFERENCE(TIMEOUT) TYPE  I DEFAULT 3
          Global data declarations
      MOVE imagefile TO g_name.
      MOVE width TO picwidth.
      MOVE height TO picheight.
      MOVE timeout TO pictimeout.
      PERFORM getpicurl.
      CALL SCREEN 2009.
    ENDFUNCTION.
    Code listing for: LZUTILTOP
    TOP level Include of Function Group ZUTIL
    Author Jayanta Narayan Choudhuri
            Flat 302
            395 Jodhpur Park
            Kolkata 700 068
          Email [email protected]
          URL:  http://www.geocities.com/ojnc
    FUNCTION-POOL zutil.                        "MESSAGE-ID ..
    TYPE-POOLS: abap.
    DATA: graphic_url(255),
          g_result   TYPE i,
          g_linesz   TYPE i,
          g_filesz   TYPE i,
          g_name(100).
    TYPES: t_graphic_line(256) TYPE x.
    DATA: graphic_line TYPE t_graphic_line,
          graphic_table TYPE TABLE OF t_graphic_line.
    DATA: picwidth        TYPE i,
          picheight       TYPE i,
          pictimeout      TYPE i,
          piccallback(60) TYPE c,
          first           TYPE boolean.
          CLASS ZCL_ES_SPLASH_SCREEN  DEFINITION
    CLASS zcl_es_splash_screen DEFINITION.
      PUBLIC SECTION.
        EVENTS on_close.
        METHODS constructor
          IMPORTING
            !i_num_secs  TYPE i DEFAULT 5
            !i_url       TYPE c
            !i_width     TYPE i
            !i_height    TYPE i.
      PROTECTED SECTION.
        METHODS handle_end_of_timer
          FOR EVENT finished OF cl_gui_timer.
      PRIVATE SECTION.
        DATA container TYPE REF TO cl_gui_dialogbox_container.
        DATA image     TYPE REF TO cl_gui_picture.
        DATA timer     TYPE REF TO cl_gui_timer.
    ENDCLASS.                    "ZCL_ES_SPLASH_SCREEN  DEFINITION
    CLASS ZCL_ES_SPLASH_SCREEN IMPLEMENTATION
    CLASS zcl_es_splash_screen IMPLEMENTATION.
      METHOD constructor.
        DATA: image_width     TYPE i,
              image_height    TYPE i.
        COMPUTE image_width  = i_width + 30.
        COMPUTE image_height = i_height + 50.
        CREATE OBJECT container
           EXPORTING
             width                       = 10
             height                      = 10
             top                         = 10
             left                        = 10
             name                        = 'DialogSplash'.
        CALL METHOD container->set_caption
          EXPORTING
            caption = g_name.
        CREATE OBJECT image
          EXPORTING
            parent = container.
        CALL METHOD image->load_picture_from_url
          EXPORTING
            url = i_url.
        image->set_display_mode( image->display_mode_normal_center ).
        cl_gui_cfw=>flush( ).
        container->set_metric( EXPORTING metric = image->metric_pixel ).
        DATA: myleft TYPE i,
              mytop  TYPE i.
        COMPUTE myleft = ( 800 - image_width ) / 2.
        COMPUTE mytop  = ( 600 - image_height ) / 2.
        IF myleft < 0.
          MOVE 0 TO myleft.
        ENDIF.
        IF mytop < 0.
          MOVE 0 TO mytop.
        ENDIF.
        container->set_position(
          EXPORTING
            height            = image_height
            left              = myleft
            top               = mytop
            width             = image_width ).
        cl_gui_cfw=>update_view( ).
        CREATE OBJECT timer.
        timer->interval = i_num_secs.
        SET HANDLER me->handle_end_of_timer FOR timer.
        timer->run( ).
        cl_gui_cfw=>flush( ).
      ENDMETHOD.                    "constructor
      METHOD handle_end_of_timer.
    I wanted NAMASTE to remain until JOB was complete.
       IF container IS NOT INITIAL.
         container->free( ).
         CLEAR container.
         FREE  container.
       ENDIF.
       IF timer IS NOT INITIAL.
         timer->free( ).
         CLEAR timer.
         FREE  timer.
       ENDIF.
       cl_gui_cfw=>flush( ).
        RAISE EVENT on_close.
      ENDMETHOD.                    "handle_end_of_timer
    ENDCLASS.                    "ZCL_ES_SPLASH_SCREEN  IMPLEMENTATION
          CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS: on_close FOR EVENT on_close OF zcl_es_splash_screen.
    ENDCLASS. "lcl_event_handler DEFINITION
    CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_close.
        IF sy-dynnr = 2009.
          LEAVE PROGRAM.
        ELSE.
          MOVE abap_false TO first.
          PERFORM (piccallback) IN PROGRAM (sy-cprog).
        ENDIF.
      ENDMETHOD. "on_close
    ENDCLASS. "lcl_event_handler IMPLEMENTATION
    DATA: splash TYPE REF TO zcl_es_splash_screen.
    *&      Module  STATUS_0806  OUTPUT
    MODULE status_0806 OUTPUT.
      IF first IS INITIAL.
        first = abap_true.
        SET TITLEBAR 'TITLE0806'.
        CREATE OBJECT splash
            EXPORTING
              i_num_secs = pictimeout
              i_url      = graphic_url
              i_width    = picwidth
              i_height   = picheight.
        SET HANDLER lcl_event_handler=>on_close FOR splash.
      ENDIF.
    ENDMODULE.                " STATUS_0806  OUTPUT
    *&      Module  STATUS_2009  OUTPUT
    MODULE status_2009 OUTPUT.
      IF first IS INITIAL.
        first = abap_true.
        SET TITLEBAR 'TITLE2009'.
        CREATE OBJECT splash
            EXPORTING
              i_num_secs = pictimeout
              i_url      = graphic_url
              i_width    = picwidth
              i_height   = picheight.
        SET HANDLER lcl_event_handler=>on_close FOR splash.
      ENDIF.
    ENDMODULE.                " STATUS_2009  OUTPUT
    *&      Form  getpicurl
    FORM getpicurl.
      OPEN DATASET g_name FOR INPUT IN BINARY MODE.
      REFRESH graphic_table.
      CLEAR   g_filesz.
      DO.
        CLEAR graphic_line.
        READ DATASET g_name INTO graphic_line ACTUAL LENGTH g_linesz.
        ADD g_linesz TO g_filesz.
        APPEND graphic_line TO graphic_table.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET g_name.
      CLEAR graphic_url.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type                 = 'IMAGE'
          subtype              = 'GIF'
        TABLES
          data                 = graphic_table
        CHANGING
          url                  = graphic_url
        EXCEPTIONS
          dp_invalid_parameter = 1
          dp_error_put_table   = 2
          dp_error_general     = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    ENDFORM.                    "getpicurl
    Extracted by Direct Download Enterprise version 1.2 - E.G.Mellodew. 1998-2004 UK.

  • P35 platinum ms7345, system won't load OS, stops at msi splash screen

    motherboard in question is a p35 platinum ms7345
    system won't load the OS, stops at msi splash screen, can't get into bios.
    LED code stops at G-R-G-R "Testing Base and  Extended Memory"
    this is a system that I built over 8 months ago. the only thing I
    did was upgrade the cpu to a E8400( from a e6750). I had no previous
    problems. but after the upgrade. I first received an error
    = attempt to overclock failed = ( cant quote but as I remembered it)
     press any button to reset bios.( I have received this message before with the old cpu but with a restart the system went on as normal). After the system restart, it just sits on the splash screen. I never attempted
    to overclock the memory. the jb1 & jb2 jumpers are on 1 & 2 pins(same way it
    came from newegg). I tried to use different memory( in all of the slots) same outcome.
    I unplugged
    all other hardware except vid card> same outcome. I even used a different
    vid card> same outcome.
    system specs
    core 2 e8400
    msi p35 platnum
    2gb(2x1gb) adata ddr2 800
    any suggestions? I appreciate any help. I hope the board isn't   finished
    thanks in advance
    NFIXIT

    There are three possible solutions to solve the situation:
    1) Install a processor supported by the current BIOS Version to be able to properly turn on your system and then update the BIOS to the latest Version to be able to use your E8400/E0 (update should be done from DOS only).
    2) Ask in a local computer shop or contact your reseller to do the same thing for you.
    3) Connect an internal floppy drive and a PS/2 Keyboard and then try to force the system into AMI BIOS Recovery Mode.  Instructions:
    Quote
    Rename the desired AMI BIOS file to AMIBOOT.ROM and save it on a floppy disk. e.g. Rename A7345IMS.1xx to AMIBOOT.ROM
    Insert this floppy disk in the floppy drive. Turn On the system and press and hold Ctrl-Home to force update. It will read the AMIBOOT.ROM file and recover the BIOS from the A drive.
    When 4 beeps are heard you may remove the floppy disk and restart the computer.
    Even though the AMI BIOS Recovery Procedure is the only chance you have to solve the situation without installing a different processor, it does not work in all cases.  However, as it is an easy procedure, it is at least worth a try.

Maybe you are looking for

  • I put music from a CD into my iTunes and now it won't sync to my iPhone 4S

    I put a CD onto my iTunes and then tried to sync my phone with my itunes on my computer and the album isn't showing up on my phone. No error message showed up and there's more than enough space left on my phone. I've tried restarting both devices. Do

  • How can I delete photos in iPhoto?

    Using iPhoto 8.1.2, I deleted several images in a certain event. But as soon as I opened the same event later, all the deleted images were there again! I tried once more and also emptied the trash-bin. I even closed iPhoto. Started iPhoto, opened the

  • Having hard time connecting tv to macbook

    I am having trouble connecting macbook pro to tv.

  • Question on downgrading Xperia Sola with flashtool

    I have 3 questions I want to know guys please help me thanks 1. Should my Xperia Sola (ics) be rooted before i flash the GB 2.3.7 with flashtool or can i flash it right away 2. I saw my FREE RAM ON ICS is about 150 less will it become 300 mb free onc

  • Envelopes won't print after W 7 upgrade

    No custom or alternative sizes are available in properties or quick print from two different word processing programs.  I'm pretty sophisticated at this stuff, but stumped, or annoyed.  Seems as though the driver for W7 is somehow incomplete.