[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] TabFolder on PocketPC using J9
|
I am currently evaluating if SWT could be the way to go on the PocketPC
I have been playing with different widgets, but cannot get TabFolder to
work on the PDA
This works fine on the PC but on the PocketPC I get this:
Exception in thread "main" java.lang.NoSuchMethodError:
org/eclipse/swt/internal/win32/OS.SendMessage(IIILorg/eclipse/swt/internal/win32/TCITEM;)I
at org.eclipse.swt.widgets.TabFolder.createItem(Unknown Source)
at org.eclipse.swt.widgets.TabItem.<init>(Unknown Source)
at HelloWorld.main(Unknown Source)
Why is this?
Are there any list of limitations on the PocketPC other than what is in
the SWT faq at eclipse.org?
This is my testcode:
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
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 HelloWorld {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("HelloWorld");
FillLayout layout = new FillLayout(SWT.VERTICAL);
shell.setLayout(layout);
TabFolder tabFolder = new TabFolder(shell, SWT.NULL);
TabItem item = new TabItem(tabFolder, SWT.NULL);
item.setText("Hello");
item = new TabItem(tabFolder, SWT.NULL);
item.setText("World");
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
}