Does this mailing list discard attachments or am I having a problem
with GMail? Someone told me that my attachment has not arrived on the
list. So here is the code again inline:
public XWindow createItemWindow(XWindow xWindow) {
// xMSF is set by initialize(Object[])
try {
// get XWindowPeer
XWindowPeer xWinPeer = (XWindowPeer) UnoRuntime.queryInterface(
XWindowPeer.class, xWindow);
// create Toolkit-Service
Object o = xMSF.createInstance("com.sun.star.awt.Toolkit");
XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(
XToolkit.class, o);
// create WindowDescriptor
WindowDescriptor wd = new WindowDescriptor();
wd.Type = WindowClass.SIMPLE;
wd.Parent = xWinPeer;
wd.Bounds = new Rectangle(0, 0, 100, 100);
wd.ParentIndex = -1;
wd.WindowAttributes = WindowAttribute.SHOW;
wd.WindowServiceName = "combobox";
// create ComboBox
XWindowPeer cBox_xWinPeer = xToolkit.createWindow(wd);
XComboBox cBox_xComboBox = (XComboBox) UnoRuntime.queryInterface(
XComboBox.class, cBox_xWinPeer);
XWindow cBox_xWindow = (XWindow) UnoRuntime.queryInterface(
XWindow.class, cBox_xWinPeer);
// add some elements
cBox_xComboBox.addItems(new String[] { "test", "foo", "bar",
"test2", "foo2", "bar2" }, (short) 0);
return cBox_xWindow;
} catch (com.sun.star.uno.Exception e) {
return null;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]