ImageIcon can not be drawn and NullPointerException was thrown
I have a dialog that displays list of items whose cell renderer is customized using ImageIcons. Permissions have been granted properly, I think. The dialog can be shown but it can not draw it's children element correctly. And java.lang.NullPointerException was thrown:
java.lang.NullPointerException
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at javax.swing.ImageIcon.paintIcon(Unknown Source)
at javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon(Unknown Source)
at javax.swing.plaf.basic.BasicToggleButtonUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
n Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)The same app. can be run without problem in normal environment.(comp. in secure mode). It would be very nice if u can give me some advices about that.
(Possibly I have not understanden any important aspects about JSE in this field.)
Thanks!
Done. I should have read through the usage of Icons in Java Tutorial first. If anybody has this similar problem, that is a good source for clearing.
Similar Messages
-
Dear Adobe.
Yesterday I installed the latest version of Flash Player that auto appeared on my screen. Ever since I can not play video, and my system has become painfully slow. I have Mac OS Lion 10.7.5 and software is up to date. Before this everything was running beautifully. Can you please provide a link so I can uninstall the latest version only. Thank you. Stephen Kress. Melbourne. AustraliaWhen you run the uninstaller, it will uninstall all Flash Player versions.
If you want to revert to an older version after that, get it from http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html -
I was wondering how to get my background back? it just quit on me one day and I can not get it back, I was wondering how to get my background back? it just quit on me one day and I can not get it back
explain further please...
Is this your problem?
Program, Utility, Desktop picture, Screensaver won't open or save changes
https://discussions.apple.com/docs/DOC-3046
https://discussions.apple.com/community/notebooks/macbook_pro?view=documents -
I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!
Jerricayoung,
you have a 13-inch Mid 2012 MacBook Pro. It’s modern enough that it supports booting into Recovery mode. To do so, hold down a Command key and the R key as you start up. It should eventually show a Mac OS X Utilities menu. Select Disk Utility from that menu; when the Disk Utility window appears, select the bootable volume from the left-hand side of the window. (It’s typically called “Macintosh HD”.) When the volume is selected, some buttons will appear on the right-hand side. If it’s not greyed out, press the Verify Disk button; if it is greyed out, or if it reports on errors that it found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu; that will restart your MacBook Pro in its normal mode. With luck, that will be enough to get you to your normal login screen, rather than the white screen. -
I have a new Mac and I migrated mi old one to this. I can not open iTunes because a message stating "iTunes Library.itl" can not be opened because it was created in more recent version of iTunes. There is not a new version to download. How can I fix this?
Go to iTunes > about iTunes. What version are you running? If necessary, hold down the option key while starting iTunes and create a new, test library so it will start.
-
I need to go very very near to my wireless modem to find my network and if i go a little far i can not connect but before it was not like that?!what is the problem?!
Hey Babakgh,
I understand that you've experienced recent issues with your Wi-Fi network where you can only connect to it if you're close to the router. I would start off troubleshooting your Wi-Fi network by following the steps in here:
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS1398
Take care,
Delgadoh -
My Computer will not let me open itunes at all. It tells me that the itunes libary can not be read because it was created by a newer version.
If you still have an issue you may have to see about using the iTunes version (application) included with Snow Leopard 10.6 from the installer or an another one if available online, and see if that will install.
Sometimes you may have uninstall the bits left in your system by the earlier (or later) iTunes installers; as they all leave a trace and these can stop a different version of iTunes from being installed.
Not sure if the following site/link will tell the method...
•Apple - Support - iTunes - install & update:
http://www.apple.com/support/itunes/install/
•Troubleshooting iTunes installation on Mac OS X:
http://support.apple.com/kb/HT2311
Good luck & happy computing!
ps: i see you resolved this issue. it's magic! -
I upgraded my iphone 4 to ios 5.0.1 yesterday. Today the device can not find carrier and if finds than it freezes when I tap call. I swictched on and off but no change.
No. There is no legit way to go back at all.
It seems that you had a hacked iphone that was locked back to the rightful carrier when you updated as it should. -
Itunes will not launch, it shows message of "itunes library .itl" can not be read because it was created by a newer version of itunes. I tried opene it in save mode but I had the same problem.
If you still have an issue you may have to see about using the iTunes version (application) included with Snow Leopard 10.6 from the installer or an another one if available online, and see if that will install.
Sometimes you may have uninstall the bits left in your system by the earlier (or later) iTunes installers; as they all leave a trace and these can stop a different version of iTunes from being installed.
Not sure if the following site/link will tell the method...
•Apple - Support - iTunes - install & update:
http://www.apple.com/support/itunes/install/
•Troubleshooting iTunes installation on Mac OS X:
http://support.apple.com/kb/HT2311
Good luck & happy computing!
ps: i see you resolved this issue. it's magic! -
The need to compress to max 1GB is obsolete. You can not determine what and how the space provided on iDisk can be used. You provide it or NOT. If you DO, then let US free, if you don't, then TELL us WHY, so we can choose to go public elsewhere. The strengthood for Apple for the fourthfullness to be legal, which I respect, can become too restrictive in my European eyes. Any hearing around? René
As was noted in the introductory material for the Apple Support Communities website (presented when you registered), these forums are set up for user-to-user assistance and discussion, not for user-to-Apple communications.
Suggest you resubmit your position statement to Apple via product feedback for iCloud, which you can access via a link on this page -
Apple - Feedback
...we've all moved to iCloud, isn't it?
Um, no, we all haven't. -
Movie 11 can not copy everything and put it into a new project in imovie 9 it works fine
movie 11 can not copy everything and put it into a new project
in imovie 9 it works fine and there i cant copy 5 different project into new project
but in imovie 11 i only can copy project with option dubler project?AppleMan Thanks very much for the information, however I could't make it work. I followed your instructions to the letter, in fact I tried every which-way. I created a dedicated file into which I copied and pasted the project from "package contents" but it was still greyed out when I went to retrieve it. I also found that the file size was reduced to only a few Kb. Any further step-by-step instructions would be appreciated as I am obviously doing something wrong. Babowa It appears that in imovie everything has to be "finalised" before it can be used or shared elsewhere in the same way as a disk has to be to be played elsewhere. Funnily enough an MOV file I converted to Mp4 was not greyed out and I was able to import it.... an exercise I am not keen on because of resolution loss during conversion
-
Can not delete emails and tool bar at top does not change over
Can not delete emails and tool bar at top does not change over from safari. HELP
If you hold the command key down (the one with the ⌘ on it) and hit the + key you can make the fonts larger. Might help out, I know as I've gotten up there in years I've had to use it more and more
In the mean time while twtwtw mulls this over, can you supply any further information? Did the system crash or didi anything change before you started having the problem? Are you really running 10.5.8 as your profile says?
We'll start with those for now,
regards
Message was edited by: Frank Caggiano BTW ⌘- - (command minus) will make the fonts smaller -
itunes wont open i get "itunes libary.itl" can not be read because it was created by a newer version of itunes. tried deleting itunes an re installing. help
The same thing happened to me no one has replied to my comment either!! I need help!!
-
I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document...
Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat. By default the installation files have been saved to your download folder.
If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files. -
I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?
Hello mrmacjohn,
Verifying that any iCloud account that may be signed in is signed out should resolve this error.
On your Mac, open iCloud preferences, then click Sign Out.
iCloud: Change iCloud feature settings
http://support.apple.com/kb/PH2613
Cheers,
Allen
Maybe you are looking for
-
I have an iMac G5 (20 inch screen) i sight (no intel chip).Leopard OS 10.5.8. Recently I went on Facebook and tried to open a movie site someone had sent me on Facebook andwhen I tried to open the video on Facebook, I was told I had to upgrade my Ad
-
1.5.4 ora-00904 when opening a package from the connections navigator
Hi I downloaded 1.5.4 for windows and immediately checked to see if this long standing bug has been fixed 1.5.0.53 New file types not opened as plsql (and now neither a However it hasn't so next thing I do is go the connections navigator to open a pa
-
Digimarc watermarking as part of Lightroom Export
I would *love* to see Lightroom and Digimarc get together to create an "embed Digimarc watermark" in the Export dialog box. It would be incredibly powerful and would allow photographers to batch resize and embed the digimarc watermark in one step to
-
Where to download asci_c.h, visa.h and vpptype.h?
I installed IVI Compliance Package Version 2.1 for Windows 2000/98/ME/NT/XP from http://digital.ni.com/softlib.nsf/websearch/6A09FEF37D6AFC2786256DBA005B2796?opendocument&node=132060_US I cannot find the files asci_c.h, visa.h and vpptype.h in my C:\
-
ITune delete pod casts when syncing
Hi, I download few pod casts on my iPhone and iPad but I don't subscribe them through iTunes. I just use "Get more episodes" link in iPod application. Also in my iTunes I have not selected pod cast sync option. But every time I sync my iPhone or iPad