Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Some SWT objects are not displayed in the design view (Release 1.0)
Some SWT objects are not displayed in the design view (Release 1.0) [message #60691] Wed, 22 September 2004 11:48 Go to next message
Eclipse UserFriend
Hi,
I have created a SWT visual class (composite) and some SWT objects
are not displayed in the design view: Label, buttons...
A warning message is displayed:
java.lang.IllegalArgumentException: (object is not
an instance of declaring class)

Text objects are displayed.

Example of the initialize() method created:

private void initialize() {
label = new Label(this, SWT.NONE);
text = new Text(this, SWT.NONE);
label.setBounds(new org.eclipse.swt.graphics.Rectangle(26,33,127,22));
label.setText("MyFirstLabel");
text.setBounds(new org.eclipse.swt.graphics.Rectangle(173,33,99,22));
setSize(new org.eclipse.swt.graphics.Point(300,200));
}

Can you help me?

Thank you
Re: Some SWT objects are not displayed in the design view (Release 1.0) [message #60693 is a reply to message #60691] Wed, 22 September 2004 12:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Make sure you are using Java JDK 1.4.2. There is a problem with the VE
and SWT with 1.4.0.


--
Thanks, Rich Kulp

Re: Some SWT objects are not displayed in the design view (Release 1.0) [message #60701 is a reply to message #60693] Thu, 23 September 2004 03:41 Go to previous message
Eclipse UserFriend
Thank you Rich,
I was working with the IBM JDK 1.4.1 (other JDK recommended by
eclipse). I have installed SUN JDK 1.4.2 and it works.
Thank you again.


"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:cis8dk$504$1@eclipse.org...
> Make sure you are using Java JDK 1.4.2. There is a problem with the VE
> and SWT with 1.4.0.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Some SWT objects are not displayed in the design view (Release 1.0) [message #598892 is a reply to message #60691] Wed, 22 September 2004 12:19 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Make sure you are using Java JDK 1.4.2. There is a problem with the VE
and SWT with 1.4.0.


--
Thanks, Rich Kulp

Re: Some SWT objects are not displayed in the design view (Release 1.0) [message #598946 is a reply to message #60693] Thu, 23 September 2004 03:41 Go to previous message
Eclipse UserFriend
Thank you Rich,
I was working with the IBM JDK 1.4.1 (other JDK recommended by
eclipse). I have installed SUN JDK 1.4.2 and it works.
Thank you again.


"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:cis8dk$504$1@eclipse.org...
> Make sure you are using Java JDK 1.4.2. There is a problem with the VE
> and SWT with 1.4.0.
>
>
> --
> Thanks, Rich Kulp
> 
>
Previous Topic:How to implement Dialog action in PropertySheet Editor - like in VE
Next Topic:Add SWT objects to the palette
Goto Forum:
  


Current Time: Tue Jul 15 23:29:46 EDT 2025

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

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

Back to the top