How do I put an image in the background of a JDesktop?

I have made a program that has a JDesktop. Just need to know the coding to put an image in the background of the JDesktop. Any suggestion?

Add a JLabel that holds a picture to it. Make sure it's in the back layer.

Similar Messages

  • How do you set a image in the background of a JTextfield?

    How do you set a image in the background of a JTextfield? Any ideas?

    You can't thats why it is called textfield!!!
    Take a look at JScrollPane API for this

  • How do you set an image into the background of a JPanel or JFrame?

    How do you set an image into the background of a JPanel or JFrame?

    Something like this, Ive thrown in an ImageIcon on a
    button too for good measure.
    import java.awt.*;
    import javax.swing.*;
    public class JFrameImage extends JFrame {
    public JFrameImage() {
    Container c    = getContentPane();
    JPanel panel = new JPanel(){
                 public void paintComponent(Graphics g)     {
    ImageIcon img = new
    = new ImageIcon("background.jpg");
                      g.drawImage(img.getImage(), 0, 0, null);
                      super.paintComponent(g);
            panel.setOpaque(false);
    ImageIcon icon = new ImageIcon("onButton.jpg");
    JButton button = new JButton(icon);
    panel.add(button);
    c.add(panel);
    public static void main(String[] args) {
    JFrameImage frame = new JFrameImage();
    frame.setSize(200,200);
    frame.setVisible(true);
    Going totally fancy pants
    ImageIcon bigImage = new ImageIcon(bgImage.getImage().getScaledInstance(getWidth(), getHeight(),Image.SCALE_REPLICATE));
    g.drawImage(bigImage.getImage(), 0, 0, this); Will scale the image to the size of the panel
    whereas
    for (int y = 0; y  < getHeight(); y = y + image.getHeight(null))
    for (int x = 0; x< getWidth(); x = x + image.getWidth(null))
    g.drawImage(image, x, y, this); Will give a tiled effect
    Try tiling with an animated gif and bring your processor to a standstill.

  • In the new Pages, how does one send an image to the background (and make it selectable)?

    How does one send an image to the background in the new Pages and how does one make it selectable?

    Also why don't TEXT to Speech short cuts established in system preferences work in the new Pages?
    I am confused (and not completely happy)

  • Login page - putting an image in the background

    Hi,
    Is there a way to put an image in the background of the login page...?
    right now my login page is plain and white... I am looking for a way to put an image in the background to show some colors
    Thanks

    In APEX the presentational aspects of an application are controlled using a combination of (X)HTML and CSS via themes and templates. These determine the appearance of things like labels, and you're advised to become familiar with them to make best use of APEX.
    There are 3 ways to include CSS in web pages. In this case the easiest is using an internal style sheet. Add a <tt>&lt;style&gt;</tt> element containing the required CSS rules to the HTML Header property in the APEX Page Attributes:
    <style type="text/css">
      Your CSS rules go here
    </style>

  • Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Thanks for responding!!!  Please help.  In last years pages version it worked great!!!
    Pages: 5.1
    OSX: 10.9.1
    Template:  Just a Blank.  I am working on a document that I created last year.  Now just making edits.
    Ben

  • How do I put a picture in the background on Pages

    I must be having a senior moment!   In the past I have made a poster in Pages and put a picture in the background and text over the top.
    I have just tried to do it again and can't for the life of me remember how to do it.   I do have a new version of Pages which has confused me slightly.
    Any help would be much appreciated.
    Kathy

    Menu > Arrange > Section Master > Move object to Section Master
    You also should still have Pages '09 still in your Applications/iWork folder
    Pages 5.5.3 has over 100 + features missing and is comparatively buggy.
    Peter

  • How can I put an image in the page header so that it will be repeated on every page?

    Hi to everyone!
    I want to create a Pages template with the logo of our company in the page header.
    I'd like to put that image (logo) in the page header so that it will be repeated on every page but it will not modify the content of the page.
    Anyone know how to achive this, or something similar without have to copy-paste that image every time we add a page to the document?
    Thanks in advance

    Takashi,
    Turn off the Page Headers (not absolutely necessary, but since you don't need it, why not)
    Put your Graphic on the page and make the following settings:
    Then Insert > Text Box and make the same settings as for the graphic.
    Place your "Header text" in the text box and arrange the box and graphic as you want them. Move both to Section Master using the Arrange menu.
    Jerry

  • How do I put an image on my podcast in the itunes store?

    How do I put an image on my podcast in the itunes store?

    The image which appears in the Store page is referenced in the 'itunes:image' tag in the feed. As you are probably using a program or an online service to create your podcast, rather than hand-writing the feed, you will need to look in their Help to find out where you input the image or the reference to it.

  • How to put an image in the popup help of a page item?

    I am using APEX 2.2. I want to put an image in the help text of a page input item.
    This is the help text:
    Some help text....
    <p><img src="&APP_IMAGES.auto_lov.jpg" /></p>This is rendered as:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=0&p_flow_id=103&p_fname=auto_lov.jpg" /></p>As you can see, the application id is not returned.
    If I put exactly the same text in a html region, the image is correctly displayed:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=844129086577364&p_flow_id=103&p_fname=auto_lov.jpg" />So, is it possible at all to put in image in the popup help text of a page item?

    I solved it by putting the jpg file in an images directory on the web server instead of in the database. Not really what I want, but it works.
    <p><img src="&IMAGE_PREFIX./apps/auto_lov.jpg" /></p>

  • How do I put an image in a spry tabbed panels tab

    Hello All,
    I am currently working on a site with Spry Tabbed Panels.
    One thing I'm not sure how to do is to put an image in each of the selecting tabs. I've done it before and I've forgot. I also have a site with an example of what I would like to do.
    http://emilymagnuson.com
    The tabs on this site were created with images inside of them. And I would like to know how to do it. I would like to make it work so the image changes when you click, hover, and deselect.
    Thank you.

    To put an image in the foreground, add it to your HTML code:
    <li class="TabbedPanelsTab" tabindex="0">
    <div style="margin-top:9px;"><img src="your_image_here.jpg">Contact</div>
    </li>
    Nancy O.

  • How do i put a cover on the album when the album isnt a part of the itunes store?

    How do i put a cover on the album when the album isnt a part of the itunes store?

    fishmore wrote:
    BUT the image didn't actually work and all I ended up with was the word JPEG and a generic image... Any assistance would be appreciated - Thank you.
    Sounds like you copied an icon from the icon spot in a Get Info window for an image file, then pasted that intoo the same spot in the Get Info window for your folder. As you found out, that won't work - unless the image file already has a custom icon, that is.
    Visually, it's hard to tell if an image file has a custom icon, particularly if View Options for a folder (or the desktop) has been set to 'show icon preview' - the OS will use Preview to make an icon for that file 'on the fly', but it does not really exist as far as being a copyable icon.
    For what you want to do, the solution is really very easy.
    Do a Get Info on the image file whose icon you want to copy for your folder. In that Get Info window is a larger depiction of the image about halfway down - double-click that, and it should open in Preview.
    Press Command-A (that's Select All in the Edit menu).
    Press Command-C (that's Copy in the Edit menu).
    Close Preview, close the Get Info window for the image file.
    Open the Get Info window for your folder.
    Select the icon in the upper left by clicking it once - a blue border should appear around it.
    Press Command-V (that's Paste in the Edit menu).
    Close the Get Info window, and you're done.
    Comment - that's a nice way to make unique folder icons, but there is one drawback: how to distinguish visually between a folder with such an icon and an image file.
    One way, old school, is to append the character ƒ to the end of the name you give the folder. That character is easily generated by pressing Option-F and can be a visual indicator that the item is actually a folder and not an image.

  • How can I put another image without its associated sound on an audio (without its image) ?

    IMovie 11 : how can I put one image without its associated sound on an audio (without its image) ? thanks

    Hi
    As iMovie doesn't orient after Time - but only after Video/Photo clips is this not so easy to do.
    I use black photos as Dummy clips - and put them into a new project first
    then I add the Music I want
    Then I drop the Video-clip (that I realy want) ontop of the black dummy photo - Where it's supposed to be - THEN IF advanced tools are selected (in iMovie preferences) there will be a Drop-Down menu and here I can select to do a Cutaway - and select not to add the audio from it (or in wave-form just silence it out)
    Yours Bengt W

  • How can I put an image onto a postcard format?

    How can I put an image onto a postcard format?

    By postcard format do you mean crop the picture into a postcard shape?
    If so, here is one way: Activate the Rectangular Marque tool. Set Style to Fixed Aspect Ratio, and enter the dimensions for Width & Height. In this example I used a standard postcard size of 6" x 4.25".  Open your picture, draw out the rectangle, and Image > Crop. The picture will now be in the 6 x 4.25 proportion.
    To get it to the actual 6" x 4.25" size, do Image > Resize > Image Size. Check the Constrain Proportions Box, and enter either the true Width or Height; the other dimension will change accordingly.
    If this is not what you are trying to do, please be more specific.

  • How can I put an image of a painting centered on to a blank 4x6 postcard?

    How can I put an image of a painting centered on to a blank 4x6 postcard?

    moopartist wrote:
    How can I put an image of a painting centered on to a blank 4x6 postcard?
    Go to File>new>blank file. Enter the dimensions, background color to suit. For resolution, it's best to have the same value as that of the image. For printing, it is desirable to have the resolution in the 240-300px/in range, although I have printed below this range.
    Open the file with the painting. Use one of the selection tools, e.g. selection brush, lasso tool, and select the image.
    Go to Edit>copy
    Open the blank file
    Go to Edit>paste. The selection will come in on its own layer
    Use the move tool to position, and, to resize (if necessary) with the corner handles of the bounding box.

Maybe you are looking for

  • Weblogic and Tuxedo server : Security Audit Logs

    In our application we are using the weblogic server 7.0 and Tuxedo server 7.1 (to improve performance). When the user logged in to the application, the security logs are captured from tuxedo. Can anyone tell us, how the auditing can be enabled in sec

  • Mapping Samples on EXS24

    Hi. I've just moved from Gigastudio/cubase/pc to Logic/Mac and I'm having trouble using new ESX24 samples I'm installing onto the ESX24 sampler. The notes are not mapped out properly across the keyboard - it only seems to use/see two of the samples w

  • I can't get Xbattery to launch

    I have a new 6600mH battery and it only lasts 4:30 without using anything except the finder and Xcharge. I want to investigate the details on this battery, so I got Xbattery because it was the most detailed one I could find to work with 10.2.8. I'm h

  • Get a sleeve for my mac

    Can someone give me a choice

  • Drill Down - Total is editable

    Hi, In the DP, I am using the DET_LEVEL() to check if there is a drill down for particular infoobjects, e.g., 'Customer' and 'Product' then only the Key figure should be editable. The macro is set under 'Default' option (best I could find) It works f