swing - Getting an input with a java applet while executing a method -
i have implemented console calculator application. stores variables well. want use same parser in java applet. want use same parser class time want inputs variables via dialog box. should stop execution of program , asks user input in popup box , when enter value, want use value in next line of application.
instead of getting value bufferedreader, want sthg this
if someappletclasss.dialogresult = ok, value = someappletclass.myvalue;
i'm new java programming , appreciated.
use joptionpane#showinputdialog()
.
string inputvalue = joptionpane.showinputdialog("please input value");
Comments
Post a Comment