MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
vict0r
4 Post subject: [Closed] Palette and Beans/Custom components like SwingX  PostPosted: Oct 25, 2006 - 11:41 PM
Registered Member
Registered Member


Joined: Sep 17, 2004
Posts: 127

Hello,
maybe you know already http://www.swinglabs.org/ or http://swingx.dev.java.net/. We're using SwingX components like JXTable and JXTreeTable, among others. Adding those components to the Matisse Palette, and placing them in Matisse Forms works fine, in NetBeans.

But in Matisse4ME, there are some issues:
    * although those components are extending Swing components, and therefore are fully implementing the API requirements for JavaBeans, after adding to M4ME palette they do not appear under "Beans", but under "Custom". (Ok, this is not really a bug, but looks to me like a warning sign).

    * Next, when trying to add one of the SwingX components from the Palette to the form, a error message occurs telling that the chosen component is not a JavaBean: "The component cannot be instantiated. Please make sure it is a JavaBean."! Additionally, after that the error Log contains a ClassNotFoundException stacktrace for the same SwingX component (see below).
Code:
java.lang.ClassNotFoundException: org.jdesktop.swingx.JXTable
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
   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.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:271)
   at java.awt.Component.processMouseMotionEvent(Component.java:5533)
   at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3144)
   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:1778)
   at java.awt.Component.dispatchEvent(Component.java:3803)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
   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)

    * the workaround of adding SwingX components to the form using NetBeans, and do the rest in Matisse4MyEclipse does not really work for "form editing" and "form preview": the JFrame/JDialog holding the SwingX controls behaves as if no SwingX controls were embedded. Anyway, the form looks perfect when running or debugging the application.

This is a real showstopper, we started again sharing the source/project directories between Eclipse & NetBeans, and switching between the two IDE's all the time.

I really hope you have some hint for this. Thanks in advance,
Victor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
vict0r
Post subject:   PostPosted: Oct 25, 2006 - 11:44 PM
Registered Member
Registered Member


Joined: Sep 17, 2004
Posts: 127

Have forgotten some additional Information:
- latest Eclipse 3.2.1 with latest ME and M4ME (according to the update sites)
- Sun JDK 1.5.0_09
- Windows XP

_________________
Victor Ott
ME user since 2004-01-28
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
vict0r
Post subject:   PostPosted: Oct 25, 2006 - 11:54 PM
Registered Member
Registered Member


Joined: Sep 17, 2004
Posts: 127

For the record:
I've decided to open a new forum topic instead of following up on the topic from jcombes Problems adding custom components, because that topic might be Java6 related (although I don't really think so).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 31, 2006 - 10:53 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

This will be fixed in 5.0.3

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rlocklear
Post subject: 5.1.1 GA  PostPosted: Apr 23, 2007 - 08:33 AM
Veteran Member
Veteran Member


Joined: Aug 04, 2003
Posts: 6

I'm having this same problem in 5.1.1
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 23, 2007 - 03:22 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

rlocklear,
Can you be more specific? Which component? What's the exception? Are you just trying to add it to the palette and cannot, or something else?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits