Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Beginner question dealing with a GUI

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Location
    Rome, Italy
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Beginner question dealing with a GUI

    Hi guys!
    I need your help.
    I'm pretty new to java, and I copied and compiled a notepad application!
    It was just a basic notepad, I made minor improvements and I've added a new menu, with a new "About" menu item
    Now I'd like that when I click on "About", a window appears, like the following one:
    new-about-window.jpg
    A simple " About " window, where the user can read about the version of the notepad and stuff.

    I setted an empty ActionPerformed, cause I don't know about any graphic component doing this.

    Thanks in advice


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Beginner question dealing with a GUI

    The JOptionPane class might be useful for that.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    Nickbm94 (September 12th, 2014)

  4. #3
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Beginner question dealing with a GUI

    Or instead just a custom class extending JDialog if JOptionPane does not give you the flexibility you want.

  5. The Following User Says Thank You to Cornix For This Useful Post:

    Nickbm94 (September 12th, 2014)

  6. #4
    Junior Member
    Join Date
    Sep 2014
    Location
    Rome, Italy
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Beginner question dealing with a GUI

    It Works, thank you guys =)
    Screenshot from 2014-09-14 22:29:57.jpg

Similar Threads

  1. [SOLVED] Beginner question
    By jwillett29 in forum What's Wrong With My Code?
    Replies: 10
    Last Post: June 24th, 2014, 05:01 PM
  2. Beginner question about main
    By Samaras in forum Java Theory & Questions
    Replies: 2
    Last Post: July 31st, 2012, 10:10 AM
  3. Replies: 3
    Last Post: October 19th, 2011, 07:57 AM
  4. Beginner Question
    By jrt224 in forum Loops & Control Statements
    Replies: 1
    Last Post: March 10th, 2011, 12:56 PM
  5. beginner's question
    By bardd in forum Java Theory & Questions
    Replies: 5
    Last Post: September 14th, 2010, 04:02 PM