Skip to main content

netbeans platform 6.9.1 JXTable

8 replies [Last post]
volokos
Offline
Joined: 2010-08-25

Hello all. A added JXTable to Palette. When i'm trying to add jxtable to topcomponent, i'm getting error:
"The component cannot be instantiated. Please make sure..."

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
volokos
Offline
Joined: 2010-08-25

Thank' you gues, problem was in my look and feel theme, there was something wrong. I turned off this theme in netbeans, and now it's ok.

angelswing
Offline
Joined: 2008-09-02

it seems like i miss the point, anyway, do you use any thrid-party laf, like substance? if so, you can deactive it and try again.

angelswing
Offline
Joined: 2008-09-02

hello guys:
i submit a deadlock bug report of netbeans 6.9 and 6.9.1 some days ago, however, there is a same bug report already, rollback your jdk to 6u20 would be fine if you use 6u21.

[Bug 187697] Deadlock during opening GUI form which uses SwingX (org.jdesktop)

volokos
Offline
Joined: 2010-08-25

Sorry, but where i must add "beaninfo jar" to my netbeans platform project?

digz6666
Offline
Joined: 2007-05-20

Add to your java project you're using.

volokos
Offline
Joined: 2010-08-25

i added this jar to wrapped library. but this did not work.
in my ide log i see this message:

UIDefaults.getUI() failed: no ComponentUI class for: org.jdesktop.swingx.renderer.JRendererLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=16777224,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:711)
at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133)
at javax.swing.UIDefaults.getUI(UIDefaults.java:741)
at javax.swing.UIManager.getUI(UIManager.java:989)
at javax.swing.JLabel.updateUI(JLabel.java:256)
at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1203)
at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1194)
at org.jdesktop.swingx.JXTable.updateRendererUI(JXTable.java:4305)
at org.jdesktop.swingx.JXTable.updateUI(JXTable.java:4231)
at javax.swing.JTable.(JTable.java:615)
at javax.swing.JTable.(JTable.java:540)
at org.jdesktop.swingx.JXTable.(JXTable.java:509)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:168)
at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:247)
at org.netbeans.modules.form.RADComponent.initInstance(RADComponent.java:186)
at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(MetaComponentCreator.java:1402)
at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(MetaComponentCreator.java:850)
at org.netbeans.modules.form.MetaComponentCreator.addVisualComponent(MetaComponentCreator.java:829)
at org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent2(MetaComponentCreator.java:395)
at org.netbeans.modules.form.MetaComponentCreator.access$500(MetaComponentCreator.java:87)
at org.netbeans.modules.form.MetaComponentCreator$3.run(MetaComponentCreator.java:366)
at org.netbeans.modules.form.FormLAF$2.run(FormLAF.java:293)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
at org.openide.util.Mutex.readAccess(Mutex.java:320)
at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:276)
at org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent(MetaComponentCreator.java:362)
at org.netbeans.modules.form.MetaComponentCreator.createComponent(MetaComponentCreator.java:134)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.end(HandleLayer.java:3132)
at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:2477)
at org.netbeans.modules.form.HandleLayer.endDragging(HandleLayer.java:1261)
at org.netbeans.modules.form.HandleLayer.mousePressed(HandleLayer.java:1952)
at java.awt.Component.processMouseEvent(Component.java:6260)
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:4235)
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 org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
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)

digz6666
Offline
Joined: 2007-05-20

You should add swingx jars to project you're using in order to drag jxtable from palette.
I've been using swingx for 2 years, and its working fine with the netbeans palette.

kschaefe
Offline
Joined: 2006-06-08

Did you add the beaninfo jar?

Karl