Hello,
I am trying to create a graphical user Interface with octave and Java(loaded the package Java-1.2.9.tar.gz).
The functions msgbox, errordlg and inputdlg are working just fine but now I tried to use the function questiondlg:
Antwort = questdlg('Wollen Sie eine bestimmte Anzahl von Runden fahren?', 'FRAGE', 'Ja', 'Nein');
When I try this I get following error function:
error: Invalid call to questdlg. Correct usage is:
-- Function file: P = questdlg (MESSAGE, TITLE)
-- Function file: P = questdlg (MESSAGE, TITLE, DEFAULT)
-- Function file: P = questdlg (MESSAGE, TITLE, BTN1, BTN2, DEFAULT)
-- Function file: P = questdlg (MESSAGE, TITLE, BTN1, BTN2, BTN3,
DEFAULT)
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc <topic>' to search the manual index.
When I try to Change the function, just giving MESSAGE and TITLE and letting the function produce the Buttons(Yes, No and Cancel) on it`s own I get the following:
>> Antwort = questdlg('Wollen Sie eine bestimmte Anzahl von Runden fahren?', 'FRAGE');
error: [java] java.lang.NullPointerException
error: called from
java_invoke at line 54 column 10
questdlg at line 92 column 7
I have no idea how I can fix this and I couldn`t find any similar problem and a solution for it on the Internet.
It would be great if you could help.
Many thanks in advance!
Eva-Maria Wartha