Hi,
sorry me again. While trying to implement the Dialog, I keep getting the
following error:
com.sun.star.lang.IllegalArgumentException:
DialogProviderImpl::getDialogModel: failed to parse URI:
at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:183)
at $Proxy17.createDialogWithHandler(Unknown Source)
at
name.dhiller.jBorderLiner.ColorDialog.createDialog(ColorDialog.java:50)
at
name.dhiller.jBorderLiner.BL_TB_SelectColorBtn.dispatch(BL_TB_SelectColorBtn.java:42)
at
name.dhiller.jBorderLiner.jBorderLiner.dispatch(jBorderLiner.java:165)
This is an extract of the code of "createDialog" (which is mostly a copy
of the example sent by Ariel):
public void createDialog(XComponentContext xContext, String DialogURL) {
m_xContext = xContext;
try {
final XMultiComponentFactory xFact =
m_xContext.getServiceManager();
final Object xObject = xFact.createInstanceWithContext(
"com.sun.star.awt.DialogProvider2", m_xContext);
final XDialogProvider2 aDialogProvider = (XDialogProvider2)
UnoRuntime.queryInterface(XDialogProvider2.class,
xObject);
m_xDialog = aDialogProvider.createDialogWithHandler(DialogURL, this );
:
this is what causes the error.
createDialog is a method of
public class ColorDialog implements XDialogEventHandler
which is instantiated through a simple
oColorDialog = new ColorDialog();
oColorDialog.createDialog(m_xContext, m_sDlgDir);
The URL is correct, I also tried everything imaginable. So, where am I
wrong?
--
Dietmar
---
Fatti non fummo per viver come bruti, ma per seguir virtute e conoscenza
(Dante)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]