Why does it freeze at 5th time??
Hi,I never used JDesktopPanes and JInternalFrame so maybe I'm missing something important...
I got the following code:
private synchronized void refresh(){
myDesktopPane.removeAll();
MyData[] data=dataStructure.getData();
for(int i=0;i<data.length;i++){
JInternalFrame temp=new JInternalFrame(Integer.toString(data.getAnInfo()),true,true,true,true);
myDesktopPane.add(temp);
temp.setVisible(true);
}which is internal to an interface method:public void methodOnAnEvent(){
//changes dataStructure's data...
refresh();
Basically when the event occours data in dataStructure changes,so a window refreshing is needed and refresh() method is called.
Old internal frames are destroyed with removeAll() method and new internal frames are created and added to desktop pane.
Strangely everything goes right till 5th time same event is received,so:
1st time: internal frames are updated.
2th time: ok
5th time: EVERYTHING FREEZES!
I did several tries and it's always at 5th time...what could it be??
Squall867 wrote:
Hi,I never used JDesktopPanes and JInternalFrame so maybe I'm missing something important...
I got the following code:
private synchronized void refresh(){
}which is internal to an interface method:
public void methodOnAnEvent(){
//changes dataStructure's data...
refresh();Basically when the event occours data in dataStructure changes,so a window refreshing is needed and refresh() method is called.
Old internal frames are destroyed with removeAll() method and new internal frames are created and added to desktop pane.
Strangely everything goes right till 5th time same event is received,so:
1st time: internal frames are updated.
2th time: ok
5th time: EVERYTHING FREEZES!
I did several tries and it's always at 5th time...what could it be??You've got a bug somewhere, but I don't see it in the code you've posted.
I'm curious why the refresh method is synchronized and not called on the EDT, the event dispatch thread?
Similar Messages
-
Why does iTunes freeze up for minutes at a time when modifying INFO (CMD-i) ? My files are not corrupted after it is done like many other threads i have readed. Sometimes it's changing the title of a movie or editing the season and episode number of a TV show ect.....
Yup same here
I am running the latest iTunes, the latest updates to the OS and on an iMac 3.4GHz Quad core i7 with 8GB of RAM and the music stored on local HDD.
Still locks up iTunes for between 2 minutes up to 20 minutes.
Really annoying.
If you find a fix please, please let me know, I have just been throwing hardware at it with no joy at all -
Why does photoshop freeze every time I switch a photo to black and white?
Why does photoshop freeze every time I switch a photo to black and white?
Nobody can tell you anything without proper system and version info or other technical details, including what you actually mean by "switch to black and white".
Mylenium -
Why does my iTunes hang every time when using automatic device detect?
Why does my iTunes hang every time that I connect either of my devices (iTouch-4th Gen, iPod Nano-5th Gen), to my Win 7 (64-bit) PC desktop? By the way, this does not happen if I open iTunes first, and then connect the device. So my workaround was to simply uncheck the checkbox that allows iTunes to start automatically upon device connection. This doesn't fix the problem, but it allows me to synch my device, but it would be nice to be able to have the autodetect work properly, so that iTunes would start normally without locking up on me and freezing. That's what I mean by 'hanging'. My whole computer doesn't freeze--only iTunes.
Hello E
Start with finding the path where the songs are on your PC by right clicking the songs that are missing in iTunes and click Get Info. You should get a window that pops up and in the Summary tab; the path will be there. Then navigate to where it was and see if the files exist. Other than that you can try to search your computer to find those files. Checkout the articles below for tips on finding the missing music, also if some of the tracks are downloaded from the iTunes Store you can download the tracks again by deleting the missing tracks from iTunes and then navigating to the purchases section in the iTunes Store to download them again.
iTunes: Finding lost media and downloads
http://support.apple.com/kb/TS1408
Download past purchases
http://support.apple.com/kb/HT2519
Regards,
-Norm G. -
Why does reader freeze while opening some pdf files and others open instantaneously?
I use pdf files created from CamScanner and shared from DropBox. In DropBox, many times (over 50%) while opening the PDF the process freezes and the error message is Adobe Reader is not responding. If you close the program, and re-open the file, it opens fine. I have saved these files to my computer and the same issue occurs. The files are 100-500kb, so I do not think size is the issue. I have reinstalled Reader (11.1.10) and there is no improvement.
This appears to have reduced the time to load a document. Thanks Jimb From: Anubha Goel <[email protected]>
To: jimb70395944 <[email protected]>
Sent: Friday, March 20, 2015 4:37 AM
Subject: You have been mentioned by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community
|
You have been mentioned
by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community - View Anubha Goel's reference to you Hey jimb70395944, Please try disabling protected mode under 'Edit> Preferences> Security (Enhanced)' and uncheck 'Enable Enhanced Security' option.Then, try again and let me know. Regards,Anubha
Participate in the conversation by replying to this email
To stop receiving these messages whenever you are mentioned, go to your preferences and disable notifications for direct social actions. | -
Why does my iMac appear many times in my network and labelled 1,2,3, etc
why does my iMac appear many times in my network and labelled 1,2,3, etc
Ok, I solved it.
I followed this steps:
1- Turn Off Wi-Fi from the Wireless menu item
2- From the OS X Finder, hit Command+Shift+G and enter the following path:
/Library/Preferences/SystemConfiguration/
3- Within this folder locate and select the following files:
com.apple.airport.preferences.plist
com.apple.network.identification.plist
com.apple.wifi.message-tracer.plist
NetworkInterfaces.plist
preferences.plist
4- Move all of these files into a folder on your Desktop called ‘wifi backups’ or something similar – we’re backing these up just in case you break something but if you regularly backup your Mac you can just delete the files instead since you could restore from Time Machine if needed.
5- Reboot the Mac
6- Turn ON WI-Fi from the wireless network menu again -
Why does iTunes freeze when movie download is processing and it will not restart the download but yet it billed my acct for payment already? It has been a week now and still not done processing. I get an error message when I try to restart the download.
What Windows version?
-
Why does it take iTunes along time to imports CD'S ?
Hi
I was wondering why does it take iTunes along time to import CD's I am using iTunes version 7.02 . Does anyone else have this problem and how do I fix it?
I would appreciate any help,
lizabler
Fifth Generation iPod Windows XPHey lizabler!
Here's a sugestion someone found to be a "workaround" for this issue with iTunes 7:
Don't leave iTunes showing the CD screen, which shows the track names and the importing progress. Click on the library, or iTunes store, as not to leave iTunes on the CD importing screen.
After doing this, your importing speed might increase to a good level once more.
I hope that helps you.
-Kylene -
Why does safari freeze on Facebook whenever I scroll to a video? This only happens in Facebook and only when I scroll to a video.
Hello,
Most videos on the internet are played using the Adobe Flash plugin.
Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash update and/or a malfunctioning browser plugin such as Real Player.
In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
* [[Flash Plugin - Keep it up to date and troubleshoot problems]]
* [[Flash 11.3 crashes]]
* [[Flash 11.3 doesn't load video in Firefox]]
Other, more technical information about these issues can be found under these Links:
* http://forums.adobe.com/thread/1018071?tstart=0
* http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
I hope this helps. Let me know if not. -
Why does system preferences crash every time i try to change the wallpaper?
Why does system preferences crash every time i try to change the wallpaper? Any way to fix or reset the app?
We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash ID's to help us learn more about your crash.
#Enter about:crashes in the address bar (that's where you enter your website URL) and press Enter. You should now see a list of submitted crash reports.
#Copy the 5 most recent crash ID's that you see in the crash report window and paste them into your response here.
Thank you for your cooperation!
More information and further troubleshooting steps can be found in the [[Firefox crashes]] article. -
Why does my router disconnect every time I sleep the computer? Why did this only start to happen recently?
Actually it does with Ethernet too: http://support.apple.com/kb/HT2412?viewlocale=en_US&locale=en_US
What happens when the Mac goes to sleep (not just into idle mode or display sleep)?
On all Macs:
The microprocessor goes into a low-power mode
Video output is turned off, and a connected display may turn off or enter its own idle state
Apple-supplied hard disks spin down; third-party hard disks may spin down
On portable Macs:
The Ethernet port turns off, if applicable (see note below)
Expansion card slots turn off
The built-in modem, if present, turns off (see note below)
An AirPort card, if present, turns off (see note below)
The USB ports only responds to the power key on an external keyboard (see below)
The optical media drive, if present, spins down
Audio input and output turns off
Keyboard illumination, if a feature of your portable computer, turns off
But see the note about selecting, "Wake For Network Access" in Energy Saver preferences.
Note: Portable computers have no network connectivity when in sleep mode, but can wake if the Energy Saver option "Wake for network access" is enabled. If you wish to use file sharing or don't want to interrupt your Internet connection, you should not manually put the computer to sleep, and you should drag the "Computer sleep" slider to Never. -
Why does the slider disappear every time I use it to move the window (Windows: FF 32.0)? How do I get the slider back?
Problem solved: I have been using Walnut for Firefox ver. 2.0.28 theme. For some reason this has been causing the problem. Started FF in Safe Mode, and the slider problem disappeared. Then proceeded to re-enable the Walnut theme: the problem reappeared. Disabled Walnut theme and reenabled all my other add-ons (about 6 of them). Still no problem. So, clearly there is a problem with the use of Walnut theme in FF ver. 32, at least on my Windows 7 installation.
Thanks for all your suggestions and help. Good job, all! -
Why does facetime freeze when I try to connect?
Why does facetime freeze when I try to connect?
First, try a reset: hold down the home button along with the power button until you see the Apple, then let go.
-
Why does my iPhoto quit every time i use it?
why does my iPhoto quit every time i use it?
Thanks for your help.
1st, when I go to software updates, it says all my software is up to date. Perhaps that is because I only have OS 10.7.5 and the updated iPhoto version is for an updated OS version.
I turned off the counts in prefernces and still can empty the trash. It gets stuck and will not empty more than about 1/5 of the trash.
Can you help me figure out the fastest way to back up iPhoto. I have the cloud backup but not sure how to check to see if it is actually backing up my photos. Do you know how to check into this? Is it better to back up on a hard drive?
Thanks again for your help ... -
Why does Siri cc myself each time I write an email with her?
Why does Siri cc myself each time I write an email with her? I have turned off the CCing features in the settings. And when i write an email manually it doesn't send me a CC... Can anyone help me
What is different about the contact information for this one individual from all the other contacts on the device?
Maybe you are looking for
-
GL Balance carry forward have wrong value in FS10N ?
Hello i use FS10N to see value GL99600. in year 2009 i have cumulative value 1,587,437,736.05 at end of year 2009 but in year 2010 cumulative value beginning of year = 2,156,975,057.43 why system have different value between 2 year ? in OB53 my sys
-
Adobe Standard 7.0 compatability in Office 2010
I purchased a new computer in 8/10 running Windows 7 and Office Professional 2010. I installed my purchased copy of Adobe Acrobat 7.0 and it runs fine - except adobe pdf will not manifest itself as a printer in the print selection windows. My wife
-
Number format while export to excel
Hi All, I have a report which contains measures with comma seperator which are fine in report but while export to excel the comma seperator hasn't been displaying in excel. But client wants to show the comma in excel any help greatly appreciate Thank
-
Cant access my ipad after accidentally entering passcode which I cant remember. Unable to restore it as message says I have to turn off "find my phone" in icloud. Cant do this either. Any suggestions on how to overcome this ???
-
Hello, I'm trying to follow the "Build a Java Swing Application with Oracle ADF"Cue Cards. I'm stocked at the step 5 (create a Master Form in ADF Swing Form). When I try to add a collection OrdersView1 to empty form I've got error messages: D:\JDevel