Anyway on a test app, or any app, I get the following message when running:
Designer internal error: lava.lang.NullPointerException%0ALog Included: Yes%0A%0Ajava.lang.NullPointerException at com.swtdesigner.model.swing.JavaBeanInfo.createEventProperty(JavaBeanInfo.java:1474) at com.swtdesigner.model.swing.JavaBeanInfo.getPropertyList...
It goes on for about twenty more pages. I wish I could copy/paste it but it comes up in a modal dialog box with no copy ability.
I am using WindowBuilder Pro 4.1.1, compiled on 2005.07.27 for Eclipse 3.10.
I'm running SuSE 9.3 with Java 1.5.0_04.
Ideas?
Here's my code:
- Code: Select all
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.CoolBar;
import org.eclipse.swt.widgets.CoolItem;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
public class main {
protected Shell shell;
public static void main(String[] args) {
try {
main window = new main();
window.open();
} catch (Exception e) {
e.printStackTrace();
}
}
public void open() {
final Display display = Display.getDefault();
createContents();
shell.open();
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
protected void createContents() {
shell = new Shell();
shell.setSize(800, 600);
shell.setText("Kai's Test Panel");
}
}