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 Display Output in triangular shape

  2. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  3. Program to show the use of Bitwise Operator (&) AND

  4. Program to show an example of using user-defined package in a program

  5. Program to show the use of Conditional OR Operator (||) in If Statements

  6. An applet program to display alternate filled and empty circle that to in row and column format

  7. Program to show the use of Switch Statement

  8. An applet program of linear sort

  9. An applet program to draw circle in center of the canvas

  10. An applet program of showing new document using showDocument(URL) method

  11. 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

  12. Program sets up a String variable containing a paragraph of text of your choice. Extract the words from the text and sort them into alphabetical order

  13. An applet program that displays random dot

  14. Socket program of multi client chat server

  15. Develop a RMI based application for addition of two complex numbers

  16. corba program of client and a DNS server where given a URL the server sends back an IP address

  17. program which takes a long sentence from the client passes to the server,server separates out each word and sends them back to client in reverse order

  18. Corba program of reverse string

  19. CORBA based application for addition of two mathematical expressions of the form (ax + by) and displaying the result on client side

  20. RMI based application for login validation based on data saved in text file stored on the server and will display appropriate message to the client..

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