I drop a shell and just appear a litle black square in the editor [message #116110] |
Fri, 27 January 2006 16:15 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #611890 is a reply to message #116110] |
Fri, 27 January 2006 19:42 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03440 seconds