How can a Swing JWindow be resized without flickering?

Hi,
I'm having trouble trying to get a custom UI I have made based on JWindow to resize in an acceptable way due to the amount of flicker.
The problem is described here:
http://stackoverflow.com/questions/4324221/how-can-a-swing-jwindow-be-resized-without-flickering
I have tried various attempts at (manual) double buffering but it seems that nothing can help with the fact that the top window's ComponentPeer is resizing the window and drawing it with a 'stale' view of the layout and then doing the new layout afterwards. This happens for me in Windows XP and Ubuntu Linux under Sun/Oracle Java 1.6.0_u22 (latest), and apparently in Windows 7 too.
I am unsure if this is a bug, defect or is this way by design. I also notice that Netbeans suffers from the same issue on resizing but Eclipse does not. Does this mean that Swing is currently incapable of laying out/painting a top level Component to a back buffer before drawing to the screen? Does this affect/annoy anyone else?
Or if not, any ideas how a smooth redraw can be achieved?
I understand that this issue does not bother everyone, but for custom UIs like the one I am trying to achieve the result is not really acceptable.
Any help much appreciated!

Thanks that's an interesting approach, I think I may use...
AWTUtilities.setWindowShape(jWindow, newshape)...on a JWindow set to be the same size as the entire desktop as I need the UI to remain in place whilst allowing mouse and key events to reach other applications.
Does any one think it would be worth submtting a bug report or feature request for the desired behaviour?
That is: getting top level (heavyweight) containers to layout and repaint into a back buffer, and provide this buffer to the underlying window manager during the resize so that 'stale' window layouts are not drawn to the screen during resizing. This is the way SWT appears to function and so should be possible in theory.

Similar Messages

  • I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    Where are you located?
    Just go and buy an iTunes gift card at any store in your country.
    Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.

  • How can I reset my lock passcode without plugging it into the computer or restoring it or resetting any data?

    I went I to my phone and I tried to unlock my passcode but it did not let me in, how can I reset my lock passcode without plugging it onto the computer on iTunes, or restoring it or deleting any data ?

    You don't. The only way to remove the passcode if forgotten is to restore the device. If you have a backup, you can restore to that last backup, but anything done since that last backup would be lost.Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • How can I use a new computer without deleting everything on iPod?

    Hey Guys
    I need a bit of help.
    My old computer died, it was running Windows XP. I've got myself a new computer running Windows 7.
    I have a copy of my iTunes folders from my old computer (taken 2 days before it died)
    How can I use a new computer without deleting everything on iPod touch?
    I've imported all the folders (music, apps etc) into the new computer's iTunes, but when I sync my iPod
    I receive a window asking if i want to sync i need to erase and replace with the iTunes library on the computer.
    I particularly don't want to do this.
    My wife also uses my iTunes for her iPhone.
    Any help would be appreciated. Thank you

    Make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPod under Devices in iTunes and selecting Backup. Then restore the iPod from that backup and sync as necessary.

  • How can I manage six email accounts WITHOUT them all appearing (twice) in the Folders column?

    How can I manage six email accounts WITHOUT them all appearing (twice) in the Folders column?
    All I need is ONE INBOX (like Windows Mail used to do) ...
    I can see in the 'Account' column of each message which email account it's using.
    Then, I either junk or read the message, followed by delete or file to one of my created folders.
    As it is, half my page is depth is taken up by 12 lines of Account names !!!

    That still leaves SIX lines of Account names down the side. All I want is ONE INBOX ... (I can see which account each message belongs to in the 'Account' column...)

  • My iPhone has two computers in (iTunes wifi sync), how can I remove one of them without using it ?

    Hello everyone.
    My iPhone has two computers in (iTunes wifi sync) how can I remove one of them without using that computer?
    because that PC stopped working so I had to recover it. Now everything is gone on that PC.
    Also I bought a new computer (MacBook Pro) and I use iTunes on it in the mean time. Now I want to remove the old computer!
    here is a photo of my (iTunes WiFi sync)
    is there any way that I can use to do that?
    Thanks

    Hello,
    Did you ever find a solution for this ?
    I have the same issue and i dont know how to fix it.

  • How can I delete an e-mail without opening it?

    How can I delete an e-mail without opening it?

    You can select another email that is not important/you want to delete then hold down the command key and highlight the email you don't want to open. Then click on delete!

  • My old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more inportantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    my old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more importantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
    Have you seen this.
    http://support.apple.com/kb/HT5796
    iCloud
    iOS 6 and later: Go to Settings > iCloud.
    If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
    Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device.

  • How can I pair with Apple TV without going to set up on Apple TV?

    How can I pair with Apple TV without going to set up on Apple TV?

    Sign up for what? All you need is airplay enabled on ATV, then when iPad is on the same network you double tap home button, swipe (left to right motion) and you will bring up the volume/brightness controls, along with airplay. Tap on airplay (rectangle with triangle in it) and select ATV, toggle ON mirroring.
    The only way to mirror the iPad is wirelessly through ATV or by purchasing the adapter and connecting directly to your TV. Bluetooth via your Blu-Ray player won't help with this.
    http://support.apple.com/kb/TS4085

  • How can i watch my tv shows without flash player?

    How can i watch my tv shows without flash player?

    See if your sources have an app and use that.
    Or look for a browser that supports flash and use that.

  • HT2534 How can I make an ITunes account without a credit card?

    How can I create a iTunes account without a Credit card?

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • HT201363 How can I make an Apple ID without credit card if the "none" tab is not visible to me?

    How can I make an Apple ID without credit card if the "none" tab is not visible to me?
    Help me out please

    Hello, aligt9p. 
    Thank you for visiting Apple Support Communities. 
    To create an Apple ID without a credit card, there is a specific series of steps that have to be processed in order to allow the payment to be set as none on creation of the account.
    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/HT2534
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/TS5366
    If the specific steps have not been processed, a credit or debit card will be required to complete the setup the account.
    However, it can be removed and payment method changed to none as long as there is not an outstanding balance.
    iTunes Store: Changing account information
    http://support.apple.com/kb/ht1918
    Cheers,
    Jason H. 

  • Hi, how can I create an iTunes account without a credit card? Thanks

    Hi, how can I create an iTunes account without a credit card? Thanks

    Welcome to Apple Support Communities
    Read > http://support.apple.com/kb/ht2534

  • How can i make an apple ID without any visa card?

    How can i make an apple ID without any visa card?
    I don't wanna add my visa online.
    i just want to make a fast APPLE ID because me and a friend are using same Apple ID, and i wanna make a new one so...
    how?

    Look to the right on this page under 'More like this'.

  • How can i make an apple id without a credit card?

    how can i make an apple id without a credit card?

    This tells you how:
    http://support.apple.com/kb/HT2534

Maybe you are looking for

  • SOAP error in audit log of message monitor

    Hi, I am using RPC wsdl file for idoc-xi-soap services. When I am doing the testing for the scenario in the message monitor I am getting the following audit log: 2008-02-29 15:21:48 Success Message successfully received by messaging system. Profile:

  • Third Party Component Support in Design View

    in this article:" http://flexwiki.adobe.com/confluence/display/ADOBE/Flex+Builder+3+Planning" the follow is shown: Third Party Component Support in Design View Planned milestone: M3 Flex Builder should have better support for third-party components i

  • Unresolved Kernel trap

    For the last several months I've been experiencing the Kernal trap when starting up. This doesn't happen every time. I have Disk Warrior but don't know if that would help correct the problem. However, when I start up in DW, using the "option" or "C"

  • Where to modify code to format data

    I am using BC4J and am pulling a date from the database. I want to just display the date in a custom format. Where do I do this at? This date will also be inputed by the user to insert into the database. I am using Data Tags, but would prefer to use

  • Former iPhone Owner- Now Droid X

    After 3 years with the original iPhone, I was ready to move on or move up. I was tired of the small screen, dropped calls, calls going straight to voicemail, dealing with iTunes (and the CONSTANT upgrades), Steve Jobs' attitude, no flash, poor camera