How will I put a background Image in a JPanel?

Can you help me on how will I put a background image in a JPanel?
And also in a JDeskTopPane?

Hint:
Search the forum using two keywords in your subject. This question had been asked many times.

Similar Messages

  • How can I put a background image in headers in PAGES

    It seems I cannot put a background image in headers. I want a background gradient to go behind the text. I have to place it on the "page" "behind" the header on every sheet instead. Other than creating a graphic that is both (bitmapped) text and image, what can I do? Or is there some way to create an object that has edittable text over the image. Thanks, Peter

    If you are referring to Pages app, it is easy:
    Open your document
    Go to Menu >> View >> Show Layout
    You will see headers, body and footers laid out with edges
    Click inside the header
    Open  your Media browser
    Drag your graphics (or photo) into the header
    Be sure to PRESS AND HOLD COMMAND (APPLE) KEY while you do this!!!
    If you don't pres the key, the picture will be pasted outside the header!
    I think the Command key press was what was screwing you up here...
    This applies to Numbers and iWeb as well, BTW

  • How can I put a background image into the cell of a table using Dreamweaver CC.

    I want to place an image in a table cell and then be able to place editable HTML in the same cell on top of image. I also have Dreamweaver CS6. I can't get either one to do it using solution I found searching on web. Please help ASAP. What am I doing wrong. Example code would be great. Thanks!

    No tables required for any of this.  You simply need a 3-column starter page. 
    In DW, go to File > New > Blank page > HTML. 
    Select a 3-column layout from the 3rd panel.
    Hit Create button.
    Learn to use CSS floats, margins and padding to align elements.  DO NOT use positioning.
    Start with & bookmark these links for future reference:
    CSS Box Model
    http://css-tricks.com/all-about-floats/
    CSS Float
    Floatutorial: Step by step CSS float tutorial
    CSS Margin
    CSS Padding
    Nancy O.

  • How can put a background image in a simple_text?

    hi,
    i've alredy builded a page with tabs on it. in one of these tabs-sites i puted
    a simple_text. now my question: how can i put a background image in that
    simple_text?
    i already tried to put it in the HTML code but it doesn't work.
    i'm able to insert images to a area as a simple_image so my pathes are working.
    thanks for help

    You cannot set the background image for a simple text directly. But you can
    1. create a style, and define the Background image for this style
    2. edit the region which the simple text item is on, set the region style to be the one you created on (1)

  • How to put the background image in Title Window?

    Hi,
    I'm newbie in flex. I 'm using Flex 4.
    Can anyone give me some guidelines on how to put the background image in Title Window?
    Is it possible to do this?
    Thanks.

    Hi,
    Check the below sample code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|BorderContainer {
                background-image:Embed(source="image/wheres_the_green_rez.jpg");
                background-image-fill-mode:clip;
        </fx:Style>
        <s:TitleWindow width="100%" height="100%">
            <s:BorderContainer width="100%" height="100%"/>
        </s:TitleWindow>
    </s:Application>
    Regards,
    Anitha

  • How do I change the background image for a single tab on the navigation bar

    I'm creating a movie website for TDKR and for the navigation bar, I intend to have a different character for each tab. However, I'm having trouble putting a single image each separate tab. Instead one image appears on each of the tabs. Here's an example of the source and CSS.
    <td width="200"><ul id="navigation"><br />
          <li><a href="../pages/index.html">Home</a></li><br />
          <li><a href="../pages/cast.html">Cast</a></li><br />
          <li><a href="../pages/pictures.html">Pictures</a></li><br />
          <li><a href="../pages/soundtrack.html">Music</a></li><br />
          <li><a href="../pages/interview.html">Interviews</a></li><br />
          <li><a href="../pages/links.html">Links</a></li><br />
        </ul>
        </td>
    #navigation {
              list-style-type: none;
              padding: 0px;
              margin: 0px;
    #navigation li {
              margin: 0px;
              padding: 0px;
              list-style-type: none
    #navigation li a:link, #navigation li a:visited {
              display: block;
              width: 200px;
              height: 100px;
              text-decoration: none;
              text-align: center;
              line-height: 100px;
              font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
              font-weight: bold;
              -webkit-transition: 1000ms ease;
              -moz-transition: 1000ms ease;
              -ms-transition: 1000ms ease;
              -o-transition: 1000ms ease;
              transition: 1000ms ease;
              color: #648AAE;
              background-repeat: no-repeat;
              background-image: url(../Images/gifs/Batman-still-2.gif);
              background-position: center bottom;
              text-transform: uppercase;
              letter-spacing: 0.79em;
              border-radius: 5px;
    #navigation li a:focus, #navigation li a:hover, #navigation li a:active {
              color: #000000;
              background-image: url(../Images/gifs/Batman-animation-2.gif);
              background-repeat: no-repeat;
              background-position: center bottom;
              background-color: #454545;
              border-radius: 25px;
    So, how do I put a single image on each tab (home, cast, pictures, etc). Thank you for your help in advance.

    Assign a class to the item and use CSS to apply an image as in
    <li><a href="../pages/index.html" class="home;">Home</a></li><br />
    <li><a href="../pages/cast.html">Cast</a></li><br />
    <li><a href="../pages/pictures.html">Pictures</a></li><br />
    <li><a href="../pages/soundtrack.html">Music</a></li><br />
    <li><a href="../pages/interview.html">Interviews</a></li><br />
    <li><a href="../pages/links.html">Links</a></li><br />
    and the CSS
    #navigation li a:link.home, #navigation li a:visited.home {
         background-image: url(../Images/gifs/Batman-still-2.gif);

  • In Aperture, how do you put a background layer behind text?

    How do you put a background layer behind the text to offset the color of the pic from the text color? Right now, some pics have whites and blacks that drown out the text, making it hard to read...

    I forgot: if you rather want to add a background instead of changing the color of your text:
    To add a background behind a texbox,
    simply edit the layout (Click "Edit Layout", click "+") and add a Photo Box;
    drag the PhotoBox behind your text field.
    click "edit content" and add a picture to the background box.
    You'll need to import a suitable background photo, or crop some suitable background from one of your images.
    Regards
    Léonie

  • How do you set a background image in Pages?

    I have a simple question. How do you set an image to be the background of a Pages '09 document? How do you put a JPG image behind your regular body text? Surely it's possible, but I can't figure out how to do it.

    You just didn't took care to the status of your picture.
    It was an inline one
    Change its status to floating and the menu item is no longer grayed.
    This kind of features are described in Pages User Guide which is also for you
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 22:40:00
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • On FCP7, how can I put down an image say at 1 minute in, and then have it stay put as I adjust what's in front of and after it?

    On FCP7, how can I put down an image say at 1 minute in, and then have it stay put as I adjust what's in front of and after it?

    Put the scene that you want to stay in one place on the timeline on a video track above the one you are editing, in the location you want it to be on the timeline, and then lock the track.
    MtD

  • How to I add a background image in an Encore slidehsow?

    How do I add a background image in an Encore slidehsow? Currently the slideshow has a black background and I would love to be able to change that to an image.

    You can always fire up Premiere (or Photoshop) and create images with whatever background you choose.........

  • How can I stretch a background image in label?

    Hi,All
    How can I stretch a background image in a label?
    public void start(final Stage primaryStage) {
                 final Label lbTest = new Label("My Test Label");
                 lbTest.setAlignment(Pos.CENTER);
                 lbTest.setTextAlignment(TextAlignment.CENTER);
                 lbTest.setStyle("-fx-background-color:red;-fx-background-repeat:stretch;-fx-background-position:center top;-fx-background-image:url(\"http://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/BlueMarble-2001-2002.jpg/640px-BlueMarble-2001-2002.jpg\");");
                 final HBox hbox = new HBox();
                 hbox.setId("MyRootPane");
                 Button btnLeft=new Button("Left Button");
                 Button btnRight=new Button("Right Button");
                 hbox.getChildren().addAll(btnLeft,lbTest,btnRight);
                 final StackPane layout = new StackPane();
                 layout.getChildren().add(hbox);
                 Scene scene = new Scene(layout, 600, 320);
                 lbTest.prefWidthProperty().bind(scene.widthProperty());
                 lbTest.prefHeightProperty().bind(scene.heightProperty());
                 primaryStage.setScene(scene);
                 primaryStage.show();
        }this code doesn't work,if I deleted css -fx-background-repeat:stretch;the background image stretched but repeated,I want to let the background image stretched and no-repeated,it can be stretched with the resizing window automatically.

    Try -fx-background-size: stretch;

  • Can I put a background image in Form?

    Hi all,
    I want to put a background image in Form. If my Form has only the background image, i can do it. But, if i put on my Form other items such as StringItem, etc. , i can't put my image as a background image. I think that i must create a custom Form by Canvas class, but i don't like that. Can you help me? Thanks a lot!

    Hi there,
    You can do so with the J2ME Polish GUI:
    http://www.j2mepolish.org
    You can use images or even animations in the background, animate and design the items and so on.
    All the best,
    Robert

  • Trying to put a background image into my div but it closes out. What gives?

    I keep trying to put a background image into my div but it always closes out when I try to pick an image from the browse button and then I get the spinning colored wheel of death. I've tried it on the CSS Designer Properties section and in the Properties Box on the bottom of the layout.

    Could be a memory issue. Try closing Dreamweaver and re-start your computer.
    Nancy O.

  • How will Aperture treat Nikon raw images which have been enhanced using Capture NX2 software?  Some are cropped and "developed" and some have been enhanced using the control point technology.  I have NIK sw as a plug-in in aperture.

    How will Aperture treat Nikon raw images which have been enhanced using Capture NX2 software?  Some are cropped and "developed" and some have been enhanced using the control point technology.  I have NIK sw as a plug-in in aperture.

    Actually, there is a Nik/Nikon connection — but I am pretty sure it is irrelevant to the OP's question. The connection is that Capture NX2 was written as a joint venture between Nikon and Nik. (The name similarity is a coincidence.)
    Capture NX2 is a cool program that incorporates the features of Nik's Viveza and Nikon's Raw processing engine, along with some other powerful image adjustment features. It provides, like Aperture, a losses workflow. Unlike Aperture, the adjustments (Edit Steps in C-NX terminology) are saved in the original NEF file along with the un-altered raw data. Multiple versions can be saved in a single NEF.

  • How to put a background image in coldfusion page?

    Hi all,
    I have created number of coldfusion pages,i would like to have a background image for them either unique or different images.
    So i have created a style.css and added a line for background image like
                        background-image: url(/images/nature.jpg);
    But it doesn't works.
    Even i tried this by giving in head section of all my cfm pages but it doesn't work.
    Also i have used
    <head>
         <style type="text/css">
              html {overflow-y:hidden;}
              body {overflow-y:auto;}
              #page-background {position:absolute; z-index:-1;}
              #content {position:static;padding:10px;}
         </style>
    </head>
    <body>
         <div id="page-background"><img src="images/sri.jpg" alt="Smile"></div>
             <div id="content">
                  This is body content
             </div>
    </body>
    but the alt value 'smile' only appearing not the image.
    I'm working on CFBuilder.
    Both firefox and IE not displaying the image
    Any help appreciated,
    Chandru P

    The fact that this is in a CF template is neither here nor there (other than the caveat about # as the other person said).
    All CF does is generate mark-up.  The mark-up is sent to the browser, and the browser renders it.  So if your browser isn't rendering your image assets, it's because it can't find them.
    I suspect your URLs are wrong.  Are you getting 404s for the image URLs?
    One thing to bear in mind is that URLs to resources are not relative to the CFM template they're in, they're relative to the URL the client requested, which are not necessarily (indeed very infrequently ~) the same.
    Adam

Maybe you are looking for

  • How to change the status of clinical order header

    Hi all, I need to change the status (N1CORDER-WLSTA) of the clinical order header. I have found the way to change the status of the items and it works, but i dont know how to change the header status. Now, for the items i do: 1- Create an object type

  • Power Supply Help

    Hey, I'm building a new computer. The specs are as follows: CASE: Aero Cool Jetmaster Mid Tower ATX MOTHERBOARD: Gigabyte GA-K8NF-9 NVIDIA nForce4 4X (Socket 939) CPU: AMD Athlon 64 3000 (Socket 939) MEMORY: PC3200 400MHz 1 Gig (2x512 Meg) 184pin DDR

  • Podcasts in itunes not showing up in podcasts

    I have podcasts in itunes, they are not synch'd to the podcasts folder (for lack of better word) on the ipod. they show up in the main playlists. Anyone have any idea why? or how to solve?

  • Inconsistent positioning of MovieClips

    I need a grid of display objects (50x50 pixel squares) that I use an AS3 script to create as a two-dimensional array. I have already confirmed with the AS3 forum that the code works when the objects displayed are not MovieClips. However, the position

  • Adobe Falsh Player not installing

    I have the latest version of Adobe Flash 11.6. I need Adobe Flash for online classes. I am confused why Adobe keeps asking me to install the latest flash player when I have downloaded it many times previous? My operating system is Windows.