I want to keep the content when resizing the JPanel

I draw some shade random on a JPanel.
when I resize or maxium or minum the JFrame which the Jpanel is on , all the shades disppeared.
How can I keep it?is there a simple way?
maybe this question has been asked many times, but I searched nothing
need help

You must override the method paint(Graphics g) in your application and redraw the shades there. This implies that you must save the shade state.
Regards

Similar Messages

  • How to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    how to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    Within Aperture you have Images, which are constructed on-the-fly from two files (the Master and the Version).  You get an image-format file _only_ when you export an Image.  You select the file name (usually a scheme) when you create an image-format file (that is, when you export).  Look under "Aperture→Presets→File Naming" for built-in Presets.  You can, of course, create your own or customize any provided.
    The Preset is applied to only the file newly created by your "export" command.  It is not applied to the Image in Aperture (unless you rename your Versions or your Masters).

  • I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, a

    I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, after some time on the phone i was told by the csr and supervisor that their system is not allowing them to complete the transaction without changing to a limited data plan.  I was told to try going to a store and buy the phone.  Same thing happened.  Has Verizon changed something and not told their employees?

    Seems like people having this problem are those coming from a phone that doesn't have a nano SIM card...so when Verizon issues them one they end up changing their plan. No clue why this keeps happening but stay on top of them. As long as you initiated the request for your plan to be reinstated within the 14 day time frame they should put it back. Interested in seeing how this plays out. There is still one phone in my house that hasn't been upgraded (an iPhone 4). I'm hoping when we do upgrade it at full retail they won't mess with her unlimited data plan

  • How do I adjust the page orientation in Pages?  I want to keep the pages above the section break as portrait, and the ones below I want to change into landscape.  Is this possible?  I can only get it to be one or the other but not both.

    I want to keep the pages above the section break as portrait, and the ones below I want to change into landscape.  Is this possible?  I can only get it to be one or the other but not both.

    The work around is to do two documents, one in portrait format and one in landscape format. When finished export to Pdf. open in Preview by select both files and use Cmd + O or doubleclick. You can now in Previews thumbnail column the pages from one document into the other and then save.
    If you have created only one with i.e. all pages in portrait format but with the content for the landscape pages rotated on the pages, you can rotate the pages in Preview. Two ways to get the same result.

  • ITunes no longers asks "Do you want to keep the original file or move to trash?" - Can this be fixed?

    I'm not sure if this was a recent update in Mavericks, but when I used to delete items from iTunes it would ask something along the lines of:
    Do you want to keep the original file or move to trash?
    Now I no longer get this, instead iTunes asks:
    Are you sure you want to delete the selected song from your iTunes library?
    After which, if you choose the option "Delete Song", you get no option to keep the original file, it just straight up deletes if from my library and hard drive. Does anyone know if there is a way around this? For whatever reason, I want to be able to keep the original file on my Mac, without keeping it in my iTunes library.
    I've tried resetting dialogue warning, and this hasn't made a difference.
    Thanks!

    iTunes prefs > Advanced > Reset all dialog warnings. - https://discussions.apple.com/message/23987276
    Resetting iTunes Store warnings - http://support.apple.com/kb/HT1734

  • I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
    Must be a verified email address.

  • I just purchased an external disk drive to store my pictures.  I want to keep the last 12 months of pictures on my iMac and move the rest to the new external drive.  As new pictures are added I want them to be put on the iMac internal drive.  How?

    I just purchased an external disk drive to store my growing number of pictures.  I want to keep the last 12 months of pictures on my iMac and move the remaining pictures to the new external drive.  As I take more pictures I want them to be put on the iMac internal drive.  Every 3 to 6 months I would then move some additional pictures to the external drive.  I am nuervous about losing any of the pictures and want to make sure I follow the proper procedure.  What is the right way to handle this?
    Thanks.

    Here's one way to do what you want:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using  iPhoto Library Manager

  • If I want to keep the quality of the original captured footage(from the tapes),what format should I?

    I captured canon hv20 by firewire to my computer with adobe premiere elements 11. After capture, I have cutted clip three times. Then I want to export my computer because of I watch on my 46 inches full hd lcd television. If I want to keep the quality of the original captured footage (from the tapes), what format should I? I choosen mpeg 1440x1080i 24, it alerts error. Or i chosee avchd 1920x1080p, then it is too larger than captured scenes. I think it is 20000MB but captured scened (without cut) only 11.2 gb. Please help me. Thanks very much.

    YCLCS
    File size and Bitrate and Quality are interrelated. From what I have read, the bitrate for your HDV footage from the PAL Canon HV20 camcorder should be about 25 Mbps (megabits per second). If you did a HDV data capture firewire into Premiere Elements, you should MPEG2.mpg file on the Timeline.
    When you did your export
    Publish+Share
    Computer
    MPEG
    using Presets = MPEG2 1440 x 1080i25, did you make any changes in the settings under the Advanced Button/Video Tab of the preset?
    When you look at the settings in the Export Settings dialog for the MPEG 1440 x 1080i25 preset, you will see the default bitrate settings
    Minimum = 18 Mbps
    Target = 25 Mbps
    Maximum = 30 Mbps
    The program's export bitrate may be higher than that of your source media, resulting in the increased file size. You can check out the bitrate, using the properties readout from a free program such a MediaInfo
    http://mediainfo.sourceforge.net/en
    You could experiment with different bitrate, trying to maintain the quality as you decrease the maximum bitrate from 30 Mbps downward to reduce the file size.
    The file extension of your export should be .m2t, .mpg. So, your export is MPEG2.m2t. I find that that type of file will playback in Windows Media Player, but not QuickTime (latest version). This particular export would be the closest to the source media properties.
    But, right now I would try to perfect the MPEG2 1440 x 1080i25, experimenting with the bitrate to bring the file size into line with the source file and still maintain video quality. The AVCHD.mp4 suggested by Ann Bens is a prime candidate quality wise. If size becomes a factor, you might want to explore a 1920 x 1080i25 or 1440 x 1080i25 Windows Media Video 9.wmv file which we can discuss in more detail depending on how things are going.
    Please review the above and then let us know how we can help.
    Thanks.
    ATR

  • Having trouble figuring out how to save the original photo after I've cropped it - i.e. I want to create a headshot of my husband from a photo of the two of us, but I also want to keep the original. Seems very basic, but can't seem to figure it out. Any h

    Having trouble figuring out how to save the original photo after I've cropped it - i.e. I want to create a headshot of my husband from a photo of the two of us, but I also want to keep the original. Seems very basic, but can't seem to figure it out. Any help would be great!

    Use File >> Save As
    Choose a different file name so as not to overwrite the original and don't save any changes when closing the original.

  • Hi: I got my ipod in 2011 and synced it to my old computer. The music that Is on it is from imported cd, so I cannot transfer purchases to my new computer. I also want to keep the settings, favourites, folders, and information that is on my ipod. How do i

    Hi: I got my ipod in 2011 and synced it to my old computer. The music that Is on it is from imported cd, so I cannot transfer purchases to my new computer. I also want to keep the settings, favourites, folders, and information that is on my ipod. How do i sync it to new computer? Please Help.

    You will also have to copy the iPod backup file to the new computer and then restore your iPod from backup using that backup. The file is located here:
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP,  Windows Vista and Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory
    You can also  make a backup on the new computer by conneting the iPod and right clicking on the iPod under Devices in iTunes and selecting BackUp. When you retore from backup sometime the app folder structure get messed up.

  • HT5616 I have multiple phones and iPads and all are linked to one iCloud account and one iTunes Account.  I want to keep the same iTunes Account so I can share music, etc., however, I want each device to have its own iCloud account.  How do I do this?

    I have multiple phones and iPads and all are linked to one iCloud account and one iTunes Account.  I want to keep the same iTunes Account so I can share music, etc., however, I want each device to have its own iCloud account.  Any help on how I can I do this?

    You'll need to create an Apple ID for each device. Use the new Apple ID for FaceTime, iMessage and iCloud on the device. Use the original Apple ID for Settings>iTunes & App Store.

  • How do I return to iCLoud a playlist of 80 songs that I downloaded from iCloud to my MacBook? I only need the songs downloaded temporarily due to no WiFi. I want to keep the playlist in iCloud; just don't want them downloaded

    How do I return (to iCloud from MacBook Pro) a playlist of 80 songs that I downloaded? I only needed the songs downloaded temporarily due to no WiFi. I want to keep the playlist in iCloud; just don't want them downloaded. I know how to delete songs, but is there  a way to just "undo" and return songs to iCloud and maintain existing playlist on MacBook?

    Use Flash Media Server to stream the files.......set up a timer and have all three of them play at once....and have a button switch the streams depending upon which stream you want to play.....and wallah......
    you can also capture the stream.time from the video playing and resume from that point on the other videos as well....havent done this theoretically so I dont know how smooth the transistion between streams will be....but it can be done....
    plus u may have to use double buffering techniques to make sure it starts up right away......
    thelegendaryghost

  • How can i get the music off my ipod to go back to itunes?  i wiped my computer out and want to keep the songs i have on my ipod and load more on there too.  how do i do that?

    i wiped my computer out yesterday and i want to keep the songs i have on my ipod and load more on there.  how do i get the songs that are on my ipod back in my itunes library so i can keep those on my ipod and put more on it?  I didnt purchase the music from itunes, they came from old cds i had and now dont have them anymore. 

    beverlyfromhillsville wrote:
    how do i do the music sync?
    The music sync is how you got the music from the computer to the ipod in the first place.
    You cannot sync it from the ipod to the computer as I explained in the previous post, unless it is itunes purchased music.

  • I am working in pages with a template and want to keep the image but get rid of the black background?

    I am working in pages with a template and want to keep the image but get rid of the black background?

    Surprise surprise but we can't see what you are looking at and referring to.
    What black background?
    If it is black background in the actual photo:
    Menu > Format > Instant Alpha > drag the cursor over the colored background you wish to remove
    Peter

  • I have a question,I have a few music videos on my iphone. I want to keep the song but get rid of the video because it uses to much memory. Is there a way to fix this.

    I have a question,I have a few music videos on my iphone,I want to keep the song but delete the video. Is this possible?

    If it that big of an issue buy the songs

  • HT201250 I only want to keep the latest backup version of my files.  Can I delete all the earlier backups & if so, how?

    I only want to keep the latestTime Machine backup version of my files.  Can I delete all the earlier backups to save my external drive space, & if so, how?

    Jamarac wrote:
    I only want to keep the latestTime Machine backup version of my files.  Can I delete all the earlier backups to save my external drive space, & if so, how?
    Doesn't sound like much of a backup plan, but why not just wipe your backup drive and make a fresh backup of your current system? Be easier and safer,
    Cheers
    Pete

Maybe you are looking for