What happens on resize (and how can I force it to happen without resizing)?
Hello everybody!
After running into this for the umpteenth time, I have decided to ask somebody who knows better. So, here goes:
Often, when I change something in the layout of an applet or an application (e.g. removing a JComponent and replacing it with another one), it doesn't get updated. I need to resize the Application window or the AppletViewer window, and then the change is correctly displayed and everything works fine. For Applets, I figured out that I can pack() as a workaround, but this can have some nasty side effects. I haven't been able to find anything for Applets though (an Applet doesn't have a pack() method).
So, does anyone know what exactly happens when I resize that window and why then my changes to the layout are applied? And, more importantly, what I have to do to reproduce this effect without resizing?
Thanks a lot in advance,
Wojtek
Thanks for the reply! Doesn't work though (invalidate-revalidate was one of my first tries...):
- Applet has no revalidate().
- If I put all my stuff into an extra JPanel that I add to the Applet, and revalidate() the JPanel after changing the stuff in it, nothing happens, I still need to resize.
Any other ideas?
Similar Messages
-
My MacBook Pro, running on Lion, randomly flashes with crazy lights and colors. Doesn't happen often, but when it does it's totally random. It looks like the Northern LIghts!!!
What causes this problem and how can I solve it?Really? Oh I get it. You're the kind of person who goes on tech message boards to make jokes - or friends.
Well, I'm trying to solve this problem - which is a rather annoying way to spend a Saturday.
SO either help or don't reply. -
This is what I think may have happened. The other day, Thursday Sept 8th, I shut down my pc in the middle of a Firefox upgrade. Now when I try to access Firefox on my pc, I get this error message:
XULRUNNER Error: Platform version '6.0.2 is not compatible with min Version >= 6.0.1 max Version < 6.0.1
What is this about and how can I retsore access to Firefox on my pc?If you use ZoneAlarm Extreme Security then try to disable Virtualization.
Do a clean reinstall and delete the Firefox program folder.
* http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
*[[/questions/869812]]
*[[/questions/869951]] -
I rented movies on my iPad, they all downloaded, but when I click 'play' it says 'The requested URL was not found on this server'. What does it mean and how can I restore my rented movies?
See this previous discussion:
https://discussions.apple.com/message/16962474#16962474 -
I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?
If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.
-
I just PAID for Black eyed peas Time of my life and now iTunes says I can't put it on my iPod 5th gen ? What? Why? And how can I get it on my ipod? And if I can't put it on my ipod how do I get my money back? I registered my ipod on iTunes, why was a song I can't put on my ipod even offered to me? What a rip?
Because you can only synce with one iTunes library and you are switching libries by using the new computer. To nake this yyour syncing computer:
- Move all the media(apps, music, synced video and photos etc) to the new computer.
- Connect the iPofd yo the computer and bake a backup fo the iPod by right clicking on the iPod under Devices in iTunes and select Back Up
- Restore the iPod from that backup.
Note that the backup that iTunes makes doe not include media.
To move mdia to the new computer see:
iTunes: How to move your music to a new computer
iTunes Store: Transferring purchases from your iOS device or iPod to a computer -
Every time I fire up my iMac a window pops up saying "Mount notification quit unexpectedly" and it gives me the option to either "Reopen" it or click OK, which gets rid of it. What is this please and how can i stop it?
Hopefully this will help you. Try placing your iPad in recovery mode again. You may have to try this a few times.
iOS: Unable to update or restore -
My iPod doesn't sync it keeps coming up with the message "The iPod 'iPod Nano' cannot be synced. An unknown error occurred (13019)." What does this mean and how can I fix it?
I am getting the same error message. Have you figured it out?
-
I have downloaded icloud to my pc, however when i go to sign in to Apple through icloud, i get an error message saying my apple ID is valid but is not an icloud account. What does this mean and how can i update my account so i can access icloud?!
To use iCloud, you must first set it up with your Apple ID on a device with iOS 5 or a Mac with OS X Lion.
-
I am trying to finalize a movie project and I get an "error in user parameter list" message. What does that mean, and how can I fix it?
what movie editing software are you using?
-
When I plug my iPod in my computer, "This iPod cannot be used because the Apple Mobile Device is not started" message pops up. What does this mean and how can I fix it?
Hello di_gitrdone,
Start with this article describing how to restart this service.
http://support.apple.com/kb/ts1567
B-rock -
When I try to sync my ipod it says it cannot be synced because "a duplicate file name was specified". What does that mean and how can I fix it??
I'd start with the following document with that one:
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows -
If someone could help out, it would be greatly appreciated
AnnoyedAppleUser2 wrote:
I was recently trying to buy 'Cloudy With a Chance of Meatballs' for my IPad, but it will not let me purchase the film, what is the problem and how can I fix it?
If someone could help out, it would be greatly appreciated
What does "it will not let me purchase it" mean exactly? Are you getting an error message? -
When I try to sync my iPhone 4S with my computer, I get this message: "This iPhone cannot be used because the Apple mobile device service is not started" What does this mean, and how can I fix it?
means that apple mobile device service needs to be started try this article to get it turned back on
Restart apple mobile device service -
I get a message that my iPad is running an unauthorized modified version, even though I'm currently running 4.3.3. What does it mean, and how can I solve this problem? Please help, i ve tried everything. Thanks
I bought my iPad 2 three months ago from apple, and all my updates re from apple through iTunes. Version 4.3.3 is the latest version I updated, have been trying hard to update 4.35 but I get error messages all the time when the update is almost complete. Everything was working beautifully since I bought it, but this update problem just cropped up last week. I need a way out pls.
Maybe you are looking for
-
Why does the font on my 32-inch Samsung 1080p LCD TV look fuzzy when it is connected to my MBP via HDMI to Mini Display Port? It is only when it is connected to the MBP. When it is connected to my PS3 it is crystal clear. How can I fix this if at all
-
Azure Sync not saving access key in web portal
Azure Sync not saving access key in web portal. You generate a new key, then press Ok and the key cannot be used and does not display again. Could someone please have a look at this?
-
Exporting Premiere sequence into specific Encore project
Is there an "option" or drop down menu that would allow someone to specify an Encore project in which to export to from Premiere? I tried it through Adobe Bridge but it automatically opened a new Encore project. I also had my targeted Encore project
-
Am I unable to get icloud installed on my Mac OS X 10.6.8??
I bought a new ipad today, and was trying to set up icloud on my macbook pro (OS X 10.6.8)... am I unable to do that?
-
Hello, I Would like to use a DLL (written in C). An argument of a function of this DLL is a pointer to a function. How can I use the labview types to have acces to this function ? THanks for your help PS: I hope to be enough clear Remy CLAVERIE CESIU