Rollover text to display a certain frame

Hello,
I am pretty new to Flash, and I am trying to figure out what
ActionScript formula I need. I want to allow someone to just hover
over static text, which would then change the frame to a different
picture that corresponds to that text. I know the answer must be
very simple, but it is frustrating for me. Thanks in advance!
-Elijah

many :) first you need to define some areas where things will
be 'put into', like the image of the player (MC), and the
associated text and stats (Textfields). next you will want to
create 'buttons' that contain the positions text, you will use the
onRollOver handler for each button to load the image into the MC
and put the associasted text into the fields. you should store the
information in arrays for accessing, and use a attachMovie,
loadMovie or loadClip call to bring in the picture, and dynamic
textfields to propagate the text.
You could also store the players current stats in a DB or
plain text (txt) file and access them with Flash, to display
regularly updated information, as well as reports from the most
recent game or event.
I love football :) I could assist you further, if I could
post or send me the files.

Similar Messages

  • Flash Text not displaying certain fonts

    Thanks as always…
    I am trying to use Flash text for some headings, but after an
    hour of pulling my hair out I've just realised it will only display
    certain fonts, such as Helvetica etc.
    I added the font I want to use to my font list but it still
    does not display…
    I'm using MX on OSX 10.3.9.
    Any ideas? Thansk.
    Flash Text not displaying certain fonts

    Fodderstompf wrote:
    > Thanks guys,
    >
    > I don't have Flash MX and it turns out the font is a
    Postscript Type 1.
    >
    > Didn't realise about the true-type thing, bit of
    nusiance (and completely the
    > opposite of the hassle I normally have with print
    work!).
    >
    > I'm gonna look and see I can get a true-type version of
    the font (Tabitha), or
    > is there any other work around?
    >
    > Thanks.
    >
    >
    Is your text in a dynamic text box, or static text box in
    flash?
    I don't think the issue concerns the "true-type" or not
    "true-type" font.
    In Flash, when text is part of a dynamic text box (which I
    assume is the case in your situation),
    then the font works just like in an html page:
    if the font is installed on the computer it will show, if
    not, it won't. The way around this, is to
    embed the font data in the authoring flash file, and link it
    to the dynamic text box, via actionScript.
    So if you cannot work on the authoring Flash file with Flash
    MX or Flash8, and if indeed we're
    talking about a dynamic text box, your only option is to use
    a web-safe font.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Flash displays no TLF text on publish after 1000 frames?

    Whenever I test or publish a CS5 movie that uses TLF text (no matter which font), the .swf displays all elements but the text. There's simply nothing there. I'm on a mac with Snow Leopard, 10.6.7. This only happens as soon as I pass the 1000 frame limit (before, everything displays fine). Reaching wit's end here. Anyone know what causes this, and more specifically, how to solve it?

    Thanks to all of you for the overwhelming response. I was able to track down the problem to text being displayed on one layer, on which some regular TLF text was displayed. No frills, no special characters, no strange font. Went for the simple solution and broke apart text on that particular layer. Flash has developed more and more of these derpy quirks over the year, to the point where it will just shut down because it's a thursday. I'm now having a coffee break whenever I want to import something, as this now takes up to three minutes just to load what used to be an instant function.

  • Music Video displays wrong ARTWORK.  Displays a POSTER FRAME rather than the JPG that I have given it.

    I am using ITunes 11.05.5 on Windows 7 Professional.   Have thousands of videos ... MP4 Music Videos.   I make my own "ARTWORK" (on JPG per artist for all music videos by that artist).  I place the artwork in the file by "GET INFO", "ARTWORK", copy in my own JPG Image.    I confirm that there is only one image in the ARTWORK and that it is the correct image.   When I save and go back to the GET INFO everthing is fine.   When I view it in MS Explorer or in ID3-TAG the ARTWORK is also fine.   This process works fine for most everything but unexplainably fails and I can't fix it on certain occasions.   
    THE FAILURE:    Let me explain the problem that occurs on rare occasions (and once it occurs I can't ever fix it).   Lets say I have 5 music videos from the artist, John Jones.    I embed my own artwork (the same ARTWORK for all music videos from this same artist, John Jones) and all five videos group under the proper. same ARTWORK in the GRID VIEW.   Now, I obtain another music video from John Jones, once again I put the same ARTWORK on this file and now when I go into GRID VIEW it displays a POSTER FRAME (of that artist, John Jones) that I have never seen (although it must have come from the video since it is a POSTER FRAME of John Jones) .....  from that point on, all six music videos from John Jones also display that same ARTWORK (the wrong poster frame - but same poster frame for all John Jones music videos) even tho the first five were displaying properly before (but not longer).     It is as if a POSTER FRAME of John Jones is in cache and associated with the artist John Jones and can not be deleted.
    I have tried uninstalling and reinstalling ITunes, but it doesn't work.    I have tried deleting the new Music Video that I added and that started the problem (number six); hoping the the original five would return to nomal ...  but that does not work.
    Any suggestions would be appreciated.

    this one is actually a really rare symptom of a flaky connection to the ipod on a Windows PC. there's more going on in terms of hardware on nanos and 5th gens than in the earlier models ... so if the connection is flaky to precisely the right/wrong degree, itunes will see the ipod, but misidentify it as an earlier version of ipod.
    tracking down the cause of the flakiness can be tricky ... as you already know ...
    just checking. have you tried connecting with a different (known-good) USB cable? does that seem to have any impact on the rate of occurence of the problem?

  • Can you change rollover text in the same slice for different triggers?

    Hi, I haven't used Fireworks since version 3, which was about 6 years ago, when I dabbled in web development.  My past has come back to haunt me, and I need to make a fairly simple website pretty quickly for my boss.  I've got myself CS4, and now that I've figured out that you can't use buttons for disjoint rollovers, I'm starting to make progress...
    What I want to achieve, is that there are 6 'buttons' on my page, which when you rollover them will display text in a box to the side.  I would use separate boxes for each button, but there isn't enough space on the page, as there is quite a lot of text, so I would like to use a box in the same place to display any of the 6 texts, depending on which button is rolled over.  Can this be done?
    I probably haven't quite got my head round layers, and this may be very simple, but could someone please point me in the right direction, even if it is a link to the right bit on product help?
    Because the button disjoint rollover doesn't work, I have created 6 slices for the triggers.  I tried hotspots first, but couldn't use them as I also want a rollover live filter effect on the trigger.

    Yes, you can trigger different slice contents on rollover from multiple other slices.
    It's easier to show than describe, so here is a sample file that does what I think you're looking for:
    (1) six buttons
    (2) each button has unique text
    (3) each button has a rollover state
    (4) unique text is displayed in the same place for each button on rollover
    Hope this helps!
    Dave
    Right-click and save the image below - it's a Fireworks source file:

  • Rollover text not rendering correctly in Safari 7.x

    Safari 7.x and my blog (NotNecessarilyPretty.com) are not getting along.
    Specifically, the rollover text in the post titles (see attached or visit site) is not rendering correctly. The right edge of the text does not change to the correct color. Have been in contact with Apple as well as the theme's developer, but have yet to be offered of a fix. 
    This blog displays correctly when accessed via Chrome or Firefox, and prior to Mavericks, Safari evidenced no problem.
    Thoughts on how to correct this?
    Thanks!

    The original screenshot didn't show here, so for anyone else reading, who may well know much more about CSS & Safari than I :
    changes to this - note the right edge
    But with word-spacing un-checked in Inspector...

  • Content cannot be displayed in a frame

    Hi there,
    I need your help as this is the first time I have run a server and Apple Care seems to be stumped by the issue. I am a complete novice at this.
    I decided to set up my own server to host email and my website. I have two domaine names: jeffhargrove.com and jeffhargrove.net.
    I set up the server for email and webservices for jeffhargrove.com. Then to test if everything was working, I first changed the dns of my .net domain to point to my server. I specified that jeffhargrove.net and www.jeffhargrove.net were alias of jeffhargrove.com.
    Under this configuration, email and the site www.jeffhargrove.net worked fine. I changed some text in one of the html files on my server to make sure that the site was loading off my server. It was.
    As everything was working, I then pointed jeffhargrove.com domain to my server. Email works fine and any mail that is addressed to jeffhargrove.net arrives in my jeffhargrove.com inbox. Mail alias seems to be working.
    www.jeffhargrove.com works fine, but www.jeffhargrove.net works partially. Pages load until there is a reference to "http://wwww.jeffhargrove.com/portfolios/.…html" This reference appears because iWeb uses an iFrame to load a slideshow that I created for my site. In Safari, the frame just does not load and there is an empty space where the slide show should be. In Firefox, it returns the message:
    This content cannot be displayed in a frame
    To protect your security, the publisher of this content does not allow it to be displayed in a frame.
    Apple Care did not know of any setting on the server that would prevent this from happening. The rep did not know about Apache modules which he said might be able to enable loading content in frames. I checked out the different modules available and cannot seem to find one that might resolve the issue. The rep did have me check all the permissions on all my web files and they seem correct.
    Would you happen to have any idea what might be causing this issue. My site was hosted on a commercial server service with the same files and same alias and worked fine. This leads me to believe that there is a setting on mac os x server that is preventing content in frames to be displayed.
    Thanks for any help you might offer!
    Jeff

    Apple Care called me back and gave me a solution to the problem after the tech researched a bit.
    New server software (from what version I do not know) changed the default display option of content in frames. By default it is blocked. There is no option to change this in the UI. The change has to done in an Apache config file. Here are the steps:
    First stop your web service in Server Admin from your admin account, then:
    1. Log into your server as root.
    2.In the finder, pull down the "go" menu and select "go to folder.."
    3.Type "/etc"
    4. Look for a folder called "apache2" and open it.
    5. duplicate a file called "httpdteamsrequired.conf" by renaming it or moving it to the desktop
    6. Open the file in TextEdit
    7. Find the string "x-frame-options"
    8. It will be located in a three line paragraph which begins with "<IfModule…." and ends with "</IfModule"
    9.Place a pound sign (#) at the beginning of each of the three lines.
    10. Save
    11 logout of root
    12 login into your admin account and restart web services in server admin
    Problem should be fixed.
    Jeff

  • Operate C# to modify PPT's hyperlink, while configuring the hyperlink's text to display attribute, the address value will be assigned as null. Anyone know this issue? Any solution?

    operate C# to modify PPT's hyperlink, while configuring the hyperlink's text to display attribute, the address value will be assigned as null.  Anyone know this issue? Any solution?
    How to reproduce the issue:
    1.Create a new PPT slide in Office2010.
    2. Insert a certain text/characters, such as Mircosoft blablabla,
    3. Insert an URL right after the text part , TextToDisplay is the “Test”,Address is the "Url".
    4. The content in the ppt is ”Microsoft Test“,here "Test" is the hyperlink which we would like to convert. Please execute the code we list below.
    5. The problem will be reproduced by the above steps.
    PPT.Application ap = new PPT.Application();
    PPT.Presentation pre = null;
    pre = ap.Presentations.Open(mFileName, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
    foreach (PPT.Slide mSlide in pre.Slides)
    PPT.Hyperlinks links = mSlide.Hyperlinks;
    for (int i = 1; i <= links.Count; i++)
    PPT.Hyperlink mLink = links[i];
    mLink.TextToDisplay = mLink.TextToDisplay.Replace(mLink.TextToDisplay,"url");
    mLink.Address = mLink.Address.Replace(mLink.Address, "url");
    Modify texttodisplay, the address vaule will be assigned as null. Anyone knows how to solve it?
    Does it caused by a PPT API's Limitation?

    I've tried the below code and it works, you can refer this article:
    https://msdn.microsoft.com/en-us/library/office/ff745021.aspx
    to find that the hyperlink needs to be associated with a text range, and thats what I did in the code below with the help of the link sent by Tony.
    Microsoft.Office.Interop.PowerPoint.Application ap = new Application();
    Microsoft.Office.Interop.PowerPoint.Presentation pre = null;
    pre = ap.Presentations.Open(@"C:\Users\Fouad\Desktop\abcc.pptx", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
    foreach (Microsoft.Office.Interop.PowerPoint.Slide mSlide in pre.Slides)
    Microsoft.Office.Interop.PowerPoint.Hyperlinks links = mSlide.Hyperlinks;
    Microsoft.Office.Interop.PowerPoint.Shape textShape = mSlide.Shapes[1];
    for (int i = 1; i <= links.Count; i++)
    Microsoft.Office.Interop.PowerPoint.Hyperlink mLink = links[i];
    Microsoft.Office.Interop.PowerPoint.TextRange range1 = textShape.TextFrame.TextRange;
    TextRange oTxtRng = range1.Find(((Microsoft.Office.Interop.PowerPoint.Hyperlink)mLink).TextToDisplay,After:range1.Start,WholeWords:Microsoft.Office.Core.MsoTriState.msoTrue);
    oTxtRng.Replace(((Microsoft.Office.Interop.PowerPoint.Hyperlink)mLink).TextToDisplay, "url");
    oTxtRng.ActionSettings[Microsoft.Office.Interop.PowerPoint.PpMouseActivation.ppMouseClick].Hyperlink.Address = "http://www.microsoft.com";
    Fouad Roumieh

  • How can I get rollover text to show pictures?

    The original flash has a publish setting to Flash Player 5, and I have to have the publish setting set to Flash Player 8 (actionscript 2). The original flash works with the Flash Player 5 setting however when I change it the rollover text to picture stops working.
    This is the first time I had to work with this and need some help. This is the Coding for the Content
    Content
    Coding
    Actions: Frame 1
    _quality="best";
        for (g=1; g<9; g++) {
        this[g]._visible=0;
    function menutest () {
        for (i=1; i<9; i++) {
            // Reset Lesson colors
            // myColorObject = new Color(this["l"+i]+[".myitem"]);
            // myColorObject.setRGB(0x020053);
            this["l" + i].gotoAndStop(1);
        this[i]._visible=0;
        // Set Lesson Colors
        // myColorObject = new Color(this["l"+i]+[".myitem"]);
        // myColorObject.setRGB(0xD7A550);
        this[testName].gotoAndStop(2);
         //trace ("testName"+ testName);
        swap = testName.substr(1);
        this[swap]._visible=1;
    Actions: Frame 280
    stop();
    checkanswers-, <info22>
    onClipEvent (load) {
        this._alpha = 0;
    onClipEvent (enterFrame) {
        if (ii <= 100) {
            ii += 2;
            _root.info22._alpha = ii;
        } else {       
            _root.info22._alpha = 100;
    //trace("ii" + ii);
    track 2, <l1>
    track 2, <l2>
    track 2, <l3>
    track 2, <l4>
    track 2, <l5>
    track 2, <l6>
    track 2, <l7>
    track 2, <l8>

    This is the coding for the Symbol Definition(s)
    Track 2
    Coding
    layer 3: frame 1
    stop();
    layer 3: frame 2
    stop();
    Symbol 159, <myitem>
    onClipEvent (load) {
        this._alpha=0;
    Symbol 159, <myitem>
    onClipEvent (load) {
        this._alpha=100;
    oh the text is on one side and the picture appears on the other side. the text stays on the background

  • I am getting "The contents cannot be displayed in a frame" error when tried to acces an external URL configured through launchpad(ESS). How to rectify it?

    Hi Guys,
    We have configured ESS role through launchpad. For viewing payslips we are using an external URL configured through launchpad.
    But when we try to access the configured link in ESS role, it displays "The contents cannot be displayed in a frame" .
    Should I need to change some parameters/settings in Launchpad so that I could overcome this issue.
    Guidance required,
    Regards,
    Ajeeth Kumar S

    Hi Shankar Reddy Chamala,
    Thanks for the alternate solution.
    But the solution you have provided also ended up with the same error
    "The content cannot be displayed in a frame" error.
    Some additional information so that you could help me out,
    The following is the test report .
    HTTP/1.1 200 OK
    Server: TIN-AppServer
    Strict-Transport-Security: max-age=15552000
    Cache-Control: no-cache, no-store, must-revalidate
    Pragma: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    x-frame-options: DENY
    Content-Type: text/html; charset=UTF-8
    Content-Encoding: gzip
    Content-Length: 2421
    Date: Thu, 15 May 2014 14:23:14 GMT
    Connection: keep-alive
    Vary: Accept-Encoding
    The tester has mentioned the yellow highlighted property may be a cause for this issue.
    I googled that the highlighted property is set by the website owners for security reasons.
    Shankar I have another doubt..
    Is it feasible to create an HTML document to open the external link and link the HTML document to the iview and then configure the custom iview with launchpad.?
    -->If yes can you please elaborate the steps for it.
    Thanks and Regards,
    Ajeeth Kumar S

  • Wrong character display on certain website

    Wrong character display on certain website
    On certain website like this or engadget i see all the character in a wrong way.
    I got the same problem on 2 different computer.
    The addons that i've installed are: FIREBUG, ADBLOCK, Java console.
    Any idea on how to fix this?
    Thank yoy in advance.
    Here a screen shot of what i see:
    http://img686.imageshack.us/img686/4527/wrongs.jpg
    == URL of affected sites ==
    http://

    This issue can be caused by the bitmap version of the Helvetica or Geneva font or another (bitmap) font that can't be displayed by Firefox in that font size.
    Firefox can't display that font in the specified size and displays gibberish instead.
    You can test that by zooming out (View > Zoom > Zoom Out, Ctrl -) to make the text smaller.
    Uninstall (remove) all variants of that not working font to make Firefox use another font or find a True type version of that font that doesn't have the problem.
    See http://kb.mozillazine.org/Issues_related_to_fonts#Gibberish
    See also [/forum/1/566006]

  • Read from server and display in external frame

    Hello everyone,
    I am using Eclipse, My project consist of server and client connected through a socket. When I connect to the server, i am getting lots of data from the server and it takes a bit of time, so I was thinking while the user wait for the data, i will pop up a frame with a text area displaying the data that the client is recieving at the moment.
    Basiclly, instead of just displaying the data recieved in the console (readline) i would like to display it in an external frame.
    something like this:
    JEditorPane textArea = new JEditorPane("text/html", "Getting All IDs");
    JScrollPane scroller = new JScrollPane(textArea,
    JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
         JScrollPane. HORIZONTAL_SCROLLBAR_AS_NEEDED);
    JOptionPane optPane = new JOptionPane(scroller,
         JOptionPane.OK_OPTION);
    JDialog d = optPane.createDialog(null, "Data Receiving:");
    myClient.readMsg(data);
    scroller.add(data, textArea);
    Please help.
    thx

    Hello,
    if you not receive HTML-pages or HTML-formatted text, i suggest to use JTextPane instead of JEditorPane, as formatting color and font seems to be a little bit easier to do.
    Next, i recommend to define a litte interface, ..
    public interface DataReceivedListener {
      void dataReceived(String line);
    }.. which then is implemented by the class the JTextPane is embedded into:
    public class MainFrame extends JFrame implements DataReceivedListener {
      private JTextPane textPane;
      private StyledDocument doc;
      private Style defaultStyle;
      public void dataReceived(String line) {
        if (!line.equals(DataServer.EOF)) {
          try {
            doc.insertString(doc.getLength(), line + "\n", defaultStyle);
          } catch (BadLocationException ble) { ble.printStackTrace(); }
    }Within the constructor of that main class you instantiate the style used for the received data lines and then pass this main class itself to the constructor of your server class:
    public MainFrame() {
      doc = textPane.getStyledDocument();
      defaultStyle = doc.getStyle("default");
      DataServer server = new DataServer(this);
    }The server class stores the listener, and when the server receives lines they will be forwarded to the main frame class:
    public class DataServer implements Runnable {
      DataReceivedListener listener;
      public DataServer(DataReceivedListener listener) {
        this.listener = listener;
      public void run() {
        while (null != (line = instream.readLine())) {
          listener.dataReceived(line);
    }You can easily change the line foreground color in dataReceived(String) by deriving other styles from defaultStyle:
    Style redForeground = doc.addStyle("red", defaultStyle);
    StyleConstants.setForeground(redForeground, Color.RED);
    Style blueForeground = doc.addStyle("blue", defaultStyle);
    StyleConstants.setForeground(blueForeground, Color.BLUE);This way you can switch the foreground color by passing the appropriate style to the text inserting method (see above):
    currentForeground = currentForeground == redForeground ? blueForeground : redForeground;
    doc.insertString(doc.getLength(), line + "\n", currentForeground);I could post an complete example of that, but i try to be short and hope this posting will help...

  • Add text to display when no records display

    In 'Building Reports' 21.6 which is 'Add text to display when no records display' a solution is given which involves putting boilerplate text underneath the group frame at the same level as the repeating group so that if there aren't any records retrieved the boilderplate text will be visible. My question is - is there an alternative method for achieving the same thing? i.e display the boilderplate text 'None.' if no records are returned. I have a report with a large number of frames & find the solution proposed messy & difficult to implement.
    TIA
    Simon

    The only thing you can do is make sure there is something to print. You could bas your report on a temp table which you populate with your select statement which you normally use in your report. Then after the table is populated you add the missing records in the temp table. Your report will be based upon the temp table.
    You can start this process in the after parameter form trigger by calling a PL/SQL procedure which will perform the business logic explained above.
    Marcos

  • Text not displayed in the Web Report

    Hi All,
    I have a query where user is expecting both Key and Text to displayed in the report for the Info object "Local Product High". This infoobject has text data available. But Iam not sure why this is not getting displayed even when I select both Key and Text in the properties screen.Only Key is getting displayed.
    Can some one throw some light on this.
    Regards,
    Srinivas

    I juct checked the Text table and I see the texts for the infoobject exists. I do not think CHange run will resolve this issue. but yes the master data is active .
    I will now try to run the report through Bex and come back.
    Thanks for the input..
    regards,
    Srinivas

  • Background picture n problem on display other JInternal frame

    beginer;
    this is my code below n i compile it n the picture display correctly, but it seems to hide other internal frame as well, what wrong with my code :(, the problem is been specified between ? symbols
    public class InternalFrameDemo extends JFrame implements ActionListener {
    JDesktopPane desktop;
    public InternalFrameDemo() {
    super("InternalFrameDemo");
    int inset = 50;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
    Toolkit kit = Toolkit.getDefaultToolkit();
    Image icon = kit.getImage("ADD.gif");
    setIconImage(icon);
    //Set up the GUI.
    desktop = new JDesktopPane(); //a specialized layered pane
    createFrame(); //create first "window"
    setContentPane(desktop);
    setJMenuBar(createMenuBar());
    //Make dragging a little faster but perhaps uglier.
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    ImageIcon image = new ImageIcon("abc.jpg");
    JLabel background = new JLabel(image);
    background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
    getLayeredPane().add(background, new Integer(Integer.MIN_VALUE) );
    JPanel panel = new JPanel();
    panel.setOpaque(false);
    setContentPane( panel );
    protected JMenuBar createMenuBar() {
    JMenuBar menuBar = new JMenuBar();
    //Set up the menu item
    return menuBar;
    public void actionPerformed(ActionEvent e) {
    else {
    quit();
    protected void createFrame() {
    Books frame = new Books();
    frame.setVisible(true);
    desktop.add(frame);
    try {
    frame.setSelected(true);
    catch (java.beans.PropertyVetoException e) {}
    protected void quit() {
    System.exit(0);
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    catch (Exception e) {
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    InternalFrameDemo frame = new InternalFrameDemo();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Display the window.
    frame.setVisible(true);
    tanz.

    This might be what you are trying to do:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    public class TestInternalFrame extends JFrame
         ImageIcon icon;
         public TestInternalFrame()
              icon = new ImageIcon("????.jpg");
              JDesktopPane desktop = new JDesktopPane()
                 public void paintComponent(Graphics g)
                      Dimension d = getSize();
                      g.drawImage(icon.getImage(), 0, 0, d.width, d.height, null);
              getContentPane().add( desktop );
              final JInternalFrame internal =
                   new JInternalFrame( "Internal Frame", true, true, true, true );
              desktop.add( internal );
              internal.setLocation( 50, 50 );
              internal.setSize( 300, 300 );
              internal.setVisible( true );
         public static void main(String args[])
              TestInternalFrame frame = new TestInternalFrame();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(400, 400);
              frame.setVisible(true);
    }

Maybe you are looking for