Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » ClassNotFoundException
ClassNotFoundException [message #56123] Mon, 16 August 2004 04:13 Go to next message
Eclipse UserFriend
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 #56172 is a reply to message #56123] Mon, 16 August 2004 15:23 Go to previous messageGo to next message
Eclipse UserFriend
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 #56193 is a reply to message #56172] Mon, 16 August 2004 21:40 Go to previous messageGo to next message
Eclipse UserFriend
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 #56212 is a reply to message #56193] Mon, 16 August 2004 23:39 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Similar problem. We don't support "this" at this time.

See

https://bugs.eclipse.org/bugs/show_bug.cgi?id=69668

This defect actually came around because of the problem of using
BorderLayout(this,...).


--
Thanks, Rich Kulp

Re: ClassNotFoundException [message #597342 is a reply to message #56123] Mon, 16 August 2004 15:23 Go to previous message
Eclipse UserFriend
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 21:40 Go to previous message
Eclipse UserFriend
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 #597351 is a reply to message #56193] Mon, 16 August 2004 23:39 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Similar problem. We don't support "this" at this time.

See

https://bugs.eclipse.org/bugs/show_bug.cgi?id=69668

This defect actually came around because of the problem of using
BorderLayout(this,...).


--
Thanks, Rich Kulp

Previous Topic:ClassNotFoundException
Next Topic:V E on Mac OS X
Goto Forum:
  


Current Time: Sun Jul 07 08:17:30 GMT 2024

Powered by FUDForum. Page generated in 0.03476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top