Macros.confirm example doesnt run
Submitted by Thursday, 3 March, 2005 - 23:14
on
Hi folks,
Please forgive my newbiness... I'm sure there's a pretty simple solution to this.
I've simply cut and paste the following statement from http://jedit.org/users-guide/helpful-methods.html to display a confirmation box:
int result = Macros.confirm("Do you really want to learn"
+ " about BeanShell?",JOptionPane.YES_NO_OPTION);
I get the following error:
Typed variable declaration : Error in method invocation: Static method confirm( java.lang.String, int ) not found in class'org.gjt.sp.jedit.Macros' : at Line: 1 :
So, if I understand this correctly, the macro doesnt know what an int is? I take it then I have to include a class somehow...
Any suggestions?
Cheers all,
Tim
Please forgive my newbiness... I'm sure there's a pretty simple solution to this.
I've simply cut and paste the following statement from http://jedit.org/users-guide/helpful-methods.html to display a confirmation box:
int result = Macros.confirm("Do you really want to learn"
+ " about BeanShell?",JOptionPane.YES_NO_OPTION);
I get the following error:
Typed variable declaration : Error in method invocation: Static method confirm( java.lang.String, int ) not found in class'org.gjt.sp.jedit.Macros' : at Line: 1 :
So, if I understand this correctly, the macro doesnt know what an int is? I take it then I have to include a class somehow...
Any suggestions?
Cheers all,
Tim