Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   About applets (https://www.askmehelpdesk.com/showthread.php?t=200637)

  • Mar 31, 2008, 08:37 AM
    manchester thani
    about applets
    can any one suggest me a method to get the values in the dialog box using applets(Swing technology)... I desperately need it for my seminar..
  • May 14, 2008, 05:22 AM
    mybestfuture
    Hi,

    String retVal = JOptionPane.showInputDialog( <your applet obj here> , "Enter number");

    Try this sample in any one of the event in your applet class.
    The first argument should be the controller for this option dialog, in your case you may use your applet object there.

    The return value is what is entered by user. It returns null if user enters nothing.

    Hope this will helps you,
    Regs.
    Santhakumar S

  • All times are GMT -7. The time now is 10:41 AM.