Adding text boxes, etc on top of background image (bitmap)

I have an image (saved as a bitmap that I created in a drawing program) and I want to add it as a background to one of my panels in my swing application. I need to be able to put stuff on top of it, such as text boxes, etc. What is the best way to get this image as the background????

I converted the image to a jpg and tried to then used the code in the thread though my situation is a little different since I want to add the image as a backdrop of a JPanel which is inturn a tab on a JtabbedPane. I use the following code but it doesnt seem to work
ImageIcon icon = new ImageIcon("backdrop.jpg");
JPanel jPanel13 = new JPanel() {
public void paintComponent(Graphics g)
// Approach 2: Scale image to size of component
Dimension d = getSize();
g.drawImage(icon.getImage(), 0, 0, d.width, d.height, null);
setOpaque(false);
super.paintComponent(g);
tabbedPane.add(jPanel13, "System Status");

Similar Messages

  • Users are adding text boxes and not typing in form fields.

    I have created forms for a client to use as grade school report cards. Some of the teachers are having issues because they are not clicking on the form fields to add information. They are actually creating and editing their own text boxes. The instructions to click on the form field and type do not seem to be working. Any suggestions?

    You can use standard password security to allow form filling but disallow commenting, which includes adding text boxes.

  • Working with images – Resizing, Add arrow & text boxes etc

    I am using RH HTML for updating our Web application Help from
    RoboHelp V3 to V6. It involves lot of images. I found the picture
    quality good only using Word in the combination of
    RoboScreenCapture.
    I need to confirm that the method and steps for capturing
    images using Word & RoboScreenCapture will work reliably for
    both WebHelp and Printable output in Word. Please review my
    detailed steps as listed below and give me your suggestions.
    Here are the detailed steps I took for each method:
    Starting with Resize & RoboScreenCapture:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Resize tool and resized it.
    3. Opened the RoboScreenCapture, went back to the Resize tool
    and by using the Screen Capture Hot key - Cntrl+Shift+R, I captured
    the region. The captured screen popped up in the RoboScreenCapture
    tool.
    4. I drew an arrow on the image and the text box and also
    entered the text in the text box. Then I saved the image in the
    RoboScreenCapture.
    5. Opened up the RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    The image was not very clear looking in wysiwyg.
    In Paint:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Paint, stretch the image form
    100% to 80%. The quality of the image reduced dramatically.
    3. Opened the RoboScreenCapture, went back to the Paint and
    by using the Screen Capture Hot key - Cntrl+Shift+R, I captured the
    region. The captured screen popped up in the RoboScreenCapture
    tool.
    4. I drew an arrow on the image and the text box and entered
    the text in the text box. Then I saved the image in
    RoboScreenCapture.
    5. Opened up RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    The image was not very clear looking in wysiwyg.
    Finally, with Word:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Word, resized it. While in Word
    I can draw an arrow on the image and the text box and entered the
    text in the text box.
    3. Opened the RoboScreenCapture, went back to the Word and by
    using the Screen Capture Hot key - Cntrl+Shift+R, I captured the
    region. The captured image popped up in the RoboScreenCapture tool.
    Then I saved the image in RoboScreenCapture.
    4. Opened up RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    Nice & Clear

    There's a topic about this on my site that might interest
    you.
    I recently tried the Microsoft Fax and Image viewer (the
    freebie with XP) and reduced the window size dramatically. With a
    photographic image it was very good. A quick test suggests it might
    be good with text as well.

  • How do I get rid of the thin line that goes across the top Persona background image.

    There is a 1-pixel wide light grey line across the top Persona background image between the navigation toolbar and the bookmarks toolbar from left to right. Nomatter whatever persona I have installed, it is there. Same thing also when i hover on any other Persona at Getpersonas.com. It is not there when using any other program and not when only showing the desktop. Only when using FF4. My PC is a HP Pavilion dv6000 laptop using Windows Vista. This is not a monitor issue nor a graphic card issue since it only shows in FF.

    for me, it happens on a maximized window. when i do restore to window, the line disappears.

  • Objects (mostly text boxes, etc.) change slightly after uploading

    Hello!
    I am a novice Muse user, and love how easy it is to use - but I've noticed what I think may be a glitch with the rendering of text boxes once they're uploaded. When I am in design mode, all of my items are one size and perfectly aligned, but when I preview or upload, some items resize and and end up "off".  I've uploaded screencaps of my site in Muse and on the Web to show what I mean. See how the second content box on the live version is slightly longer than the other three? According to design mode, all four of those boxes are exactly the same width and height, but they render differently when uploaded or previewed. 
    I'm wondering if this is due to responsive resizing when a scrollbar is added in preview/web mode? And if so, how can I fix it? I've already tried adjusting the text in that box. I haven't made the others larger to match it because when I'm in design mode it all looks fine, and I'd have to do trial and error fixing for something that seems like it should be simpler.
    Any info is appreciated!
    Kellie

    I may have discovered a work-around for this fatal bug. Make sure that the area-type object is the top most object in the layer order, or if you are working with multiple type objects, that each type object is in its own separate layer. It seems this bug is most prevalent when the selected objects are in the same layer, and the area-type that is selected is below other selected objects.
    I was able to simplify the process of re-creating this bug down to one text box and a rectangle. First, create an area-type object and put some text in it.. Second, create a rectangle. Then, while the rectangle is still selected, use the shift key and direct-selection tool to select the left edge of the area type object. Finally, with both selections active, start moving them and watch the type disappear!
    I noticed that if I change the layering order of the type-object, to where it is above the rectangle, then moving the selections, the bug goes away. Also, I found that if I needed to move the selected edges of several area-type objects at once, I could do so, as long as each type-object was in its own layer.
    For the amount of time that I have spent on this bug, Adobe should give me the next version of Illustrator for free. Heck, Adobe should give everyone that has to use CS, a free upgrade.

  • Adding .flv or .swf in dreamweaver on top of background image

    Hi,
    I added an image  background 1900 x 1200 in dreamweaver, which will serve as my  background image for my web site. I would like to incorporate my .flv or  .swf on top of my background image. Although, when doing so, the .flv  or .swf gets placed under the background image and not on top. How do I  place the .flv or .swf file on top of my background image in Dreamweaver  CS5.
    Thanks

    Hi
    This sounds as though you are not actually using a  background-image but just placing an image on the page. To get any help  people will have to see your page and the code, can you provide a link  to a live page?
    BTW: Your background-image size is way to big for most users monitors, just thought you should know.
    PZ

  • Getting CoolType invalid font error 'can't fetch cmaps' for font MyriadPro–Regular when adding text box or text callout

    Just updated Acrobat X Pro on Mac to v10.1.10
    Now if I try to add a text box or a text callout (text box with arrow) I get a popup error saying "CoolType invalid font error 'can't fetch cmaps' for font MyriadPro–Regular"
    Any ideas much appreciated.

    Hi oscar18,
    This is usually caused due to corrupt/ invalid font libraries.
    On your Mac, open up 'Font Book' and follow the instructions below:
    Hit Cmd + A to select all fonts as shown above
    Click on File > Validate Fonts
    This will open up the Font Validator that will scan all your fonts and will notify you if there are any corrupt fonts. If you do see any corrupt font libraries, please remove/ delete those fonts from your computer. Then try opening Acrobat and check.
    Regards,
    Rave

  • Can Edge Reflow handle type on top of background image within a box?

    What I mean is, from code point of view, it's not <img src="">, but <style="background: url()">, then put type on top of the background image.  Can Edge Reflow handle that?  Really appreciate your help.

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/edge_reflow_preview

  • Text Boxes and Lines on Full Screen Images?

    In iBooks Author I'm trying to create images with text boxes and lines overlayed on top of the images (I don't like the interactive image widget, I want just text with no gray box and a single line of text, no need for title and description, also don't need the zoom capability on each label).  I can do this fine in a basic, two column layout but when I tap on an image within a figure to see it full screen on the iPad I want the text and lines to also come full screen.  Any ideas?  I seemed to have a solution by enabling placeholder text authoring but that's proven inconsistent.

    Sound like a 'group'.
    Whatever works
    Good luck
    Ken

  • Adding slide in caption on top of main image in gallery

    ok, now the same caption question from another angle...how
    would you get the caption to display on top of the main photo...and
    once that is accomplished, I want to add a slide effect *smile*
    I found a page that I want to recreate with spry...but its
    gonna be hard...I have the basics started, but cannot figure out
    how to put the text on TOP of the image
    http://www.nmdhsem.org/default.asp?CustComKey=270308&CategoryKey=274276&pn=Page&DomName=nm dhsem.org
    oh I am using the photo gallery demo, but hiding the select
    and gallery name so that just 3 images cycle on opening the page
    Edited: 08/28/2007 at 03:06:40 PM by karonz

    ok, so far I have this...I got the images to fade, but still
    would like to have a caption that fades in and out as well...
    any suggestions
    http://www.nmprc.state.nm.us/Copyindex.htm
    oh...and lol...I still have to get some images from NM
    instead of china *g*

  • How to get the text to appear on top of the image

    I am using the following piece of code to add a label to a JPanel -
    JLabel label = new JLabel();
            label.setIcon(new ImageIcon("object.gif"));
            label.setText("An object");
            label.setBounds(xCoordinate, yCoordinate, width, height);
            display.setLayout(null);
            display.add(label);The problem is that the image is being placed over the text so I cannot see the text, does anyone know how I can fix this?
    Thanks.

    Try setIconTextGap in JLabel. Or, maybe your bounds
    are too small.
    JLabel also has a constructor that takes both the
    icon and the text at the same time.I know my bounds are large enough because if I comment out the add image then I can see the text and there is enough room for it.
    I don't think setIconTextGap can help me because that will just move the position of the text in relation to the image but I would like it to be directly on top of the image.
    I tried the constructor but that is causing a java.lang.reflect.InvokationTargetException which is fairly strange because the method that im working on does not use reflection or change anything in the method which does.

  • TextField on top of background image

    How can I put a textField on top of a background image with JSC?

    How can I put a textField on top of a background image with JSC?I believe that when you put a background image in JSC... everything else would go on top of the background image. You set the background image by selecting the Background Image property under the Appearance part of the Properties panel. There you can select the image you want to set as background.
    On the other hand, if you insert a separate image component instead of the background image... there you may have to tell your textField to go on top of the image. You do this by right-clicking the textField and selecting the Bring To Front option.
    Franklin Angulo

  • How to fill text with the negative of the background image

    I have a picture of grass as the background. I am trying to put text on the image, and have the fill of text be colored as the negative of the background grass image colors. To represent what I wish to do, I demonstrated the color I wish to obtain inside the fill by highlighting the text over the image. Any help is appreciated. Thanks.

    Pinipples,
    As I (mis)understand it, you may:
    1) Copy/replace the image on top of itself;
    2) Invert the colours of the copy image;
    3) Place the text (which may be live Type) on top of the copy image, select both (not the original image), and Object>Clipping Mask>Make.

  • When converting word doc to pdf, my images with text only show the background color of the text box.

    I have a word doc that I am trying to conver to pdf.  I have jpegs with text boxes on top of them on one page.  It looks great on the screen but after I convert to pdf, the text boxes only have half the text, the first half of the text box is just white - the background color.  If I take the background color out of the text box, the text converts over fine but I need the background color.
    I have tried many things here on the print settings, standard, high quality print, unchecking the compression on the images.  Any help?

    Thank you for your posting. These forums are specific to the
    Acrobat.com website and it's set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • Why is text box at top of Safari missing?

    I was on vacation and since returning, the Safari browser home page looks different and most importantly, the text box at the top of the page where I'd type in the URL of a web site I want to go to is missing.  (The text box is GONE.)

    Hi William
    I'm guessing that it's not just that your 'home page' which opens with a new window, or when Safari starts, is wrong ? (if it is that, you can alter it in Safari - Preferences - General)
    It sounds like some sort of add-on or extension has changed Safari (a screenshot would help, if you can)
    Extensions can be disabled/selected in Safari - Preferences - Extensions
    other add-ons can be in the folders listed at http://support.apple.com/kb/ts3230
    If it's not an extension, and you can't find any other add-on - please post a screenshot if possible, and also test briefly in a New User Account, since that will tell us where to look

Maybe you are looking for