facebook

[Closed] Problems with Bean Palette and Bean Customizers

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #259693 Reply

    tekwojenski
    Member

    I have been trying to use the Bean Palette for a sample written bean. As reported in other posts this functionality is still flacky. I kept getting “The component cannot be instantiated. Please make sure it is a JavaBean.” once you restart the IDE, the problem seams to go away, but then it comes back gain?

    The other problem that I ran into is that my JavaBean displays me a messagebox when the Customize option is selected. In M4ME I did not see any messagebox, 🙁 But I found this in the message logs:

    
    !ENTRY com.genuitec.eclipse.dehory 4 4 2006-10-02 14:39:41.375
    !MESSAGE com.itgp.controls.MyJTextField
    !STACK 0
    java.lang.ClassNotFoundException: com.itgp.controls.MyJTextField
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)
        at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
        at org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:139)
        at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:2520)
        at org.netbeans.modules.form.HandleLayer$NewComponentDrag.<init>(HandleLayer.java:2466)
        at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:1612)
        at java.awt.Component.processMouseMotionEvent(Unknown Source)
        at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(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)
    

    Attached is my project that I tested this functionality with. The Matisse form is com.itgp.test.test3.java/form, and the control that should be added to the palette is: com.itgp.controls.MyJTextField. Once you add the MyJTextField to the palette, add it to the test3 form. Once MyJTextField in on the form, right click it and select Customize. You should see a text box appear. Instead you get java.lang.ClassNotFoundException: com.itgp.controls.MyJTextField.

    http://www.insitechinc.com/download/m4me_5.0.1/wb2.zip

    Regards

    Tek

    #259750 Reply

    Riyad Kalla
    Member

    Custom components is a known issue, thank you for the example project, we will test with it once we get a bug fix in to make sure it works.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Problems with Bean Palette and Bean Customizers

You must be logged in to post in the forum log in