Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » I drop a shell and just appear a litle black square in the editor
I drop a shell and just appear a litle black square in the editor [message #116110] Fri, 27 January 2006 16:15 Go to next message
Eclipse UserFriend
Originally posted by: felipe-martins.procergs.rs.gov.br

Hi...

I'm using:

- j2sdk1.4.2_06
- eclipse-SDK-3.2M4-win32
- EMF 2.2.0
- GEF 3.2.0
- Visual Editor 1.2.0

I'm newbie using VE and I've just started to use it.
However I couldn't even drop a SWT container shell in the visual editor.
Nothing happens. Just a litle black square appears to me.

That is the java source generated:

+++++++++++++++++++++++

import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;



public class TesteSWT3 {

private Shell sShell = null;

/**
* This method initializes sShell
*
*/
private void createSShell() {
sShell = new Shell();
sShell.setLayout(new GridLayout());
sShell.setSize(new Point(405, 180));
}

/**
* @param args
*/
public static void main(String[] args) {

}

}
+++++++++++++++++++++++

I know that some simple thing must to be done, but I don't know what....
If someone could help...

Thanks in advance........

Felipe.
Re: I drop a shell and just appear a litle black square in the editor [message #116165 is a reply to message #116110] Fri, 27 January 2006 19:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

How did you create your class? Did you use the Visual Class wizard to do
it. Or did you create it by hand?

It looks like you didn't use the wizard. The wizard would of set up your
classpath correctly. If you simply just added SWT.jar to the classpath
it won't work. You need to remove that and instead go to
project->Properties->Java BuildPath->Libraries tab. Select that Add
Library button and add in the SWT Library from there. This will add it
correctly for your project.

--
Thanks,
Rich Kulp
Re: I drop a shell and just appear a litle black square in the editor [message #116243 is a reply to message #116165] Mon, 30 January 2006 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: felipe-martins.procergs.rs.gov.br

You have right. I had created my project by hand adding swt.jar to the
classpath. When I created by visual class wizard, it worked correctly.

thanks Rich!

Felipe.
Re: I drop a shell and just appear a litle black square in the editor [message #611890 is a reply to message #116110] Fri, 27 January 2006 19:42 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

How did you create your class? Did you use the Visual Class wizard to do
it. Or did you create it by hand?

It looks like you didn't use the wizard. The wizard would of set up your
classpath correctly. If you simply just added SWT.jar to the classpath
it won't work. You need to remove that and instead go to
project->Properties->Java BuildPath->Libraries tab. Select that Add
Library button and add in the SWT Library from there. This will add it
correctly for your project.

--
Thanks,
Rich Kulp
Re: I drop a shell and just appear a litle black square in the editor [message #611896 is a reply to message #116165] Mon, 30 January 2006 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: felipe-martins.procergs.rs.gov.br

You have right. I had created my project by hand adding swt.jar to the
classpath. When I created by visual class wizard, it worked correctly.

thanks Rich!

Felipe.
Previous Topic:VE in Eclipse 3.1.2 (Linux)
Next Topic:Error opening Visual Class in Visual Editor
Goto Forum:
  


Current Time: Fri Apr 26 12:22:07 GMT 2024

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

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

Back to the top