Click on JCheckBox in JTable gets me a NullPointerException
Hi everyone,
The subject says almost everything : I have a JTable with one colum with check boxes and another one with combo boxes. When I select a check box the value of the combo box of the same line is updated but for some reason I get the following exception :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(BasicTableUI.java:923)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1136)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
The updating of the combo box column is done as following :
final int row = evt.getLastRow();
if ( (Boolean) this.table.getValueAt(row, CHECKBOX_COL) ) {
final Object o = // some non-null object
this.table.setValueAt(o, row, COMBOBOX_COL);
this.table.repaint(0);
The object o is one of the items stored by the combo box so no inconsistency on that side.
Any help welcome !
Julien
I can't provide a SSCCE because of the numerous non-free libraries I'm using.
Anyway, here's what I found out so far :
As the StackTrace tells us the method that throws the exception is setValueIsAdjusting
private void setValueIsAdjusting(boolean flag) {
table.getSelectionModel().setValueIsAdjusting(flag);
table.getColumnModel().getSelectionModel().
setValueIsAdjusting(flag);
}Here table is null, which obviously throws the exception. It has been set to null by calling the BasicTableUI.uninstallUI method.
So my questions are :
Why would the uninstallUI method be called before the other calls ?
Is there a way to controll the calls to this method ?
Is there a way to get the setValueIsAdjusting method to be called before ?
regards
Julien
Similar Messages
-
Clicking on another app I get the video automatically returning to normal screen view
I wonder why, if I put a youtube video in full screen and I click on another app WHILE THE VIDEO IS PLAYING all remain this way. On the contrary, if I first stop the video, clicking on another app I get the video automatically returning to normal screen view... This is very annoying. Is it possible to avoid this?
ThanksSorry, Mozilla doesn't support the patent-encumbered and royalty-encumbered H.264 standard, they support the OGG/Theodora and WebM free open source standards.
Microsoft has a H.264 plugin for Firefox, but it is for Windows7 not WinXP or Win Vista. <br />
http://www.interoperabilitybridges.com/html5-extension-for-wmp-plugin
There may be other H.264 Firefox plugins out there for WinXP, so do a Google search. Or maybe contact support for that DVR security system and see if they know of or have a Firefox plugin. -
I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
How do I get version 4 to do this?
Thanks.The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
1) type in longer strings that narrow the search
2) use an add-on to search just the beginnings:
https://support.mozilla.org/en-US/questions/1037469
3) install an older version of TB:
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/ -
My iMac locks up constantly in email. I click on one or two emails. Then when I click on another email, I get the spinning wheel and have to relaunch. Why does it get confused and lock up? Seems like it is stuck.
10.6.8 here, MacBook Pro. Comcast. Mail freeze ups. Occasional warnings to use "Log Out" under the Apple icon.
Disk Repair run several times. Shows lots of Java "remote" issues.
I run Disk Repair several times, shows a lot of Java, "remote" issues.
Restart don't know if it helps, I do it all the time. What's with quitting Mail but it doesn't quit, and why a separate maneuver to "Log Out".
i -
I am trying to install MasterCollection_CS6_LS16. When I double click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation. What does that mean? How should I proceed?
Hey iraravitz,
Could you please let me know what version of OS are working on.
You might receive this error when you attempt to install on a drive with the HFS+ Case Sensitive file system, which is not supported for installation of Adobe Creative Suite 6.
So, please try installing on a drive that has been formatted with a supported file system.
You might refer the KB doc link mentioned below for the same:
Error "Case-sensitive drives not supported" or similar install error | Mac OS
Let me know if this helps.
Regards,
Anubha -
When I click on a photo it gets larger and then disappears
When I view an album and click on a picture it gets larger for just a second and then goes away. A triange with a is replaced where the picture should be. Apple recenty reinstalled my OS due to problems with I-work opening slow, which is working ok now. They got my pictures on the I-photo again. However, I have many duplicates and they are all messed up with Events out of sort. I don't know if I will ever get them organized again. My concern now is why some of the pic disappear when I click on them. Has anyone had this problem before with the pics disappearing?
Apple messed things up
do you still have the iPhoto library from before they "fied" things? Is so drag the bad i{hoto library to the desktop and restore the backup of the iPhoto library to the pictures folder and hopefully things will be good
Otherwise what they did will take a lot of work and only be partially sucessful in getting yoru library back the way it was
LN -
How do I download a movie to my iphone 3G? When I click 'rent' in itunes, I get a message that there is not enough available local storage, but I can manage storage on my device in 'Settings'. I have activated icloud, but don't know how to change my storage so that I can rent and watch the movie on my phone. thanks for any help you can give.
I always do my Rentals with the itunes program on the computer.
Make rental from itunes store. It will show in movies under library, DO NOT click to play it. Plug in the device to the computer. Click the name of the device on left. Click on movies. There is an option to copy to the device. Sync. obviously you still need space on ipad to put rental but you can have it take computers hard drive space until you need it. -
After upgrading to Maverick, when I double click on the attachment I get this message "...could not be saved, because you cannot change the contents of that folder. Change the folder properties and try again, or try saving in a different location." It happens for all types of files.
Any suggestions as how to fix this?
I'm on a Mac OS X 10.9.3 with Thunderbird 24.5.0Thunderbird > preferences (I think on a mac) and under attachments set the folder
-
how do i rename an iPhoto library. while on iPhoto, if i click File, I dont' find Get Info
Select the iPhoto Libraryin your Pictures Folder. Then go command-i or File -> Get Info.
-
I am using a new imac with osx lion 10.7.5 and have just bought Apple iLife 11 on dvd so that I can install iWeb and iDVD, as macs no longer ship with these apps. When I click on install iLife I get a message saying "iLife.kpg was signed with an invalid certificate.
Next problem is that when moving through the installer and get to custom install, as I only want to install iDVD and iWeb, I am presented with the option to install iDVD, Sounds & Jingles and iWeb, but not sure what is going on with the other 3 options iLife Support etc, they seem to be greyed out but still look like they may install over the top of the newer versions already on my imac. Is it ok for me to just go ahead and hit install? Or do I have a problem?Yep, just install iDVD (plus sounds and jingles) and iWeb if you want it (but note that iWeb apparently won't work if you upgrade to Mountain Lion).
Then use Software Update to get any late iDVD updates. -
Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?
Did you delete all receipts with iDVD in the file name with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/ folder before installing the new copy? If not then do so and delete the new application also.
Click to view full size
Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
OT -
When I click on Mozilla Firefox I get an error box firefox.exe - Entry Point Not Found that reads "The procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll."
Are you really using Windows ME?<br />
Your More system details list shows an IE8 user agent
You need to do a clean reinstall and remove the Firefox program folder before installing a newly downloaded copy of the Firefox installer.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox. -
Many of the internet radio stations that I usually listen to are no longer working. When I click on them, they either get stuck in connecting or just jump to the next station below. What gives?
Same thing here. Always listened to 96.9 The Eagle but not anymore. Skipped to the next station down.
This is one of many. What's going on?
Maybe Apple can tell us!!!! -
I am using Windows 7, 64-bit on a partitioned hard drive on a 2012 MacAir. The trackpad only works with clicking. How do I get the full function of tap and scroll? (I have this on a 2011 Mac Pro with 32 bit Windows 7 and it works properly.)
Windows Control Panel>Boot Camp Control Panel>Trackpad.
-
When I click on Camera, I only get a blank screen. I used it earlier to take a picture. What is wrong?
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
Maybe you are looking for
-
Descriptive flexfield for different purchase order types
Hi, Can i have a descriptive flexfield for different purchase order types? Scenario : I have two purchase order types 1. Blanket : done from req--> auto create --> standard PO 2. Standard --> Direct PO Regards 846691
-
Safari Infected by Pop up Windows - 'Dealfinder' is one
Hello to all, System is as follows: Late 2011 iMac i5 27" Running OSX Mavericks version 10.9.3 I have since yesterday been experiencing constant pop-up windows in Safari. There are 2 types of pop-up windows; the first is a 'dealfinder' pop-up window
-
Creating a Druable Queue in JBoss
Hi Can anybody tell me how to create a Durable Queue in JBoss? Regards Swapna
-
How to eliminate unwanted popup email address suggestions?
I have a overage of suggested addresses when sending email How can I eliminate one or more?
-
Mini book, can't remove "title here"
After creating an album with a different company, I have spent all day resizing and centering the pages to fit in mini albums for their family members. Finally, I'm done. Problem: on the cover page I dropped a photo in. There is the text that says "t