Create (Make) image Placeholder?

I know you can make an image a place holder in other apps like Pages, etc. Can you do so in iWeb? I can't seem to find anything about it.
Thanks!

I can do that in iWeb to but from a different page. I guess iWeb doesn't have that feature "make image a placeholder" (yet).
The need or the feature comes when you have a picture perfectly placed, sized, and masked where you want it. I'd be nice to be able to just make that image the place holder rather than having to erase the old one, and then drop, mask, and size the new ones until you find the picture that works perfectly.
It really isn't a big deal with all the greatness and efficiency that iWeb offers! It is just such a great feature in pages and other apps it'd be great to implement it in iWeb too!
Regardless, iWeb is AWESOME!!!!!

Similar Messages

  • Image placeholder - how not to stretch images by default

    Captivate 8.0.1.242 - Windows 7
    How do I make the image placeholder to not to stretch images by default and rather when I add the image using the + symbol, it should maintain the aspect ratio of the image and resize only based on either width or height?
    Or still maintain aspect ratio of the image but crop of the excess beyond the current placeholder size.
    I want this by default as when I create my courses, my images vary in aspect ratios and sizes quite a bit. Thus investing time on each image through "edit image" in the properties isn't efficient.

    Do you have any suggestions for what I can do instead? I just don't want to spend couple of minutes for each picture which obviously gets multiplied for each of the 3 different responsive views. This is lead to hours wasted for each course work. Am I forced to find only pictures of same aspect ratio and size for the future or is there any workaround?

  • How do I Create interactive images to be used in another website?

    Our office is contracted with a simple website company, so from the begining the framework is there. I want to add an interactive map that has each county hyperlinked to information about that area. I was told that Dreamweaver is the program I would need in order to create it.
    So, I have the program now but every tutorial I read is about making your own website in dreamweaver and I can't find anything about how to create the image to upload into a different website.
    Anyone know how to do this????
    Thank you!

    This helps, thanks. I have the content on the web page (where the hyperlinks will attach to), I have the image of the map, and I am making the shapes for the hotspots, just not how to get it all to link up.
    Also, when I saved a trial (just to make sure it would all work) it doesn't successfully upload as an image onto the website, just a little box with a red X. Any more thoughts anyone? 

  • Class casting, creating an image and decompiling...

    Hi, I've got a couple of questions:
    1)
    How can I fully decompile classes, so with the implementation of the methods? Is it always possible to fully decompile a class file? When is it and when not?
    2)
    I aks this questions before, but I still haven't got it working, so sorry, but I ask it again :) :
    I want to create my own class, for example cMyClass which extends the java.awt.Image class, which has abstract methods. How do these methods(for example getGraphics etc) have to be implemented?
    3)
    I can't cast a Image to cMyClass... why not?
    Someone told me he did the following:
    Canvas c = new Canvas()
    cMyClass oImage = (cMyClass) c.createImage (100, 100);
    and that this worked... I tried to do this too, and it seemed to work, but it actually didn't!!
    I found out that c.createImage returns a null reference!!! That's why Java was able to cast it to my own cMyClass (not a problem to cast a null to something else), but when I created a Image (by doing a lot of unnessacary difficult stuff), and then tried to cast this Image to cMyClass it throw a ClassCastException or something like that...
    How can I cast the java.awt.Image class to my class anyway?
    3)
    Why can't you create a image like i've done above or even like below:
    Canvas c = new Canvas()
    Image oImage = c.createImage (100, 100);
    Why does this return a null reference?
    Isn't there a better way to create an image?
    4)
    The getWidth and getHeight need a I thought observer...? Why is this? I just want the width and height and don't have an observer or something like that. Is there a way around this?
    I tried getWidth(null) but this returns -1
    Please help! :)

    Hi, I've got a couple of questions:
    1)
    How can I fully decompile classes, so with the
    implementation of the methods? Is it always possible
    to fully decompile a class file? When is it and when
    not?You can always get a dump of the bytecode with 'javap -c'. If you don't want to figure things out yourself, try searching google for a class file decompiler, possibly a de-obfuscator.
    De-compilation is completely possible if the original author wanted that, by including debugging information. Depending on the degree of such information and the amount of code obfuscation, the decompiled code may lack variable names, line numbers, field and method names, class names, and even code structure. Names and line numbers are usually not re-creatable automatically, since the information is simply lost, but you can replace them with your own strings when analyzing an unknown class file (using the correct tools). Re-creating the original code structure may work in some cases, but to me the general case looks rather close to the halt problem (i.e. not solvable).
    Use a de-obfuscator, hope you've got good luck, and analyze the bytecode manually if that doesn't work.
    2)
    I aks this questions before, but I still haven't got
    it working, so sorry, but I ask it again :) :
    I want to create my own class, for example cMyClass
    which extends the java.awt.Image class, which has
    abstract methods. How do these methods(for example
    getGraphics etc) have to be implemented?I don't really understand the problem. 'abstract' means on the language level that your subclass must provide an implementation, i.e. a method body. What that method is expected to do is explained in the javadocs for Image. But in fact you're free to do anything. You could play a sound in the getWidth() method (replace with any method name if you want). Just consider the fact that a lot of code calls getWidth in the hope of getting the width of the image, not playing a sound. So much about the language level.
    On a higher level, a subclass of Image should implement a certain way to describe an image. AFAIK this means that your code must know the size of the image and know how to produce the pixels of the image. I can't tell you in general how you must do this, because it depends on your special case. This boils down to the question, why do you want to write a subclass of 'Image'? What new way of describing and image have you come up with?
    3)
    I can't cast a Image to cMyClass... why not?Simple, and that's certainly not an ALT. Because that specific Image is not a cMyClass. It's probably a BufferedImage or similar that was produced by AWT.
    Please read the specs carefully what casting is about.
    Someone told me he did the following:
    Canvas c = new Canvas()
    cMyClass oImage = (cMyClass) c.createImage (100,
    100);
    and that this worked... I tried to do this too, and it
    seemed to work, but it actually didn't!!
    I found out that c.createImage returns a null
    reference!!! That's why Java was able to cast it to my
    own cMyClass (not a problem to cast a null to
    something else), but when I created a Image (by doing
    a lot of unnessacary difficult stuff), and then tried
    to cast this Image to cMyClass it throw a
    ClassCastException or something like that...
    How can I cast the java.awt.Image class to my class
    anyway?You can't, and if you understood casting then you'd understand that it wouldn't make sense.
    3, 4(don't know)
    Maybe stupid question, but for example the BufferedImage, is this
    completly written in Java?
    How is the link made between the OS+hardware and the Java code? I
    mean, displaying images etc. is very platform dependend not?Look for JNI (Java Native Interface). It's a way to link native (e.g. C) code with Java code.

  • Unable to create Disc Image from DVD

    I get the following error when trying to make a copy of a family wedding DVD. I'm using Disc Utility and creating the image as a DVD/CD master (.cdr) file. It gets to about 3/4 of the way and then gives the following error.
    The internal drive is a PIONEER DVD-RW DVR-K05
    Sep 10 22:13:24: Disk Utility started.
    Creating Image “Wedding of xxx & xxx.cdr”
    Reading VOLUME_IDENTIFIER (Apple_UDF : 0)...
    Unable to create “Wedding of Sarah & Federico.cdr” - Input/output error.
    I've tried twice now and the same error. Looks like I might have to use Toast/Popcorn etc?
    Thanks,
    Darren
    iMac G5 2.1GHz 1Gb RAM 260Gb HDD   Mac OS X (10.4.7)  

    I do not know what that error means. However, if you open up the Disk Utility & go into it's Help Menu & in the search field type duplicating a CD or DVD. There you will find detailed instructions on how to create a disc image from a DVD.
    Good possibility your answer may be found there and/or there may have been something you missed in creating a disc image.
    Good luck.

  • How can I create an image gallery with "next" buttons?

    So I am almost done with my portfolio site (YES!)..now I just need the actual content (the images). My site is written in AS3.
    I've watched many tutorials on how to create an image gallery (auto scrolling ones, scrolling ones that require mouse hover, etc etc), but those aren't what I am looking for.
    I want a gallery that looks exactly like this one here:
    http://jalbum.net/res/help/integrating-tutorial.html
    I have a lot of work to display in my porfolio so there must be arrows at the end of the thumbnails so I can add more stuff. So I am just stumped on how to make the image gallery work with the ability to scroll for more photos with the click of the arrows.
    Any ideas? Thank you.

    Watching tutorials and learning from them are two different things.  If you have learned from them you should be able to use what you have learned to devise a gallery such as the one you link to.  If you have learned from them and cannot use what you learned, then you probably need to find/learn more.
    If you study the design you linked you should be able to reason out what elements you need to devise... it is not overly complicated. 
    For the large picture you could have a Loader into which you load whatever image is selected from the thumnails. To get a brief transition you could just set the alpha of the Loader to 0 when an image change is occuring and gradually fade it in after the image has loaded.
    The greatest challenge you are likely to face is in getting the thumbnails to advance back and forth depending on which is selected.  All of the thumbs would be placed in a container (movieclip or sprite) and that would be masked so that only a portion of them is visible. 
    All thumbs that are not selected have their alpha property set to some value less than 1.  Selecting one calls for the file it associates with to be loaded into the Loader.  If the choice happens to lie off screen, then you need to move the movieclip that contains all of the thumbs some set value in the right (+x) or left (-x) direction.
    If you want the thumbnails to wrap infinitely then when one leave the thumbnails area for movement in a direction, you need to take that thumb and relocate it to the other end of the thumbs in the container.

  • Creating an image from a Mac and restoring it in another Mac

    Hi,
    I've spent a couple of hours trying to make a copy of one of my macminis, trying to copy it in another macmini to have the SAME machine "duplicated".
    I've read some tutorials online, but something is going wrong....
    First of all, I went to my "master" macmini, DiskUtility, create new image from folder, select my macintosh HD and I created the image of the whole HD.
    Almost a hour after, the image was created.
    Then I moved the .dmg to a USB drive, and I connected the USB pen to the machine that I want to be a "clone" of the master. There, I opened Disk Utility, Restore, I selected the Source image from my USB, but I can't selected (=drag) the Macintosh HD into the "destination" field...
    What I'm doing wrong?
    Thanks, any help is appreciated :))

    Hi sr.richie;
    If you are booted from Macintosh HD then the system will not allow this cloning operation to take place. You must boot from another disk in order to do that.
    Allan

  • System Image Utility 10.6.3 - fails when creating NetBoot image from DVD

    System Image Utility 10.6.3, trying to create a NetBoot image from a bundled installer disc that came with a 27" Late 2009 iMac (iMac11,1). Image creation fails consistently, since the image that System Image Utility creates is only 901M.
    Anyone see this before?
    Don
    --------- System Image Utility log ----------
    Workflow Started (2010-06-16 14:03:02 -0700)
    Starting action: Define Image Source
    Finished running action: Define Image Source
    Starting action: Create Image
    Starting image creation process...
    Create NetBoot Image
    Initiating NetBoot from Install Media.
    Creating working path at /Library/NetBoot/NetBootSP0/NetBoot of Mac OS X Install DVD
    Creating disk image (Size: 901 MB)
    Finalizing disk image.
    created: /Library/NetBoot/NetBootSP0/NetBoot of Mac OS X Install DVD/NetBoot.dmg
    Attaching disk image
    Installing to destination volume
    2010-06-16 14:03:38.126 installer[2365:6f03] Looking for system packages
    2010-06-16 14:03:38.129 installer[2365:6f03] no system packages found
    2010-06-16 14:03:38.130 installer[2365:6f03] No or Invalid system receipts found on /private/tmp/mnt.LjFArn
    2010-06-16 14:03:38.130 installer[2365:6f03] Attempting fallback using: /System/Library/PrivateFrameworks/SystemMigration.framework/Resources/FallbackS ystemFiles.plist
    2010-06-16 14:03:38.175 installer[2365:6f03] Finding system files...
    2010-06-16 14:03:38.619 installer[2365:6f03] Writing system path cache.
    2010-06-16 14:03:38.623 installer[2365:6f03] Error writing cache to /private/tmp/mnt.LjFArn/Library/Caches/com.apple.FindSystemFiles.plist
    2010-06-16 14:03:38.625 installer[2365:6f03] Failed to enumerate /tmp/mnt.LjFArn/Library/Caches, cannot prune (
    "com.apple.userpictureCache"
    installer: Package name is Mac OS X
    installer: Installing at base path /private/tmp/mnt.LjFArn
    installer: The install failed (There is not enough space on this disk to install the selected items. Deselect at least 6.46 GB and try again.)
    Script is done.
    NetBoot creation failed.
    Image creation process finished...
    Stopping image creation.
    Image creation failed.

    Brian Nesse wrote:
    Hi Don, here's my guess...
    The 901 number is additional space added in the scripts. This indicates that the source image size was 0.
    Since you are making a NetBoot from Install media, under the covers the installer process is being run to create a NetBoot volume. The media shipped with the 27" iMac is most likely CPU specific and thus the installation fails because you are trying to create the image (i.e. install the system) on an unsupported CPU.
    In order to produce a NetBoot from the install media, you'll have to create it on the 27" iMac.
    Hi Brian,
    Thanks for the response. This makes perfect sense. I'll give this a try and shout back!
    Thanks,
    Don

  • Disk Utility Problems - Can't make image or restore

    I am having difficulty in making disk images & restoring using disk utility.
    Issue 1 - Making an image of a DVD for the purpose of burning a copy (non commercial)
    In DU I select the DVD in the sidebar, click new image DVD/CD master & save to desktop. The progress indicator reached about halfway & I get the following message: Unable to create "image name.cdr" - input/output error.
    The source DVD in in the internal optical drive.
    What causes this problem & can it be fixed? Why is the image .cdr not .dmg?
    Can an image be made directly from a DVD?
    As a workaround I used DU's restore function to copy the entire DVD contents to a free (27GB) partition on an internal HDD (not system disk) in the hope that I could make an image fron there. As soon as I clicked on restore both the DVD & target drive unmounted. After the progress bar reached 100% I got the following error message: Restore Failure. An error (5) occurred while copying. Input/output error
    However if mounted in DU the partition has been renamed to the DVD name & the contents seem to be the same as the DVD.
    What is error 5?
    I then created an image from this partition using DVD/CD-R master format which worked OK but created a 27GB image - too large to burn!
    How can I make the image small enough to fit on a DVD-R?
    Can an image be made directly from a DVD?
    Is this normal DU behaviour??
    Once I get this right I plan to used DU to backup to an external HDD (I'm in the process of recovering from a drive failure and although I have most of my data back through partial backups & recovery like many before me I'm going to have better backups from now on!!)
    Any help would be apprecialted.
    Thanks in advance.
    John

    It may be the the disc after all...
    I'm still having the same problem, but I also discovered that I cannot get the install disc to get past the "spinning gear" stage when trying to start up with it, so yes, it's most definitely useless! My MacBook is still under warranty so I phoned Apple, and explained the problem and everything I did to ensure it wasn't hardware related. So they're sending me new install discs. I'm not 100% convinced yet that the problem is the install disc, but we'll see...my only doubt remains from the fact that I was able to make a disc image of it on my G4. That said...
    I did a hardware test (long version, and everything is reportedly fine), played dvd movies, burned cd's, installed software from discs, etc, and it seems the drive is working fine, however, it could possibly be sensitive to even the slightest smudge or scratch (the install disc has a few very slight marks on it that shouldn't be a problem, and I cleaned it thoroughly). The only other time I had a problem was when I went to rip a song from a cd to iTunes where it hung and and then failed to complete the task. (The cd itself played without issue though.) I checked it for dirt/scratches: it had a couple of barely imperceptible smudges and one shallow scratch. I cleaned it, tried it again and iTunes was able to import from it after that. This remains the only time (so far) I've had a problem with a disc besides my install disc.
    I want to be able to repair disk before I install 10.5.3, and back up everything, including the install discs. My Macbook came with 10.5.2 and except for this problem, everything's been working fine.
    When I get my new install discs, I'll post how that went. They should arrive within a week or so.
    DrHouseTF: I checked out your thread. I've never tried to make copies of game disks via DU, but maybe it's due to copy protection measures on the disc itself?
    Message was edited by: iMsP
    Message was edited by: iMsP

  • Disk Utility Error 61 when attempting to create disk image on external driv

    I would like to make occasional archive backups of my three macintosh computers. I bought a new Western Digital 2TB drive for this purpose, and formatted it as Mac OS Extended. Trying to do a disk image backup using Disk Utility, I follow the directions:
    - Startup from an install DVD.
    - Start Disk Utilities and select "Restore"
    - Drag "Macintosh HD" into the Source box
    - Click on "New Image" and select compressed and 128-bit AES encryption
    This leads to the error message: Unable to create "....." (error -61)
    I have enocountered this problem both with my iMac G5 and a MacBook, both running Leopard.
    Does anyone know what this error means, what I am doing wrong, and/or if there is another way to create disk image backups? Help!

    1. For reasons I don't know disc images seem to become more fragile the larger they get. They also can be subject to file corruption that affects the entire disc image, whereas file corruption on a clone would only affect certain files.
    2. You cannot put multiple clones on the same volume. Each clone must be on a separate volume, but you can have multiple volumes on a single drive simply by partitioning the drive accordingly. Of course you need a drive large enough to accommodate each clone. Each clone should be to a space equal to the capacity of the cloned drive.
    3. I'm not a big fan of TM, although I must confess it has become more reliable since it's release, especially with Snow Leopard. However, there are many backup utilities that can create clones, perform incremental updates, and archive changed files. See the following:
    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    Silver Keeper
    MimMac
    Retrospect
    Super Flexible File Synchronizer
    SuperDuper!
    Synchronize Pro! X
    Synk Pro
    Synk Standard
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore. Also read How to Back Up and Restore Your Files.

  • Can you create an image map that will link to a different element on the same page?

    I have used image maps before and know how to create an image map to link to a new page.  In this case, however, I want to be able to click on my image using an image map and load a new image with text on the same page as the image map.  Is this even possible?  Is there some sort of behavior that allows you to create same-page links, perhaps using AP divs?  I want the end result to be a type of gallery that loads different images depending on where you click on the main image.
    Again, I don't even know if this is possible.  Any suggestions on how to make this work would be greatly appreciated.
    Thank you!

    Go to this site and mouse over the image map of South America.
    http://alt-web.com/testing.html
    Is that what you are looking for?
    Insofar as linking to a position on the same page, do a Help search (F1) in DW for "named anchors."
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • IDVD creating disk image larger than it should be.

    I exported an iMovie to iDVD and set up the dvd using one of the supplied themes. I checked the disk info to make sure it will fit the DVD-R. The program says my file should be about 3.9 Gigs. The disk burn was incomplete so I tired to create a disk image instead. The size of the disk image is 4.57 gigs.
    The incomplete dvd would play all the way until the last few minutes of the movie and then crash the dvd player.
    The last time this happened to me I had to reinstall the OS and lost the project I was working on as a result. Does anyone have a less drastic solution?
    I have about 60 gigs of free space on my hard drive still.
    Thank you

    The movie was just under two hours long. It is about the length that I used to make all my previous movies. I know that if I reinstall the OS and software that it will correctly create the disk image. I have already tried reinstalling the iDVD software and the result is the same problem. I also know that the file should fit the disk because when I look at the project info it shows that the project size is 3.8 gigs. It is just that when I do create the disk image the final file size of the image is around 4.57 gigs. (The project info still shows 3.8 gigs after creating the image.)
    It would take several days of backing up and reinstalling software and I would like to avoid that if possible as I would also lose a lot of my preference settings. One other symptom, if I tried to burn data disks from the finder, I have to restart between burns or the second disk will fail to burn.

  • Can't create disk image of external disk

    I just switched from a PowerBook G4 running OS 10.4, to a MacBook Pro running 10.5. I'm trying to create a disk image of the old machine's hard disk, as a backup. Before doing this, I ran Disk Utility to make sure none of my disks were in need of repair.
    I started up the old machine in Target Disk mode and connected it to the new one. In Disk Utility, I selected the disk, and clicked Create Disk Image. I told it to save the disk image as uncompressed and writable, on a disk that has plenty of space. So it chugs along for about an hour, creating an 80GB image.
    Then once the image is done, I try to mount it and get an error, saying that the disk image has no mountable file systems. I've done this four times already, each time with the same result. In addition, if I try to restart after creating the image, the system hangs.
    Any ideas why this might be happening? Are there any known bugs with Disk Utility in Leopard? Interestingly, I tried to do the same thing with Carbon Copy Cloner, and ran into a different error (it thought that it couldn't mount the newly-created image).

    Yesterday I bought a Maxtor Basic external harddrive for my mac.
    Followed the instructions, using Disk Utility, formatted the hd, then I tried to create a 60 gb blank encrypted disk image but failed twice; after clicking 'Create', Disk Utility does not prompt to create a password.
    First time Disk Utility just hangs; there's no respond for 30mins, so i force quit it and reformatted the drive, again.
    Then I tried to create a 10mb encrypted disk image and the box appears to enter a password, so I presume it was working fine.
    Again, I tired to create the 60gb blank image. This time, i left it overnight, thinking maybe it just takes a longer time. No prompt for passwords, and in the morning, the msg I got was 'No drive found' or something like that, because the drive has ejected itself. (???)
    Anyone has any idea why? I could create the image on my mac and throw it in the external drive, but my mac onlyhas 15 gb of space.
    Let me know if this sounds like a problem with the Maxtor so I could exchange it ASAP.

  • How do you make images transparent in inDesign?

    How do you make images transparent in Adobe InDesign CS5.5?

    Dittco wrote:
    It IS possible: Select the image. Open effects (Window > Effects). Switch from "normal" to "multiply". Viola! White background is gone.
    That only works with a white background. In addition, it introduces a transparency effect, with its associated problems.
    With a rather light background: Select the image. Open clipping path (Object > Clipping Path > Options). Select Type > Detect Edges; use Threshold and Tolerance to get as close as possible to the edge of your image. This may be difficult because of a too low resolution image, or too much fringe on the edge -- if all fails, use the Inset Frame value to force the mask "into" the image. Click OK, and the background is gone.
    But that's not the only way: you can always create a clipping path manually, and then you are in total control, not limited by transparency side effects, auto-edge detection, and busy backgrounds.

  • Create an image of a JLayeredPane 's content

    hi there,
    we have a problem here: we'd like to create one image out of a JLayeredPane`s content. but the only thing we get is a gray box which size is the size of the JLayeredPane.
    the purpose is: we're developing a graphic tool where you can draw and arrange objects in the JLayeredPane(which is in a JScrollPane). and now we're implementing the print-function which allows to print the graphs over several pages, therefore it is neccessary to have an image(*.jpeg) for our printpreview-window. the preview-window and the printfuntion are nearly implemented and the only problem is that we cant make an image of the JLayerdPane's content.
    maybe you have an idea or codesamples...
    thanks a lot in advance!!
    george

    1. Getting any JComponent to render onto a buffered image isn't a problem -- just call paint, passing it a graphics object backed by that buffered image.
    2. Writing an image to a file isn't a problem: use javax.imageio.ImageIO.
    Some code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Ex {
        public static void main(String[] args) {
            JFrame f = new JFrame("Ex");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            final JLayeredPane pane = new JLayeredPane();
            Border b = BorderFactory.createEtchedBorder();
            pane.add(createLabel("DEFAULT_LAYER", b, 00, 10), JLayeredPane.DEFAULT_LAYER);
            pane.add(createLabel("PALETTE_LAYER", b, 40, 20), JLayeredPane.PALETTE_LAYER);
            pane.add(createLabel("MODAL_LAYER", b, 80, 30), JLayeredPane.MODAL_LAYER);
            pane.add(createLabel("POPUP_LAYER", b, 120, 40), JLayeredPane.POPUP_LAYER);
            pane.add(createLabel("DRAG_LAYER", b, 160, 50), JLayeredPane.DRAG_LAYER);
            f.getContentPane().add(pane);
            JPanel south = new JPanel();
            JButton btn = new JButton("save");
            btn.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    save(pane);
            south.add(btn);
            f.getContentPane().add(south, BorderLayout.SOUTH);
            f.setSize(400,300);
            f.show();
        static JLabel createLabel(String text, Border b, int x, int y) {
            JLabel label = new JLabel(text);
            label.setOpaque(true);
            label.setBackground(Color.WHITE);
            label.setBorder(b);
            label.setBounds(x,y, 100,20);
            return label;
        static void save(JComponent comp) {
            int w = comp.getWidth(), h = comp.getHeight();
            BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = image.createGraphics();
            g2.setPaint(Color.MAGENTA);
            g2.fillRect(0,0,w,h);
            comp.paint(g2);
            g2.dispose();
            try {
                ImageIO.write(image, "jpeg", new File("image.jpeg"));
            } catch(IOException e) {
                e.printStackTrace();
    }Why does the saved image have a magenta background? JLayerPane, by default, is non-opaque. You can set it to be opaque and choose its background color, as you like.

Maybe you are looking for

  • FRUSTRATED!!! HP 6700 Scanning feature not working with my MAC

    I just bought the HP Officejet 6700 at COSTCO primarily for its claimed scanning capabilities.  The first frustrating warning was that the CD included with the device was not accepted by my IMac.  So, I after a half hour of downloading time, I finall

  • Security on pages...

    hello everybody, I would like to ask ???i have 4 pages in my application on tabs form,and i have two users,i want one of them to access this page and the other doesn't .?? i know that i have to create authorization shcemes but anybody can help and te

  • Hierarchy expand issue after EHP1 upgrade

    Hi, We had EHP1 upgrade in our BI system. After upgrade, when we are trying to open the hierarchy of period. it should open from TOTAL to Q1, Q2, Q3 and Q4. Also when we should try to open Q1 then it should open Jan, Feb and Mar. When i am trying to

  • How to write test procedures of the following code, need someones help

    ITS VERY URGENT.....PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected] // Account.java - Data class for account files // MODULE INDEX // NAME CONTENTS // Account Constructor // Account Constructor // getAccountNo Get account ident

  • Premiere Elements 12 Crashes on Mac

    I have a fairly new Mac with the latest Maverick updates. Premiere Elements 12 crashes randomly when I am working and loses everything. It even loses files from the folder where imported media is stored. It loses saved work as well. I have no idea wh