ClassNotFoundException [message #56123] |
Mon, 16 August 2004 00:13  |
Eclipse User |
|
|
|
Originally posted by: nbhatia.sapient.com
I am just starting out with VE. I am getting the following warning with
some Swing code that I added to my VE class.
+++ Warning +++: Sun Aug 15 23:24:17 EDT 2004 Could not instantiate
javax.swing.border.Border with initialization
string=javax.swing.BorderFactory.createCompoundBorder(Border Factory.createLoweredBevelBorder(),BorderFactory.createEmpty Border(10,10,10,10))
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.ClassNotFoundException:
BorderFactory.createLoweredBevelBorder...BorderFactory.creat eEmptyBorder.10.10.10.10..
at
org.eclipse.jem.internal.proxy.initParser.Expression.getEval uationTypeClass(Expression.java:62)
The code that is generating this exception is:
countLabel.setBorder(
BorderFactory.createCompoundBorder(
BorderFactory.createLoweredBevelBorder(),
BorderFactory.createEmptyBorder(10, 10, 10, 10)));
Why am I getting this error? Are there any guidelines that I should follow
when modifying VE generated components?
Thanks.
Naresh
|
|
|
|
Re: ClassNotFoundException [message #56193 is a reply to message #56172] |
Mon, 16 August 2004 17:40   |
Eclipse User |
|
|
|
Originally posted by: nbhatia.sapient.com
Rich Kulp wrote:
> We don't support border factories well yet. That is on our list. Sorry.
> One thing you could try to see if it works (I'm not sure if it will,but
> it is worth a try):
>
javax.swing.BorderFactory.createCompoundBorder(javax.swing.B orderFactory.createLoweredBevelBorder(),javax.swing.BorderFa ctory.createEmptyBorder(10,10,10,10))
> It could be because they aren't fully-qualified.
Fully-qualified classname fixed the problem. Now only one problem remains:
When I set the layout to BoxLayout, this statement is inserted:
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
This looks good, except that when I close and reopen the file, the layout
in the top panel shows the following exception:
layout: java.lang.IllegalArgumentException (IWAV0001E Currently "this"
is not supported)
1) Why is this happening?
2) The error message shows up only in a tool tip in the layout, I could
not find it in the Eclipse log. Is there any where else this might be
logged?
Thanks.
|
|
|
|
Re: ClassNotFoundException [message #597342 is a reply to message #56123] |
Mon, 16 August 2004 11:23  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
We don't support border factories well yet. That is on our list. Sorry.
One thing you could try to see if it works (I'm not sure if it will,but
it is worth a try):
javax.swing.BorderFactory.createCompoundBorder(javax.swing.B orderFactory.createLoweredBevelBorder(),javax.swing.BorderFa ctory.createEmptyBorder(10,10,10,10))
It could be because they aren't fully-qualified.
--
Thanks, Rich Kulp
|
|
|
Re: ClassNotFoundException [message #597345 is a reply to message #56172] |
Mon, 16 August 2004 17:40  |
Eclipse User |
|
|
|
Originally posted by: nbhatia.sapient.com
Rich Kulp wrote:
> We don't support border factories well yet. That is on our list. Sorry.
> One thing you could try to see if it works (I'm not sure if it will,but
> it is worth a try):
>
javax.swing.BorderFactory.createCompoundBorder(javax.swing.B orderFactory.createLoweredBevelBorder(),javax.swing.BorderFa ctory.createEmptyBorder(10,10,10,10))
> It could be because they aren't fully-qualified.
Fully-qualified classname fixed the problem. Now only one problem remains:
When I set the layout to BoxLayout, this statement is inserted:
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
This looks good, except that when I close and reopen the file, the layout
in the top panel shows the following exception:
layout: java.lang.IllegalArgumentException (IWAV0001E Currently "this"
is not supported)
1) Why is this happening?
2) The error message shows up only in a tool tip in the layout, I could
not find it in the Eclipse log. Is there any where else this might be
logged?
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds