Display Image on Splash Screen

have just found the world of Java, having used VB for a while.
How do I get a mobile application to display an image on the splash screen, I have created the screen and added an image but cannot get the system to pick the file to display?

class SplashCanvas extends Canvas
Image splash;
SplashCanvas()
  try{
   splash = Image.createImage ("/splashImage.png");
  } catch (IOException ioe)
public void paint(Graphics g)
  g.setColor(255,255,255);
  g.fillRect(0,0,getWidth(),getHeight());
  g.setColor(0,0,255);
  g.drawImage(splash, getWidth()/2, g.getFont().getHeight(),Graphics.HCENTER|Graphics.TOP);
} //End of SplashCanvas
public class MyMidlet extends MIDlet
     protected void startApp(  ) throws MIDletStateChangeException
               SplashCanvas sp = new SplashCanvas();
               Display.getDisplay(this).setCurrent(sp);
} //End of Midlet

Similar Messages

  • Display image in full screen

    Hi everyone, I am a newbie for labview. I just wanna ask you about image display in labview. Now I can display one image in my front panel. I open the file path and display it. First thing I wanna do is that is it possible to display on monitor full screen not on front panel and second thing is that how can I display images in folder and display it about 2 seconds delay in between? Pls kindly help me.
    Thanks millions.
    Solved!
    Go to Solution.

    Hi there, 
    -I don't know whether the image full display can be possible or not, Any reason why you are asking for such requirement?
    -The other question about reading files in a folder and display for 2sec can be done like shown in image.
    -I've attached vi in lv 12 if needed.
    -Next time, please post your vision related queries in Machine vision Board.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13
    Attachments:
    Image_read_folder.vi ‏43 KB

  • How to display image in selection-screen of a report

    Dear all ,
    i want to show my image from url or from desktop to the report selection-screen . i have searched sdn and found some code . after applying it i am not able to display image in the selection-screen although it is displaying the box in which the image should appear . here i am sending my code plz verify where is the mistake .
    REPORT  ZPIC2.
    DATA: docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    **& Form show_pic
    FORM show_pic.
    CREATE OBJECT picture_control_1 EXPORTING parent = docking.
    CHECK sy-subrc = 0.
    CALL METHOD picture_control_1->set_3d_border
    EXPORTING
    border = 5.
    CALL METHOD picture_control_1->set_display_mode
    EXPORTING
    display_mode = cl_gui_picture=>display_mode_stretch.
    CALL METHOD picture_control_1->set_position
    EXPORTING
    height = 100
    left =   150
    top =    58
    width =  350.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = 'C:\abc.jpg' .
    endif .
    IF sy-subrc NE 0.
    ENDIF.
    ENDFORM.
    CORECT ANSWERS WILL BE HIGHLY APPRECIATED AND SURELY REWARED .
    THANKS ,
    AMIT RANJAN

    Hi,
    Try this code. hope it will work.
    DATA: DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
          PICTURE_CONTROL_1 TYPE REF TO CL_GUI_PICTURE,
          URL(256) TYPE C,
          PIC_DATA TYPE TABLE OF W3MIME WITH HEADER LINE,
          PIC_SIZE TYPE I.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN OUTPUT.
      PERFORM SHOW_PIC.
    *&      Form  SHOW_PIC
    FORM SHOW_PIC .
      CREATE OBJECT PICTURE_CONTROL_1
    EXPORTING PARENT = DOCKING.
      CHECK SY-SUBRC = 0.
      CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
        EXPORTING
          BORDER = 5.
      CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
        EXPORTING
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
      CALL METHOD PICTURE_CONTROL_1->SET_POSITION
        EXPORTING
          HEIGHT = 200
          LEFT   = 100
          TOP    = 20
          WIDTH  = 400.
    CHANGE POSITION AND SIZE ABOVE**************************
      IF URL IS INITIAL.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            TYPE     = 'image'
            SUBTYPE  = CNDP_SAP_TAB_UNKNOWN
            SIZE     = PIC_SIZE
            LIFETIME = CNDP_LIFETIME_TRANSACTION
          TABLES
            DATA     = PIC_DATA
          CHANGING
            URL      = URL
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
        EXPORTING
          URL = 'file://D:\img.jpg'.
    ENDFORM.                    " SHOW_PIC

  • Display dead until splash screen

    Kind of an odd problem. For a while the display would not work at all.
    Zapped PRAM, Reset, NVRAM, removed ram upgrade and Airport card, no change.
    I finally try and boot from the recovery CD's and amazingly, it works again.
    Now, it works once it gets inside the GUI. But, from the startup chime to the "Starting Mac OSX" screen, it's dead. I dont get any video at all until I get that blue splash screen. No single user, no verbose boot, no grey boot screen with the apple.
    I can boot into OF and Single User modes, and they work, I just get no video at all.
    If anyone has an idea of what I can do about it, I'd appreciate a pointer, I'm pretty stuck right now.
    iBook G4, 1.2Ghz   Mac OS X (10.4.5)   1.25GB Ram, 30 gig HD

    Hi Lwood,
    Welcome to Apple Discussions
    Have you tried reseting the PMU (Knowledge Base Document #14449, which covers Resetting Powerbook and iBook Power Management Unit (PMU)). You may want to look at...
    Knowledge Base Document #300552 on My computer won't turn on (Display troubleshooting
    Knowledge Base Document #106214 on Troubleshooting Startup Issues
    Jon
    PS Bring it to your local Apple Store/Reseller is not a bad idea at all. It is hard to troubleshoot exact problems without out being able to interact with the computer personally.
    Mac Mini 1.42Ghz, iPod (All), Airport (Graphite & Express), G4 1.33Ghz iBook, G4 iMac 1Ghz, G3 500Mhz, iBook iMac 233Mhz, eMate, Power Mac 5400 LC, PowerBook 540c, Macintosh 128K, Apple //e, Apple //, and some more...  Mac OS X (10.4.5) Moto Razr, iLife '06, SmartDisk 160Gb, Apple BT Mouse, Sight..

  • Displaying error after splash screen

    I am writing the client side of a client/server app that relies heavily on the connection between client and server.
    I have made a splash screen and while it attempts to connect it displays the splash screen.
    what i need though is that when it fails to connect it should display an alert box in the center of the screen say it has failed to connect.
    I don't understand how to do this i tried using
    JOptionPane.showInternalMessageDialog(null, message);
    and
    final JOptionPane optionPane = new JOptionPane(message, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);
    then telling it to go to sleep but nothing.
    how should i do this?
    Scott.

    ratcateme wrote:
    I am writing the client side of a client/server app that relies heavily on the connection between client and server.
    I have made a splash screen and while it attempts to connect it displays the splash screen.
    what i need though is that when it fails to connect it should display an alert box in the center of the screen say it has failed to connect.
    I don't understand how to do this i tried using
    JOptionPane.showInternalMessageDialog(null, message);
    and
    final JOptionPane optionPane = new JOptionPane(message, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);
    then telling it to go to sleep but nothing.That was a mistake.
    JOptionPane.showMessage
    quit

  • A2109AF tablet is only displaying the startup splash screen

    so as i was working today as i had my tablet plugged up to the wall charger to charge and at a point several hours later i hear the startup sound so i grab the tablet and look at it and it is displaying only the startup splash screen, i have already tried to do a hard reboot with no luck so i wiped it and when i press the power button to turn it on it is still doing the same thing... any ideas?

    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414
    If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808
    Note on Recovery Mode.
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...

  • Display image in full screen canvas

    Hi frndz
    I have an Image, which either bigger in size of a canvas or small
    I want to give an option of a full screen view
    So its a kind of zoomIn/ zoomOut function in one method
    how can I convert such small/big images into full screen canvas size
    thanks
    alpesh

    This question has been asked already several times here: http://onesearch.sun.com/search/onesearch/index.jsp?qt=resizing+image&subCat=siteforumid%3Ajava76&site=dev&dftab=siteforumid%3Ajava76&chooseCat=javaall&col=developer-forums
    There is no method in MIDP which rescales a picture for you, so you have to write it on your on (or use existing code). But usually this would be pretty slow. Mostly it is better to offer different versions of your application for different devices (screen resolutions) where the images have already the appropriate size within your jar-file.

  • Are there official icons for displaying on About/Splash Screens or in Brochures?

    I am writing an Air Native Extension that utilises the Adobe PDF Library, and we are including an official Powered By Adobe PDF Library image into a screen to advertise this fact.
    There is a space beside this image, that we would like to fill with a similar powered by Adobe AIR, Flex or Flash Builder or similar, but we are unable to find any icons or guidelines on how to add them. 
    My question is whether this is allowed, and if so, where would we find the images and/or guidelines to be able to do this?

    Patrick Jean wrote:
    this is a big one: when i copy layer effects and shape attributes, it seems like there is no simple short-cut command for it. so i end up doing 2 copy & paste operations each time. is there a way ideally to select a shape and then copy & paste both values at the same time?
    Not sure I fully understand what you're doing now, but here's what I do:
    1.  I right-click on the layer I want to copy effects from and choose Copy Layer Style.
    2.  Then I left click and Control-left click on all the layers I want to paste the style to, then right-click on any of them and choose Paste Layer Style.
    Is that what you were talking about re doing 2 operations?
    Note that if you have styles you use over again a lot, you can create a preset.  You access those by double clicking a layer, then clicking on the Styles heading at the upper-left.
    -Noel

  • Synchronizing sound and image for splash screen.

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

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

  • 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

  • Webstart splash screen - test results required

    There is a thread on the JWS forum - [No splash screen in sight....|http://forums.sun.com/thread.jspa?threadID=5423155] in which we have been trying, unsuccessfully, to get a splash to appear for an app. I have begun to suspect there is a bug in the JWS client itself (it's a long time since I played with JWS splash screens - they used to work!).
    As preparation for raising a bug report, I created this small, sand-boxed demo to test the feature. You can find the test page (+links to all relevant files) at [http://pscode.org/test/splash/].
    I would appreciate finding out:-
    1) After following the 4 steps under 'Instructions for testing', did you see the splash for the second launch? Note that you should see the image, at least twice, displayed in the JFrame. I am not talking about that, but instead seeing the splash image floating over the desktop, without any window(/frame) decorations, in place of the usual Sun splash.
    2) What OS and Java version are you running?
    Note: Using Java 1.6 under Ubuntu, I do not see the splash image. :-(

    1) After following the 4 steps under 'Instructions for testing', did you see the splash for the second launch? Note that you should see the image, at least twice, displayed in the JFrame. I am not talking about that, but instead seeing the splash image floating over the desktop, without any window(/frame) decorations, in place of the usual Sun splash.
    2) What OS and Java version are you running?-----
    Yes, I am getting the same. It is showing the Image as splash screen without any border, frame or window over it. It also shows same image in another frame also. I think this the same as you are expecting.
    I am running
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)Over
    Microsoft Windows XP Professional

  • How to display images on my internal isight?

    Hi,
    I just bought the new iMac 2 gig dual. Running on 10.5.2.
    I wanted to know how to display images on my screen during a video conference chat without resorting to holding up a print out to the camera? I need something where I can switch from video mode to image mode and show a single image at a time if I need to. All that while still talking of coarse. If it isn't possible with my iSight software, can you point me to other software I can download and still use my built in cam?
    I hope I was clear enough in asking this.
    Thanks
    Liban

    Welcome to Apple Discussions, Liban
    iChat can do what you want, but I do not know of any web-based video chat site that can.
    Look for Help or Support information on the site you are using or ask the Webmaster if his site has the capability to do what you want.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

  • PE3 installs on Vista 64; nothing runs beyond splash screen

    I'm trying to install Premiere Elements 3.0 on my new Vista 64-bit machine. Nothing happens once the splash screen disappears. Here are the details:
    - The PC has 4G RAM, full system updates applied, etc.
    - I installed, in order:
    - Quicktime
    - PE3
    - PE 3.0.2 update
    I checked Event Viewer. Everythng had installed correctly, except Adobe Help Center (error 1063), so I ran the Help Center installer by itself (from F:\Premiere Elements\help center); this time, it installed correctly.
    Unfortunately, running PE3 gets me nowhere. I get the splash screen (which indicates "v3.0.2" and "Windows XP; multi processor detected", a good sign). The last item displayed on the splash screen is "Loading Wave_Warp.AEX", then the splash screen disappears and... nothing.
    Event Viewer shows no error message whatsoever. I also tried deactivating XP compatibility in the PE application's Properties -> Compatibility tab; same result.
    What else can I do to make PE3 run on this machine? Many thanks for your help.

    There is very likely to not be a patch, especially for a program that is several years, and versions old. No one at Adobe could anticipate, much less program for, a new OS, that is quite different in all respects from that which was available upon release of PE3.
    Yes, it can be frustrating when either software, or hardware, are rendered obsolete, however it happens constantly, and will, so long as each gets changed to take advantages of improvements in technology.
    In real world terms, PE7 is the current Vista "patch" for PE3. I'm using CS2 PrPro (Production Suite) on my XP-Pro workstation. I want to go to CS4, but to get the full benefit from it, I need to upgrade my workstation and go to Vista-64, or Win7, when released. Talk about an investment in both time and $'s.
    For some older 3D paint programs, I had to build a special computer and use WinME, just to run them. Most of the gear was then state-fo-the-art, but I could only use 512MB of RAM, and had to install a much older (and pretty lousy)  OS. I needed and used those programs enough to justify that expense. Heck, just getting a 512MB stick, at that late a date, was tough, but necessary.
    Good luck,
    Hunt

  • Phonegap and squashed android splash screen

    Hi all,
    is there a way to get a splash screen to show correctly on most devides (phones, tablets...).
    I tried to use a 320x480 png file but I get horrible results: the splash image is brutally stretched while loaded on a tablet (landscape).
    Is there a way to set multiple images as splash screen and let the app pick the right one based on screen resolution/orientation?
    I also tried to use a 9-patch image but it seems phonegap ignore it.
    TIA
    tony

    Take a look at the config.xml documentation on the PhoneGap Build site: https://build.phonegap.com/docs/config-xml.
    PhoneGap supports ldpi, mdpi, and hdpi splash screens for Android with the following config options:
    <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" />
    <gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi" />
    <gap:splash src="splash/android/hdpi.png" gap:platform="android" gap:density="hdpi" />
    For details of the different screen resolutions supported by Android, see http://developer.android.com/guide/practices/screens_support.html.

  • How to display different Splash Screen depending on the Locale?

    Hi,
    I have a splash screen which is working fine.
    I want to display different spalsh screen depending on the locale the user has.
    Is this possible.
    I can display different Title,Description and the text of the short-cut icon on desktop and startup Menu based on the locale by mentioning it in the JNLP and altering my browser settings. I am not able to use the icon and splash screen corresponding to the specified locale. How to do this?
    EX:
    <information>
    <title> In english</title>
    <description> In english</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in English language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_english.gif"/>
    <icon kind="splash" href="images/splash_english.jpg"/>*
    <!-- locale="nl-NL" specifies dutch -->
    </information>
    <information locale="nl-NL">
    <title> In Dutch</title>
    <description>In Dutch</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in Dutch language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_dutch.gif"/>
    <icon kind="splash" href="images/splash_dutch.jpg"/>*
    </information>
    *Now here i am not getting the splash_dutch screen for the locale "nl-NL"(Dutch) and i am getting splash_english screen.
    Can we acheive this?*

    Hi anjali...
    I have problem with splash screen..
    here is my jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/MyProject">
         <information>
              <title>MyProject1.0</title>
              <vendor>none</vendor>
              <description>Application Launcher For MyProject1.0</description>
              <description kind="short"></description>
              <offline-allowed />
              <icon kind="splash" href="images/Splash_MyProject.jpg" width="560" height="300"/>
         </information>
         <resources>
              <jar href="SwingApplication/mysql-connector-java-5.0.6-bin.jar" />
              <jar href="SwingApplication/MyProject1.0.jar" main="true"/>
              <jar href="SwingApplication/liquidlnf.jar" />
              <j2se version="1.6+" java-vm-args="-Xms32M -Xmx256M " />
         </resources>
         <security>
              <all-permissions/>
         </security>
         <application-desc main-class="com.mobius.ui.MainWindow">
              <argument>production%0%3#com.mysql.jdbc.Driver#MyProject4%jdbc:mysql://10.100.1.89:3306/MyProject4%MyProject%info123#MyProject2%jdbc:mysql://10.100.1.89:3306/MyProject2%MyProject%info123</argument>
         </application-desc>
    </jnlp>my post is in
    http://forum.java.sun.com/thread.jspa?threadID=5298381
    http://forum.java.sun.com/thread.jspa?threadID=5298466
    I am in big problem Help me...
    Edited by: arunnprakash on May 22, 2008 1:28 PM
    Edited by: arunnprakash on May 22, 2008 1:28 PM

Maybe you are looking for

  • Play mp3 on bluetooth headset

    Just wanted to share this. Yesterday I bought a Jabra EasyGo bluetooth headset. Unfortunately, it could not bluetooth mp3 songs from my iPhone 4 iOS5. It can only be used for making/answering calls. However, today I found out that the headset can als

  • How to print the texts retrived by using READ_TEXT fun module in Smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform. I have coded all things in the program lines and in that i am retriveing the long texts. I am getting the text lines in my internal table cle

  • T500 (2056-4SU) Has Disappeare​d from the Lenovo Support Site

    Anyone know why all of a sudden the T500 2056-4SU has vanished from Lenovo Support. Does anyone actually think they are working on the video driver problems and have pulled that page in the meantime?? If anyone has feebback please let me know. Thanks

  • Difference Between Appraisal Model and Appraisal Doc

    Hi Experts, Please do let me know the difference between Appraisal Model and Appraisal Documents (Appraisal Template). I mean in terms of functionality. when are where to use them. Through Appraisal model i m unable to create Appraisals for n number

  • JDBC error : UnsupportedClassVersionError:Bad version number in .class file

    Hi All, I am currently working with PI 7.1 on an Idoc ->XI->JDBC scenario. The DB being used in our case is SQL 2008. We have successfully installed the JDBC driver provided by MS. When the message reached the JDBC the following error is listed in RW