Results 1 to 3 of 3

Thread: message boxes

  1. #1

    Thread Starter
    Lively Member Optic's Avatar
    Join Date
    Mar 2001
    Location
    I'm everywhere and nowhere, I'm inside your computer and inside your mind. You can't escape me for I am vision.
    Posts
    117

    message boxes

    what's the code to create a message box the some text in it and an ok button.

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Code:
    JOptionPane.showMessageDialog(null, "Your message here", JOptionPane.PLAIN_MESSAGE);

    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3
    Member
    Join Date
    Apr 2001
    Location
    Los Angeles
    Posts
    45
    Info message box:

    Toolkit.getDefaultToolkit().beep();
    JOptionPane.showMessageDialog(null, "Message" , "Title" ,JOptionPane.INFORMATION_MESSAGE);

    Error Message box:

    Toolkit.getDefaultToolkit().beep();
    JOptionPane.showMessageDialog(null, "Message" , "Title" ,JOptionPane.ERROR_MESSAGE);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width