This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hello, I'm new to java and netbeans so this may be user error :) I've looked at a couple of database tutorials for java found on the Netbeans site and have come across a couple of differences between netbeans on the two platforms (win32 and OSX). My primary platfrom is OSX. Firstly the autoCreateRowSorter check box for a table isn't available in the parameter window in the OSX version although I installed a fresh copy of the Win version at work and it's there. I can use autoCreateRowSorter in the code if I use custom code or just hard code it it so it's not like it's not available. Secondly, following this tutorial http://blogs.sun.com/JavaFundamentals/entry/using_beans_binding_to_search I got as far as trying to bind the text field to the table rowsorter but the rowsorter entry doesn't appear in the osx version of netbeans. John
Sorry about passing the buck again, but this looks like an issue with the visual beans binding support. I am passing in on to the team I *think* is responsible, it may get reassigned again :(
Isn't the difference in that on OS X you run NetBeans on JDK 5? The autoCreateRowSorter property on JTable was added in JDK 6. The fact that you can write it in code might be that your project has JDK 6 set as target platform, however in the GUI builder the JTable component is instantiated by the same JDK as the IDE runs on - that might be why the property is missing. You'd need to run NetBeans on JDK 6 as well. Can you confirm this is the case?
Hello, I'm not 100% sure where to find which java platform the IDE is running in. From the Netbeans/About Netbeans menu I get: Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57 System: Mac OS X version 10.5.5 running on x86_64; MacRoman; en_US (nb) Which would indicate Java 6 no? John
Yes, this means that NetBeans runs on Java 6. So I have no idea then. Can you describe where exactly you see the "autoCreateRowSorter check box" missing? Is it in the properties window when you select a JTable? I don't find it mentioned in the tutorial either...
Closing as WORKSFORME - reporter did not provide additional info for more than 4 weeks. Protean, please reopen the issue if the problem persist and you can provide additional info (e.g. answer the tpavek's question) Thanks a lot
Reopened. I got the same report from community people and I'm also seeing that "autoCreateRowSorter" checkbox is missing on table properties window. When I tried on Windows, it's actually visible. NetBeans IDE 6.7.1 (Build 200907230233) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02-83 Mac OS X バージョン 10.5.7; SJIS; ja_JP (nb)
Created attachment 85658 [details] properties window - no AutoCreateRowSorter
I was able to reproduce this issue. It is caused by a bug in Mac's Java 6. All meta-information about components (including the set of properties) is provided by corresponding BeanInfos. The BeanInfos for Swing components are stored in dt.jar. Unfortunately, dt.jar of Java 6 on Mac seems to be obsolete. It corresponds to Java 5 components e.g. all properties added in Java 6 are omitted. For example: rowSorter, autoCreateRowSorter, dropLocation and dropMode of JTable. I will try to implement some workaround.
Fixed - new Java 6 properties should be available in Properties by now. These properties are loaded using introspection (not using BeanInfo). Hence, their category may not be correct (they can be placed in Other Properties instead of Properties). Modified files: http://hg.netbeans.org/cdev/rev/83032ab57b2c
*** Bug 176856 has been marked as a duplicate of this bug. ***