Image in a JDesktopPane background

Is it possible to paint an Image in a JDesktopPane background ??
how can I get it ?

take the ImageIcon containing the image and add it to a JLabel.
ex:
ImageIcon icon = new ImageIcon("yourImage.?")
JLabel label = new JLabel(icon)
Next take the label and stick it to a lower level the pane containing your components.
ex:
(yourJPane).getLayeredPane().add(label, new Integer(Integer.MIN_VALUE))
also make sure the JLabel is the size of the image.
ex:
label.setBounds(0, 0, yourImage.getIconHeight(), yourImage.getIconWidth());
make sure your panel is non-opaque and it should work
ex:
((JPanel)getContentPane()).setOpaque(false);
I may not have the code examples exactly right but your answer does lay in the JLayeredPane realm.
-d

Similar Messages

  • How to save transparent background images to have transparent background thumbnails with Photoshop 2014?

    In old versions of Photoshop there was a feature that made thumbnail images have a transparent background.  I'm a CC member using Photoshop 2014 on a MacBook Pro running OS X 10.9.4 and every thumbnail of a transparent background image I've created in Photoshop 2014 appears on my desktop with a solid white box background that has a thin black outlined box inside of it.  How do I save the transparent background images I've created in Photoshop 2014 so they will appear on my desktop as thumbnails with a transparent background?   I'd like to continue to be able to replace the default background-less folder icon that that appears on files with transparent background thumbnails to customize my files as I use to do with older versions of Photoshop.

    If your layered document has a Photoshop background layer it visibility need to be set off when saving a PNG or Gif file for Photoshop background layers do not support transparency.
    Thumbnail may be a bit more complicated than you think. I do not use Lightroom, and only occasionally use the bridge.  I believe Lightroom and Bridge  keep thumbnails they develop for image files  in their library databases and caches.  Other programs do not have acces to  these.  RAW Files and Image files have Jpeg previews stored in then.  I believe most application use these previews jpeg to create thumbnails.  Jpeg format does not support transparency.
    Icon on the desktop are not always thumbnails some are embedded icons in application modules other are icon in dll these may well have transparency. However image file on the desktop have generated thumbnails.  However you can create a shortcut for an image png file and create a icon with a transparent background for the png file and change the shortcut's icon for the png file to the transparent ico file you created for it.
    Also many Photoshop release ago an Adobe module created Thumbnails for image files in Windows File explorer and most likely system file dialog. Adobe stopped supporting that stating Microsoft changes how windows works.
    Today I use FastPictureViewer Codec Package to generate image thumbnails for image files including RAW and PSD files in File Explorer and system file dialogs.
    I don't use a Mac don't know what available for your Mac.

  • Keeping image in place while background moves?

    Title may not be the best... I have video I am working on that only uses still images that I move by zooming and such... My background zooms out during the video, and I would like to keep an image placed on the background (some flags for the top of arch) As the background moves my images are not moving with the background and get out of place, and ideas? I'm sure this is a simple one and I know how it is done with a video using motion tracker of course I can't use motion tracker for this one, I also know i can key frame the flags in position but anything easier would be best. Thank you!

    Because your source materials are still images, it may be very easy to composite these elements in a single precomp/nested comp, then move the entire precomp as a whole.
    If none of your elements move until you put position/scale animation on them, you could create the flag+castle composition in Photoshop. That might be the easiest way.
    If you have already created the "zooming" animation on the background layer and want to be sure that other layers animate similarly, you can parent multiple layers to the background (animated) layer. By opening the "Parent" column and linking the child (flag layer) to the parent (background), you'll be able to edit the flag even though it follows the animation of the background.
    Parenting and Child Layer Resources on Adobe

  • Making a image have a transparent background

    I was given a image and asked to use it as a logo for a website. It is a black image with a white background. How do I get a transparent background so I can post the image on a web page and only see the image and not the white background it has? I am using photoshop elements 5.0. Thanks.

    For me, best solution for extracting an image from its background is using a terrific plug-in for Photoshop and Photoshop Elements. It's called GML Matting. It's free, functions flawlessly and you can create some amazing images with it. I save the extracted images with transparent backgrounds as PSDs.
    You can download it here: http://research.graphicon.ru/image-processing/gml-matting-6.html
    Select the latest version from the menu. After it's installed, you'll find it at the bottom of the Filters pull-down.
    I've used it with Elements 2, 5 and 7.
    How well does it work? You can decide. I took two photos, one of my Jeep parked in a parking lot, overlooking a quiet bay. Then I took another photo of the rough surf on the ocean side of the island. Using Elements 5 with the GML Matting plug-in, I extracted the Jeep and its shadow and dropped the image onto the photo of the surf. It took about 30 minutes to clean up edges (using various Elements tools). When completed, the resulting image is virtually impossible to detect as a composite.
    Here's the finished image: http://home.att.net/~historyworld/OceanBeachJeep.jpg
    You can see a review of the plug-in and see the images to create my composite by scrolling through the linked thread below (on the Photocamel forums). http://photocamel.com/forum/image-editing-color-management/48945-free-background-removal- software.html

  • How to use an image as my form background in form central

    how to use an image as my form background in form central pls help me....

    Unfortunately this is not supported but you can submit a feature request on this form FormsCentral Ideas.

  • Photoshop images dont have transparent backgrounds when published!!!!

    Aloha,
    this happens to me continuously- I take an image and remove the background in photoshop, using the magic eraser tool. I drop that image into my iweb page, the background is transparent. I publish it, and it has a black box around it. Here is my example-http://www.blueskystyling.com/Site_3/Welcome.html
    Can anyone help me get rid of that durn black box?
    thanks in advance for your help!
    aloha, C

    It's still a jpg. In the Save for Web select the PNG-8 option under Preset with PNG-8 128 dithered in the drop down menu.
    Click to view full size

  • How can I use an image as a folder background on icon

    vista updated firefox - how can I use an image as a folder background for an icon of that folder (for desktop)

    This is not a Firefox related issue or Firefox setting etc. This is a windows or OS setting, I provided the link below on how to change this in Windows Vista.
    See:
    '''[http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/how-do-i-change-the-folder-icon-in-vista-to-one/01261170-4e02-4c4b-8c02-141d1524ad3e?auth=1]'''

  • How do you make an image have a transparent background?

    i brought an image from PS into Illustrator and i want to put it in AE and use the puppet tool. however, when i bring it in it has a white background, but i just what the object i am going to puppet, so how do i do that?

    AE does not require an image to be sent through Illy first. Just make sure your image has a transparent background and/or an alpha channel if need, then save as a psd file. In AE bring the psd file in as footage, unless you need a compostion and folder for the psd created in the project list. You should then be able to use the puppet tool on an image with a transparent background.

  • Fade image to a black background

    hey guys,
    im trying to fade an image to a black background. i was able to fade the image from a few tutorials but not quite how i want to. i want to the image to fade into the black background. i was able to get the image to fade but its fading into a bright white. hopefully this is a quick one for one of you out there
    thank you
    jon

    I'm not sure if i understand exactly what You are trying to do, but if You change the "mode" from "screen" to "normal" and drag the pointer from left- to right (or remove the "reverse" and drag from the right to left) I'm sure it's about what You are trying to do.
    Another way is to paint "the edges" with a large soft brush in the same color as the background.

  • Superimposed jpg image comes with unwanted background

    hi.
    I cut out an object from a jpg image and made a new jpg image with transparent background. Tested it on image editing program - the background is indeed transparent.
    However, when i try to superimpose the image with transparent background on a video in PrE, the image is shown with a white background.
    How do i remove that unwanted white background?

    Great news!
    In many Image editors, Transparency is not clearly deliniated, and it just looks white. With display settings in Photoshop, Transparency will be shown as a checkerboard pattern, but when one does a Save_As to JPEG, that clearly goes white, alerting the user to the lack of Transparency in the JPEG.
    Good luck, and happy editing.
    Hunt
    PS - When you get your plane crashing into the tree, please post a link to YouTube, Vimeo, etc., so that we can see it.

  • Why does flattening image result in locked background?

    When I flatten an image, Photoshop automatically creates one background layer and locks it. How can I set Photoshop to default to NOT locking the background?

    Many Thanks to Welles Goodrich (his post wasn't showing up here when I typed this, for some reason) who said:
    "Presuming you don't have a background layer when you wish to 'flatten,' use the Layer > Merge Visible command rather than Flatten Image. A flattened image always has a background (locked) layer. Why? That's just the way it is. If you want to create a new image without a background layer choose Transparent from the "Background Contents:" menu from the New dialog."

  • How to create image slice with transparent background without white halo around?

    Hi, I want to make slice image with transparent background. I set the slice option background color to my background color. But when the image is on my html page set against the same background color, it has white halo around:
    How can I get rid of the white halo?
    I need the slice image to have transparent background and not have a color background because it's going on a rollover button with the background change. I don't want it to look like this on rollover:

    >it looks to me like you built it with that "halo" to start with.
    No, I didn't put in the halo myself. The shape is a character from the Webdings font. It's set to some darker fill color and set on a transparent background. Photoshop put the white halo there after "Save For Web".
    > Make your graphic on a transparent background and Save for Web
    I did exactly that, see:
    I set the slice background to my color. I try the Matte option and come out the same with white halo.
    It seems I'm not making Photoshop antialias to my background color, instead Photoshop just antialias to white.
    What else do I need to do?

  • When I copy an image with a transparent background into an image editing program like Photoshop, I get a black background

    I'm wondering if there's a way to preserve transparency, or even change the color of the background to white.
    I often need to get reference pictures for my artwork, and it is a pain to have to save every image and the black background often makes it difficult to see the image, especially when the image has only black pixels.
    Help?

    You can try to drag the image in a Photoshop window instead.<br />
    If that still doesn't work then you need to save the image and open it in Photoshop.

  • How to use an Image as JPanel's background

    I want to use an Image as my JPane background, how can I do that? anyone will be kind to provide some sample code?
    Thank you, please help
    Emily

    Do you want to tile the image or scale?
    The simplest way I can think of would be to extend JPanel and override paintComponent(Graphics g) to either tile the image or to scale it over the panel.

  • Import an image as a canvas background

    I have been trying to import a gif image as a canvas background
    for a web forms application and am having a lot of trouble.
    Hopefully someone can help.
    I am running a SunOS 5.6 server,
    Windows NT client,
    Developer 6.0,
    Forms 6.0
    We have set up the FORMS60_OUTPUT and FORMS60_MAPPING
    variables. There is no trailing / in their defintion and TMPDIR
    is not set. I use the file -> import -> image command to import
    the image. It shows up in the forms builder window, but when
    deployed to the web it shows a broken image icon. The forms
    server is doing something, since a jpeg of my image gets written
    to the directory specified in FORMS60_OUTPUT, it just doesn't
    show up on the form.
    It is my understanding that the image is stored in the fmx . . .
    the online help says:
    "Graphic Objects: A graphic object is a static image (either
    vector or bitmap) that you import from the file system or
    database and use as a static graphical element in your
    application. Graphic objects are often used as background
    pictures. When you save and compile a form module, graphic
    objects are incorporated into the .FMB and .FMX files. You can
    manipulate graphic objects in the Layout Editor as you would
    other objects."
    But just in case I put a copy of the gif into the directory that
    the fmx is in, the directory that the html is in, and the
    directory that the button icons are getting pulled in from
    (these show up fine, by the way.) but none of this seems to work.
    I am at my a loss at this point and don't know what else to do.
    Please help me if you can.
    Thanks,
    -- Ben
    null

    Hi,
    Firefox and other browsers are just front ends that display email pages like any other web page. The actual emails, the settings, storage etc. are all stored and coming from the email provider's end and Firefox just formats and displays them nicely. You may have to go into the settings of the email account to see if the provider has an option to include images as signatures. If the provider hasn't setup an option to insert images as signatures, then it's may not be possible.

Maybe you are looking for