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");  

see also:


Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

visual c++ - Using relative values in array sorting ( asm ) -