Java Tutorial

package dialogboxes;
import  javax.swing.JOptionPane; 
import  javax.swing.JFrame;
 * @author Hira
public class Dialogboxes {

     * @param args the command line arguments
    public static void main(String[] args) {
   //   JOptionPane.showMessageDialog(null,
   // \"Eggs are not supposed to be green.\");
  //  }
      Object[] options = {\"Yes, please\",
                    \"No, thanks\",
                    \"Never!,\",\"Later! \"};
    int n=JOptionPane.showOptionDialog(null,
    \"Would you like system to remember password? \",
    \"Remember Password?\",



    Related Post:
  1. Program to show an example of searching Strings for characters

  2. An applet program to display sum of two number of textField

  3. Program to delete mth element from an input string

  4. Program to show the use of Bitwise Operator (^) XOR (Exclusive OR)

  5. Program of FTP client and server

  6. An applet program to draw different shapes

  7. An applet program that displays Text at the center of the string which is passed as parameter

  8. Develop a game application in CORBA for which the player will guess a number between 1 to 100, which will be compared to the random number generated b

  9. Program to show an example of using Abstract Class and Abstract Method

  10. Program for calculating area of a circle on server side,when a client sends request along with given radius and then displaying result on client side

  11. Program to display reverse $ tree

  12. Program using session tracking capability of Servlets, which displays information of current user session by HttpServletRequest object

  13. Program to read command line arguments

  14. Do the following for the Array Insert the element in the array,delete an element from the array,search for a particular element Create multiple thread

  15. Program of an applet to illustrate BarChart

  16. An applet program to perform quick sort

  17. An applet program to give demo of getDocumentBase() and getCodeBase() methods


  19. Program in CORBA which takes a long sentence from client (at least 7 words), passes to the server, server separates out each word and sends back

  20. Program of an applet to display alternate filled and empty circle

Didn't find what you were looking for? Find more on Dialog Boxes