Results 1 to 4 of 4
  1. #1
    StayAwakeNow is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Is there any sort of messagebox/inputbox?

    Hi

    I'm used to program VB.NET in school and therefor if I needed any input/output I would use an Inputbox/messagebox.
    Does this exist in Java?

    Thanks in advance

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Is there any sort of messagebox/inputbox?

    Look into using the methods available in the JOptionPane class, especially the showMessageDialog, showConfirmDialog, showInputDialog methods. The JOptionPane API will tell you more about these methods and how to use them.

  3. #3
    StayAwakeNow is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Re: Is there any sort of messagebox/inputbox?

    Ok thanks, was asking this because I'm fairly new to Java.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Is there any sort of messagebox/inputbox?

    Quote Originally Posted by StayAwakeNow View Post
    Ok thanks, was asking this because I'm fairly new to Java.
    You're welcome. Give them a try and please let us know how it works out. Oh and welcome to Java and the Java-Forums.org!

Similar Threads

  1. Problem with my inputBox
    By watachiaieto in forum AWT / Swing
    Replies: 5
    Last Post: 05-23-2012, 12:27 PM
  2. Yes No Icon MessageBox in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 07:57 PM
  3. Demonstration of the MessageBox class
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 07:57 PM
  4. MessageBox Example in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 07:53 PM
  5. MessageBox example
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-14-2008, 11:33 AM

Tags for this Thread

Posting Permissions

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