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) {}

Similar Messages

  • How do i insert a splash screen or a loading screen and a application image for a phone app on Dream

    How do i insert a splash screen or a loading screen and a application image for a phone app on Dreamweaver 6, 5.5 had the mobile application setting that is seemingly no longer present? and i also heard you can use animanted backgrounds on the mobile application in dreamweaver 6 but figuring out how to set the splash screen and application image like it was in 5.5 would be nice. All i can get to pull up is the web application i developed i am trying to build into a phone app on google chrome, if i could officially designate it as a phone app where i can set each splash screen and app image to where it is recognized as a phone app that would be really nice.

    Duely noted, the server will still not connect, so i have left an inquery in the suggested forum.
    Date: Mon, 15 Oct 2012 07:37:34 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        Re: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        created by David_Powers in Developing server-side applications in Dreamweaver - View the full discussion
    jmed0411 wrote: the phonegap program loads for quite some time and eventually reaches to the unfortunate conclusion that the server cannot be reached and to please try again. Any ideas on how that problem can be mended if the solution is in my hands?? I haven't used PhoneGap Build recently, but I have seen several reports about problems connecting to the server. One suggestion that I've heard is that there has been unexpectedly high demand on the server since the launch of Edge Tools and Services as part of the Creative Cloud last month. As far as I know, the only thing you can do is wait, and try again later. You could also try posting in the PhoneGap Build forum: http://community.phonegap.com/nitobi/products/nitobi_phonegap_build.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4774799#4774799
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4774799#4774799
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4774799#4774799. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Developing server-side applications in Dreamweaver by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Insert a splash Screen for a Jbuilder Application

    hi all
    Does Anybody know how to insert a Spash screen to a Jbuilder application. I am doing my software project on Jbuilder version 8 and I have the Frame1.java as the main java file. can anybody give the code for a splash screen and tell me how to integrate it to my project.
    thanks a lot

    hi all
    Does Anybody know how to insert a Spash screen to a Jbuilder application. I am doing my software project on Jbuilder version 8 and I have the Frame1.java as the main java file. can anybody give the code for a splash screen and tell me how to integrate it to my project.
    thanks a lot

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

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

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

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

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

  • Method to build a logo splash screen at the start of the DVD

    We are attempting to place a logo splash screen on a DVD. We want the logo screen to be viewed at the beginning, when the disc is first inserted into the DVD player. We want the logo to be seen only one time before the main menu appears, and not seen again while the user navigates around the DVD. Right now our logo screen comes up at the beginning followed by the DVD’s main menu. That’s the first part of what we are trying to accomplish. However, when the “DVD Menu” button on the remote is selected, the disc goes all the way back to the logo splash screen. The viewer has to sit through the logo presentation again before moving on to the main menu. What we want is for the main menu to appear when the menu button is selected on the remote, and not the logo screen. I could not find the answer in the manual. I’m not sure what this process (or menu) with the logo is called for an index search. Commercial movies on DVD have this function. Any ideas?
    PowerMac G5   Mac OS X (10.4)  
    Dual 800 PowerMac G4   Mac OS X (10.2.x)  

    hey Ralph, also make very sure your connections tab's disc "menu" option is NOT set as the splash scrren.
    so what you have to do to see it is:
    click on your connections tab. then click on any grey area in your connections window.
    then the discs connections will appear on the conection tab.
    the 'title menu" connection should be visible, if that says "splash scrren (or whatever you named the splash scrren" change it to "main menu 1" and that should do it.
    also, amke sure you follow the above instructions as well!
    hope that helps
    Mikey

  • No display or splash screen

    Compaq Presario sr5703wm, Windows Vista 32-bit,
    Repalced fuse in power supply. Removed password by jumper on motherboard. Booted fine 6-7 times. Next boot had no display on monitor- no splash screen, nothing. Checked for VGA connections -OK. Checked monitor on another computer-OK. When computer turned on all fans running CD/DVD light blinks momentarily, hard drive spins up. Attempted to do recovery using disc and CD/DVD drive does not run. Have tried reset Bios with no resolution.
    HELP PLEASE!  Thank you

    Hello, 
    I understand that your pc will not boot but you do hear the fans and also see lights on the cd/dvd drive blinking momentarily. I appreciate you already testing out the monitor to confirm it works with another pc. 
    When you attempted to run the recovery using the disc did the monitor show any images?
    You also mentioned resetting the bios. Did the bios menu physically show up on the monitor or could you not see it on the screen? Also take a look at your keyboard and see if there lights that flash in somewhat of a pattern. (ie. caps lock, num lock)
    I am thinking there might be an issue with the graphics card which I’m, showing is integrated to the motherboard. 
    I have inserted a link that will provide you with more steps you try. 
    I recommend you start with step 5 because the majority of the steps above you have already done. (See below)
    Step 5: Reseat loose internal components
    If the computer case was recently serviced or moved, a card, cable, memory module, or processor may have become loose. When this happens, the computer might make a beeping sound when turned on. Use the following steps to check for loose components:
    Let me know if this helps you. If you have any questions feel free to let us know. 
    Thanks 
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Re: splash screen

    Hello All:
    I've decided to add a splash screen to a GUI app that I'm building.
    However I'd like it to be Swing related if possible as opposed to AWT.
    Does anyone know where or rather how I can start this.
    I'm looking for two extremes of splash screens: a millisecond -- (dare I say) screen and a more conventional welcoming splash screen.
    Any pointers in the right direction would be greatly appreciated.

    Here some code, that can be used whenever a time consuming process is started:
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    * creates a splashscreen that runs a time consuming process
    * in a separate thread, so that the splashscreen itself can be visualized properly
    abstract class SplashScreen extends JWindow
    * Constructor for a SplashScreen, that is located at the middle
    * of the screen
    * Shows a centered image above a message text
    * Example:
    * SplashScreen splash = new SplashScreen(..., ..., ...)
    * public void timeConsuming()
    * //insert the time consuming code here
    * splash.start();
    * @param component Parent component, the SplashScreen is positioned relative to it
    * @param text Text that is shown at the SplashScreen
    * @param image Image that is shown at the SplashScreen
    public SplashScreen(Component component, String text, String image)
    JPanel contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    Border bd1 = BorderFactory.createBevelBorder(BevelBorder.RAISED);
    Border bd2 = BorderFactory.createEtchedBorder();
    Border bd3 = BorderFactory.createCompoundBorder(bd1, bd2);
    ((JPanel)contentPane).setBorder(bd3);
    ImageIcon icon = new ImageIcon(getClass().getResource(image));
    contentPane.add("Center", new JLabel(icon, JLabel.CENTER));
    contentPane.add("South", new JLabel(text, JLabel.CENTER));
              setContentPane(contentPane);
              setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
              pack();
              int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width;
              int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
              setLocation(screenWidth / 2 - getSize().width / 2, screenHeight / 2 - getSize().height / 2);
         * create an object of SplashScreen and override this method to include
         * the code that is needed to be splashscreened
         public abstract void timeConsuming();
         * sets the splashscreen visible, starts the time consuming code
         * and than disposes the splashscreen
         public void start()
              Thread t = new Thread()
                   public void run()
                        Runnable r = new Runnable()
                             public void run()
                                  timeConsuming();
                                  dispose();
                        setVisible(true);
                        SwingUtilities.invokeLater(r);
              t.start();
    }

  • Splash Screen + Jar + DND + Linux = XServer Freeze?

    I've experienced a strange problem with one of my programs which I believe to be a java bug, I just need help reproducing it in a small example.
    Basically, I have a fairly large project (20,000 loc), which involves a bit of drag and drop of a custom JTree, custom JList, and some other things. Recently, we introduced a splash screen to the project. With that, I started getting reports of the program freezing people's linux computers. I looked into it and was able to reproduce the problem. Here are my findings:
    1) Disabling the splash screen stops the freezing. This is an undesirable workaround, since the program takes a long time to load, but aside from disabling Drag and Drop, this has been the only workaround I've found so far.
    2) The freezing only occurs if the project is packed into a jar. Running from Eclipse or running the class files does not produce the problem.
    3) The freeze occurs briefly after the user completes a Drag and Drop. There are other methods to complete these actions which do not involve drag and drop, but these methods do not cause the freeze, thus the problem is with the DND.
    4) I was unable to reproduce this problem with Windows
    Upon freezing, I am still able to move the mouse cursor, but it get stuck on a certain pointer (which, since this is briefly after the DND completion, could be anything. I've obtained states such as invisible, I-beam, and pointer). Music also continues to play. Open windows, however, stop responding to attempts to bring them to front, minimize them, interact with them, etc - they are essentially frozen. Ctrl+C does not kill the offending process, even if it was run from the terminal.
    There are 2 ways to recover from the freeze: Hard Reboot, or ssh in and kill the java process that way.
    This has led me to conclude that it is the XServer freezing.
    Now the weird thing is, I'm unable to reproduce this with a small test program which involves all 4 of the mentioned components.
    Anybody know anything about this problem? Anybody else experienced this or able to reproduce this?
    My project is open source and I'd be more than happy to share a jar of it if it helps you any, or it can be accessed from an SVN. Like I said, though, it's 20,000 loc or so, so I doubt you'd want to look through it to find the problem. I've also created a small test program using the main freeze-worthy components (Splash screen, jar, DND), but it does not cause the freeze. I can provide that program if anybody's interested.
    Please help, this is very irritating, and I'm starting to get some unhappy clients.

    OK, so I managed to replicate it on relatively small code, here comes the code:
    DomTree.java
    import javax.swing.JFrame;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import java.math.BigDecimal;
    public class DomTree extends JTree
        public DomTree()
         DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.PI)));
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.E)));
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.PI*Math.E)));
         setModel(new DefaultTreeModel(root));
         new DomTreeDnD(this);
        public static void main(String args[]) {
         JFrame frame = new JFrame();
         frame.setSize(640, 480);
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new DomTree());
         frame.setVisible(true);
    }DomTreeDnD.java
    import java.awt.Component;
    import java.util.ArrayList;
    import java.io.IOException;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.math.BigDecimal;
    import javax.swing.DropMode;
    import javax.swing.JComponent;
    import javax.swing.JTree;
    import javax.swing.TransferHandler;
    import javax.swing.tree.TreePath;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class DomTreeDnD extends TransferHandler
        /** A list of supported data flavors for import */
        public DataFlavor importFlavors[] = null;
        /** A list of supported data flavors for export */
        public DataFlavor exportFlavors[] = null;
        // BigDecimal transfer within the same JVM instance:
        DataFlavor localBigDecimal;
        public DomTreeDnD(DomTree domTree)
         try {
             // BigDecimal transfer within the same JVM instance:
             localBigDecimal = new DataFlavor(BigDecimal.class, "Big Number");
             importFlavors = new DataFlavor[]{
              localBigDecimal, // JVM-local import
             ArrayList<DataFlavor> exportFlavors = new ArrayList<DataFlavor>();
             exportFlavors.add(localBigDecimal);
             this.exportFlavors = exportFlavors.
              toArray(new DataFlavor[exportFlavors.size()]);
             domTree.setTransferHandler(this);
             domTree.setDragEnabled(true);
             domTree.setDropMode(DropMode.INSERT);        
         } catch (IllegalArgumentException iae) {
             System.err.println("D&D is disabled due to: "+iae);
        /* In order to restrict drop location, remember what is being dragged: */
        /** Source component (of class DomTree) noted upon drag. */
        Component source = null;
        /** The DomTree in which internal MOVE action has been performed.*/
        DomTree selectTree = null;
        /** The position in DomTree where internal MOVE action has been performed.*/
        TreePath selectPos = null;
        /** Export (start drag or copy): declare supported actions */
        public int getSourceActions(JComponent c)
         // support only DomTree (for now)
         if (c instanceof DomTree) {
             System.out.println("getSourceActions: OK");
             return COPY_OR_MOVE;
         return NONE;
        /** Export (start drag or copy): wrap the data */   
        protected Transferable createTransferable(JComponent source)
         if (source instanceof DomTree) {
             DomTree domTree = (DomTree) source;
             TreePath path = domTree.getSelectionPath();
             if (path == null) return null;
             Object o = path.getLastPathComponent();
             if (o == null) return null;
             if (!(o instanceof DefaultMutableTreeNode)) return null;
             o = ((DefaultMutableTreeNode)o).getUserObject();
             if (o instanceof BigDecimal) {
              System.out.println("createTransferable");
              BigDecimal t = (BigDecimal)o;
              return new TransferableBigDecimal(t);
             } else {
              System.out.println("Dragging "+o.getClass().getName());
         return null; // otherwise drag is not supported
        /** Export (drag or copy): finish export after import is done */
        protected void exportDone(JComponent source,
                         Transferable data, int action)
         if (selectTree != null && selectPos != null) {
             System.out.println("exportDone: change selection");
             selectTree.setSelectionPath(selectPos);
             selectTree = null;
             selectPos = null;
             System.out.println("exportDone: change selection done");
        /** Import (drop or paste): find acceptable flavor. */
        DataFlavor findFlavor(Transferable transferable)
            for (DataFlavor idf: importFlavors)// prefer our priorities first
             if (transferable.isDataFlavorSupported(idf)) {
              return idf;
            System.out.println("No supported data flavor found, suggested:");
            for (DataFlavor df: flavors)
                System.out.println(df);
            return null;     
        /** Import (drop or paste): can we accept the flavor? */
        public boolean canImport(JComponent c, DataFlavor[] flavors)
         System.out.println("canImport DataFlavor");
         for (DataFlavor idf: importFlavors)// prefer our priorities first
             for (DataFlavor edf: flavors)
              if (idf.equals(edf)) return true;
         return false;
        /** Import (drop or paste): can we accept the stuff? asked continuousely.*/
        public boolean canImport(TransferHandler.TransferSupport sup)
         if (!sup.isDrop()) // allow only drop
             return false;
         // allow only copy and move:
         if (sup.getUserDropAction() != COPY_OR_MOVE &&
             sup.getUserDropAction() != COPY &&
             sup.getUserDropAction() != MOVE)
             return false;
         Component target = sup.getComponent();
         if (!(target instanceof DomTree)) // support only DomTree
             return false;
         DomTree domTree = (DomTree)target;
         // check for compatible flavor:
         if (findFlavor(sup.getTransferable()) == null) return false;
         JTree.DropLocation loc = (JTree.DropLocation)sup.getDropLocation();
         TreePath destPath = loc.getPath();  // parent of drop position
         int destIndex = loc.getChildIndex();// position of insertion
         if (destPath == null) return false;
         Object parent = destPath.getLastPathComponent();
         parent = ((DefaultMutableTreeNode)parent).getUserObject();
         if (!(parent instanceof String)) // drop only within document
             return false;
         if (target == source) { // transfer within the same tree
             sup.setDropAction(sup.getUserDropAction());
         return true; // allow transfer
        /** Import (drop or paste): perform import and return result. */
        public boolean importData(TransferHandler.TransferSupport sup)
         Component target = sup.getComponent();
         if (!(target instanceof DomTree)) return false;
         DomTree domTree = (DomTree)target;
         Transferable trans = sup.getTransferable();
         DataFlavor flavor = findFlavor(trans);
         if (flavor==null) return false;
         System.out.println("importData");
         BigDecimal t = null;
         // extract the data being dropped:
         try {     
             Object data = trans.getTransferData(flavor);
             if (data == null) return false;
             if (flavor.equals(localBigDecimal)) {
              if (data instanceof BigDecimal) t = (BigDecimal)data;
              else return false;
         } catch (UnsupportedFlavorException ufe) {
             ufe.printStackTrace(System.err);
         } catch (IOException ioe) {
             ioe.printStackTrace(System.err);
         if (t == null) return false; // data extraction failed
         System.out.println("Search for location");
         // search for position in terms of a preceeding template:
         JTree.DropLocation loc = (JTree.DropLocation)sup.getDropLocation();
         TreePath destPath = loc.getPath();
         int destIndex = loc.getChildIndex();
         DefaultMutableTreeNode pos;
         DefaultTreeModel model = (DefaultTreeModel)domTree.getModel();
         DefaultMutableTreeNode parent =
             (DefaultMutableTreeNode)model.getRoot();
         System.out.println("Insert a copy");
         BigDecimal copy = new BigDecimal(t.doubleValue());
         pos = new DefaultMutableTreeNode(copy);
         parent.insert(pos, destIndex);
         TreePath path = destPath.pathByAddingChild(pos);
         model.nodesWereInserted(parent, new int[]{destIndex});
         System.out.println("Highlight selection");
         // highlight the selection in the DomTree:
         if (pos != null) {
             domTree.setSelectionPath(path);
         return true;
        class TransferableBigDecimal implements Transferable
         protected final BigDecimal template; // hidden behind interface
         public TransferableBigDecimal(BigDecimal t) {
             System.out.println("TransferableBigDecimal");
             template = t;
         public boolean isDataFlavorSupported(DataFlavor df) {
             if (!localBigDecimal.equals(df))
              System.out.println("Tried requesting: " + df);
             for (DataFlavor myflavor: exportFlavors)
              if (myflavor.equals(df))
                  return true;
             return false;
         public Object getTransferData(DataFlavor df)
             throws UnsupportedFlavorException, IOException
             if (df.equals(localBigDecimal)) {
              System.out.println("Local export");
              return template;
             } else {
              System.out.println("Unsuported flavor");
              throw new UnsupportedFlavorException(df);
         public DataFlavor[] getTransferDataFlavors() {
             System.out.println("Asked for all supported flavors");
             for (DataFlavor df: exportFlavors)
              System.out.println(df);
             return exportFlavors;
    }manifest
    Manifest-Version: 1.0
    Main-Class: DomTree
    SplashScreen-Image: splash.pngsplash.png
    // use gimp to draw 400x300 picturecompile:
    javac DomTree.javacreate jar:
    jar -cvfm dndtest.jar manifest splash.png DomTree*.class DomTreeDnD*.classrun:
    java -jar dndtest.jarthen select any number and try to drag -- the screen freezes.
    interestingly, if you tried running this DomTree not in a jar, then it does not freeze anymore, you will need to logout/login to replicate the freeze.

  • Lenovo g510 stuck in lenovo splash screen

    I bought this g510 less then a year ago without an OS.
    I've installed win7 first then ubuntu14.04, back when i get it.
    Yesterday I deleted my win7 partition and reinstalled a premium sp1 win7 version from a usb formatted as NTFS - as you might have guessed I'm booting the laptop in legaci mode. The installation got stuck and failed and i had to do a hard reset.
    After the hard reset the laptop won't boot and in fact it won't even pass the splash screen or respond to fn+f2 or any other shortcut to get into the bios. Even when i shut it off and press the Novo button it starts but doesn't display the blue utility menu with bios and boot options. Ive tried pressing the power button for 30 seconds witn the battery and power cable disconnected and tried to boot from usb but still nothing.
    I then took the hard drive out and the laptop would boot and respond to novo button and fn+f2 and i can go into bios. It would also boot from usb when the hdd is disconnected. But it dosen't matter which bios settings i change or if the bootable usb is connected, when i hook the hdd back the laptop will just get stuck on lenovo splash screen again and won't respond to Novo button or fn+12 and it won't boot from usb - i should mention it does respond to capslock or the key to make the screen black (fn+f9).
    I have a 1TR samsung sata hdd that seems to be perfectly fine. I don't think its the hdd or any of the hardware and the symptoms are not of defected hdd or anything else i've seen before. It 's also not a uefi problem as i've tried legacy and uefi mode with the same results. Also my usb boot is enabled in the bios just in case you're wondering.
    This has ruined my weekend and about to ruine my week. Help lenovo please save me....?!?

    hi markwills,
    Welcome to the Forums.
    If using another drive works fine on the G510 then I suspect that the stock HDD is failing or has corrupt partitions.
    Can you consider using a 2.5" SATA enclosure to convert the stock HDD into an external drive and try to format the drive and/or run a hardware scan on it using the following:
      - Lenovo Storage Test or
      - HD Tune.
        - http://www.hdtune.com/faq_1.html
    When finished, try to insert it back on the G510 and observe.
    If you get errors on the scan or if the above step is not possible, I recommend you contact warranty support on how to go about getting the unit serviced.
    Support phone list
    Similar thread:
    G500 stuck on lenovo screen
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • HELP!! 700W STUCK IN TREO SPLASH SCREEN

    My Treo 700w seems to be bricked -- all I get is the first splash screen upon inserting the battery. The power button will not turn the unit off.  Cannot re-flash unit via activesync because USB won't work either. 
    I've executed multiple hard resets and even though the reset "erase" message appears the unit goes right back to Treo splash screen after tapping "up" but no progress bar appears.
    Is there a way to re-flash via SD card? 
    This seems a common problem with w and wx units, there are two similar posts with over 900 views and no replies or solutions, what's going on that neither Verizon or Palm can deal with this?
    See posts:
    "Treo 750 problem - hangs on orange Palm logo - Windows OS does not load???" 722 views
    "Treo 700wx - Stuck in Treo load screen - Help!!!"  158 views
    Post relates to: Treo 700w (Verizon)

    For those finding this page and saying $%#*, there is a solution!
    You can use an SD card and reinstall the rom (OS) update directly from there without using your data cable.
    Instructions for updating ROM
    Format SD Card as FAT32.
    Copy Rom image to root of SD card.
    Remove Battery from phone, and unplug the power cord.
    Reinsert BATTERY while holding the up volume button on the side of the phone.
    Follow on screen prompts.
    Once the update starts, PLUG IN your power cord. You don't want the battery to go dead while updating.
    Wait for approximately 20 minutes for the update to complete.
    Once you align page and close the tour, it may look like it needs to update again. Click cancel/exit!
    Post relates to: Treo 700wx (Verizon)
    Post relates to: Treo 700wx (Verizon)

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

  • Want to hide or mod FCP 6 Splash Screen

    Just want to hide the splash screen on my FCP system. I rent it to indy projects and I want to protect my serial. How can I access the Splash Screen Image? I've been able to mod the splash screen on all the other apps on the rental system but can not find or get to the Splash Screen for Color and FCP 6. I know that a real hacker can find my serial some how but I am not trying to block those geniuses. Just the lazy ones that are willing to go as far as copying or screen grabbing my Splash Screen and or About Screens to get a working serial. I know how to mod the Splash Screen to hide my serial and how to hide the app so the user can't get to the splash screen. I just don't know where the splash screen file is. I've read that it is in the .nib files? I just wanna hide my serial. Don't care if I mod it myself or install an app that does it for me. Any apple people or anyone else know what I can do to protect my product. I've also been told that the splash screen does not display the full serial but it soo totally does. Hey apple, please add the ability to hide this splash screen. Perhaps with it's own password to unlock and show again? OR, make splash screen hiding a universal ability in the OS. That would be sweet! Anyway,... ideas?

    Hey all. I have been able to mod the splash screen on all the apps in FCP Studio 2 except for FCP and Color. The other studio apps Splash Screens access a .psd file. The only files I've found in Color that seem like they might be the splash screen files are ft_splash.Isi, ft_splashEDU.Isi, ft_splashNFR.Isi and ft_splashVOL.Isi
    How do I open a .Isi file? If I can figure that out I can hide the serial number for Color but it still leaves FCP. Why do apps show the serial on the splash screen at all? What purpose does this serve?

Maybe you are looking for

  • Problem in loading SWF file

    Hi All, I am facing a problem in file loading. I have a file https://shopping.easycite.com/admin/tree/main.swf and in that file loading another file named "editNodeFome.swf". To load "editNodeFome.swf" i am using related path. But the file is not loa

  • Difference  Between Provide and RP-PROVIDE-FROM-LAST  in ABAP-HR

    what is the Difference Between Provide and RP-PROVIDE-FROM-LAST  IN hR. IF I want to retrieve data in BETTWEEN BEGDA AND ENDDA. what these 2 ill return.    Both ill return the LAtest record. plz  let me know what ill happen.   With Regards,    Venkat

  • HT4910 icloud usage

    I am new to icloud, can i do the following, upload ALL my photos from an external usb drive to icloud so that all my i devices can see them (2 ipads and 2 ipods) or is icloud simply for photoes taken on the idevice. I told the icloud control panel wh

  • My computer shutdown during update to ios 5.. iphone is frozen.. with the apple logo..

    hi... my phone is now frozen, cant do anything.. itunes dont recognize the device... any advice how to restart?

  • How do I make a payment to pay pal or pay pal credit?

    How do I make a payment to pay pal or pay pal credit?  I've been trying to find where to pay my bill with you for over 2 hours.    Please send me a bill in the mail and I'll write you a check.  Your new Web Site SUCKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!