Skip to main content

L2FProd.com Common Components 0.2

2 replies [Last post]
l2fprod
Offline
Joined: 2003-06-10

Swing has lot of components built-in but still some are missing. This project provides the developer community with these missing components, components inspired (copied?!) from modern user interfaces.

What's new in version 0.2-dev - 2005-08-17

* JTaskPaneGroup scrollOnExpand was broken following the introduction of the new fade in/out effect
* Fixed NullPointerException in DirectoryPropertyEditor if initial directory was null
* Added method to JTipOfTheDay to force the display of the dialog even if user chooses to not show it
* Added French and German bundles for PropertySheet and TipOfTheDay components

Get the build from the "Document & files" section at http://l2fprod-common.dev.java.net

Find who is using the library at http://common.L2FProd.com/use.php

-fred

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Murtuza52
Offline
Joined: 2006-02-14

Hello,

I have downloaded the latest version of L2FProd components. I installed the components in NetBeans 4.2 development version (build netbeans-4_2-daily-bin-200508101800-10_Aug_2005_1800.zip). I cannot place JTaskPane component on any Panel or Frame. It throws following error:
Annotation: The component cannot be instantiated. Please make sure it is a JavaBean.
java.lang.NullPointerException
at com.l2fprod.common.swing.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:241)
at com.l2fprod.common.swing.JTaskPane.updateUI(JTaskPane.java:75)
at com.l2fprod.common.swing.JTaskPane.(JTaskPane.java:65)
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:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:70)
at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:187)
at org.netbeans.modules.form.RADComponent.initInstance(RADComponent.java:132)
at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(MetaComponentCreator.java:1191)
at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(MetaComponentCreator.java:678)
at org.netbeans.modules.form.MetaComponentCreator.access$200(MetaComponentCreator.java:46)
at org.netbeans.modules.form.MetaComponentCreator$2.run(MetaComponentCreator.java:169)
at org.netbeans.modules.form.FormLAF$1.run(FormLAF.java:58)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
at org.openide.util.Mutex.readAccess(Mutex.java:227)
at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:43)
at org.netbeans.modules.form.MetaComponentCreator.precreateVisualComponent(MetaComponentCreator.java:166)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:2303)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.(HandleLayer.java:2299)
at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:1517)
at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:271)
at java.awt.Component.processMouseMotionEvent(Component.java:5533)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3111)
at java.awt.Component.processEvent(Component.java:5257)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Same error for ButtonBar but other components seems to be working fine. Can you help me rectify this error.

Murtuza

l2fprod
Offline
Joined: 2003-06-10

Thanks for the info.

The components worked in previous releases and work in Netbeans 4.1. Something may have changed in the way components get initialized, I'll try to find a fix. For now, there is no workaround.

-fred