problems extending JPanel [message #24679] |
Thu, 11 March 2004 07:24  |
Eclipse User |
|
|
|
Originally posted by: mb.thomas-daily.de
Greetinx!
I am using Visual Editor 0.5.
I just tried to add a class that extends JPanel.
The result:
!ENTRY org.eclipse.ve.java.core 2 0 Mrz 11, 2004 13:10:25.404
!MESSAGE Exception
!STACK 0
java.lang.ExceptionInInitializerError: IWAV0118E Class
somepackage.MyJPannel (or one of its superclasses) is not found or has
errors.
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.primInsta ntiateBeanProxy(BeanProxyAdapter.java:825)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(BeanProxyAdapter.java:752)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.addCo mponentWithConstraint(ContainerProxyAdapter.java:210)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.addCo mponent(ContainerProxyAdapter.java:178)
at
org.eclipse.ve.internal.jfc.core.ContainerProxyAdapter.appli ed(ContainerProxyAdapter.java:53)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.appliedLi st(BeanProxyAdapter.java:180)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.applyAllS ettings(BeanProxyAdapter.java:525)
at
org.eclipse.ve.internal.jfc.core.ComponentProxyAdapter.apply AllSettings(ComponentProxyAdapter.java:635)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(BeanProxyAdapter.java:754)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itSetting(CompositionProxyAdapter.java:125)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itBeanProxy(CompositionProxyAdapter.java:103)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1663)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.ve.java.core 2 0 Mrz 11, 2004 13:10:25.404
!MESSAGE Could not instantiate somepackage.MyJPannel with initialization
string=null
!ENTRY org.eclipse.ve.java.core 2 0 Mrz 11, 2004 13:10:25.404
!MESSAGE Exception
!STACK 0
java.lang.ExceptionInInitializerError: IWAV0118E Class
somepackage.MyJPannel (or one of its superclasses) is not found or has
errors.
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.primInsta ntiateBeanProxy(BeanProxyAdapter.java:825)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.instantia teBeanProxy(BeanProxyAdapter.java:752)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itSetting(CompositionProxyAdapter.java:125)
at
org.eclipse.ve.internal.java.core.CompositionProxyAdapter.in itBeanProxy(CompositionProxyAdapter.java:103)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1663)
at java.lang.Thread.run(Unknown Source)
This is the code:
package somepackage;
import javax.swing.JPanel;
public class MyJPannel extends JPanel
{
}
This is the example code that uses the above class:
package somepackage;
import javax.swing.JFrame;
public class MyJPanelExamleJFrame extends JFrame
{
private javax.swing.JPanel jContentPane = null;
private somepackage.MyJPannel myJPannel = null;
public MyJPanelExamleJFrame()
{
super();
initialize();
}
private void initialize()
{
this.setSize(300, 200);
this.setContentPane(getJContentPane());
}
private javax.swing.JPanel getJContentPane()
{
if (jContentPane == null)
{
jContentPane = new javax.swing.JPanel();
jContentPane.setLayout(new java.awt.BorderLayout());
jContentPane.add(getMyJPannel(), java.awt.BorderLayout.CENTER);
}
return jContentPane;
}
private somepackage.MyJPannel getMyJPannel()
{
if (myJPannel == null)
{
myJPannel = new somepackage.MyJPannel();
}
return myJPannel;
}
}
Is this a bug?
thanx!
Marcus
|
|
|
|
|
|
|
|
|
|
Re: problems extending JPanel [message #25763 is a reply to message #25752] |
Fri, 12 March 2004 15:56  |
Eclipse User |
|
|
|
Originally posted by: mb.thomas-daily.de
Rich Kulp wrote:
> Not VE 0.5.0. The 1.0.0 drivers do, but they are not up to production
> level yet.
>
> We aren't doing any bug fixes for 0.5.0 because we are heads down on
> 1.0.0 work.
I see. I wish you good luck and a nice weekend :)
And thanks for this nevertheless nice tool!
Marcus
|
|
|
Re: problems extending JPanel [message #584228 is a reply to message #24679] |
Thu, 11 March 2004 07:49  |
Eclipse User |
|
|
|
Marcus Beyer wrote:
> Greetinx!
>
> I am using Visual Editor 0.5.
> I just tried to add a class that extends JPanel.
> The result:
now I've seen that there are some more messages in the log:
!ENTRY org.eclipse.jem.beaninfo 2 0 Mrz 11, 2004 13:10:15.483
!MESSAGE %Introspection failed on class "somepackage.MyJPannel."
!ENTRY org.eclipse.jem.beaninfo 2 0 Mrz 11, 2004 13:10:15.967
!MESSAGE %Introspection failed on class "somepackage.MyJPanelExamleJFrame."
!ENTRY org.eclipse.jem.beaninfo 2 0 Mrz 11, 2004 13:10:24.467
!MESSAGE %Introspection failed on class "somepackage.MyJPannel."
!ENTRY org.eclipse.jem.beaninfo 2 0 Mrz 11, 2004 13:10:24.951
!MESSAGE %Introspection failed on class "somepackage.MyJPanelExamleJFrame."
!ENTRY org.eclipse.ve.java.core 2 0 Mrz 11, 2004 13:10:25.404
!MESSAGE Could not instantiate somepackage.MyJPannel with initialization
string=null
!ENTRY org.eclipse.ve.java.core 2 0 Mrz 11, 2004 13:10:25.404
Marcus
|
|
|
Re: problems extending JPanel [message #584275 is a reply to message #24679] |
Thu, 11 March 2004 10:18  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Do you have build on resource changes turned on? This kind of error
usually occurs because your classes aren't being compiled. Try doing a
rebuild all first to see if that allows them to come up.
--
Thanks, Rich Kulp
|
|
|
Re: problems extending JPanel [message #584396 is a reply to message #25058] |
Fri, 12 March 2004 06:00  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> Do you have build on resource changes turned on?
I think so, but can't find that switch :|
> This kind of error
> usually occurs because your classes aren't being compiled. Try doing a
> rebuild all first to see if that allows them to come up.
Thank you! Strange: the error only disappears from the "Java Beans"
view, when I close the Visual Editor of the file referencing the new
class -- and open it again. Is this normal for VE?
In the meantime I have a new (but smaller) problem with this tiny class:
import javax.swing.BoxLayout;
import javax.swing.JPanel;
public class XBoxedJPanel extends JPanel
{
public XBoxedJPanel()
{
super();
initialize();
}
private void initialize()
{
this.setSize(300, 200);
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
}
}
When I add this somewhere I don't get an entry for "layout" in the
"Properties" view. The "layout" field is simply empty. Why?
thanx!
Marcus
|
|
|
Re: problems extending JPanel [message #584439 is a reply to message #25465] |
Fri, 12 March 2004 10:18  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
We have problems with BoxLayout. It will take a little time to catch
everything up. New parsing algorithm we are using breaks BoxLayout
because it is special because it requires the parent for construction.
(This is actually a stupid implementation. Layouts aren't meant to be
shared, and they are told who the parent is when they applied, there was
no reason to require it in the constructor too).
--
Thanks, Rich Kulp
|
|
|
Re: problems extending JPanel [message #584475 is a reply to message #25465] |
Fri, 12 March 2004 10:53  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Eclipse 3.0 has changed notifications on when things are changed and we
haven't had the time to make it work completely. So it may be necessary
at times to close and reopen an editor if something changes.
--
Thanks, Rich Kulp
|
|
|
Re: problems extending JPanel [message #584503 is a reply to message #25692] |
Fri, 12 March 2004 11:05  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> Eclipse 3.0 has changed notifications on when things are changed and we
> haven't had the time to make it work completely. So it may be necessary
> at times to close and reopen an editor if something changes.
Sorry? I am using Eclipse 2.1.2.
Then VE runs also on Eclipse 3?
thanx!
Marcus
|
|
|
Re: problems extending JPanel [message #584531 is a reply to message #25745] |
Fri, 12 March 2004 12:36  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Not VE 0.5.0. The 1.0.0 drivers do, but they are not up to production
level yet.
We aren't doing any bug fixes for 0.5.0 because we are heads down on
1.0.0 work.
> Sorry? I am using Eclipse 2.1.2.
>
> Then VE runs also on Eclipse 3?
>
> thanx!
> Marcus
--
Thanks, Rich Kulp
|
|
|
Re: problems extending JPanel [message #584561 is a reply to message #25752] |
Fri, 12 March 2004 15:56  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> Not VE 0.5.0. The 1.0.0 drivers do, but they are not up to production
> level yet.
>
> We aren't doing any bug fixes for 0.5.0 because we are heads down on
> 1.0.0 work.
I see. I wish you good luck and a nice weekend :)
And thanks for this nevertheless nice tool!
Marcus
|
|
|
Powered by
FUDForum. Page generated in 0.05270 seconds