First, I am really loving WindowBuilder. Before, I was doing it by hand, and that wasn't very efficient.
Okay. Problem. Whenever I put a DateChooserCombo into any window, it works fine if I click the test/preview button. I click the calendar button, and it comes up just fine. But, If I compile and run the actual program, it gives me a very long error if I click the calendar button, with apparently no errors in my actual program. Everything works fine, but it dies if I click the button. Whether you need it or not, here's the error:
- Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jface/layout/GridLayoutFactory
at org.eclipse.nebula.widgets.datechooser.DateChooser.createHeader(DateChooser.java:592)
at org.eclipse.nebula.widgets.datechooser.DateChooser.createContent(DateChooser.java:533)
at org.eclipse.nebula.widgets.datechooser.DateChooser.<init>(DateChooser.java:323)
at org.eclipse.nebula.widgets.datechooser.DateChooserCombo.createPopupContent(DateChooserCombo.java:177)
at org.eclipse.nebula.widgets.datechooser.AbstractCombo.createPopup(AbstractCombo.java:403)
at org.eclipse.nebula.widgets.datechooser.AbstractCombo.dropDown(AbstractCombo.java:494)
at org.eclipse.nebula.widgets.datechooser.DateChooserCombo.dropDown(DateChooserCombo.java:226)
at org.eclipse.nebula.widgets.datechooser.AbstractCombo.buttonEvent(AbstractCombo.java:294)
at org.eclipse.nebula.widgets.datechooser.AbstractCombo$1.handleEvent(AbstractCombo.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at TestWindow.open(TestWindow.java:33)
at TestWindow.main(TestWindow.java:18)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.layout.GridLayoutFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 15 more
Test case: create a new window, insert a DateChooserCombo, run, click calendar button. When run in debug mode, it stops when the calendar button is pressed, and opens org.eclipse.swt.widgets.EventTable. When resume is clicked, it dies and gives the error. Does it work for you?
Thanks for the help!