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 2 of 2

Thread: help with JFrame, drawing, and JButtons

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with JFrame, drawing, and JButtons

    so im trying to make a program(game) that simulates a hangman game. Though im running into serveral issues. im using a JFrame to make the box that shows the actual game process, such as how you might see it on a board or something. however im trying to figure out how to make a guess button on this same box that when pushed will pop up another box asking for a guess(a letter). Also i am looking for a way to have it so if a guess isnt right it draws a shape(acting as drawing a part of the hangmans body), on that same box as the button and the original box. Now im relatively knew to programing and im just about at the end of my first semester in java programming so please example as best as possible why i should be using that and how it works. Also im trying to do most of it solo so please try and include as little code as possible, please and thank you


  2. #2
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: help with JFrame, drawing, and JButtons

    Recommended reading:
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    db

Similar Threads

  1. [SOLVED] Drawing on JFrame
    By kbarrett1989 in forum AWT / Java Swing
    Replies: 3
    Last Post: October 31st, 2010, 03:41 AM
  2. JTables with JButtons, I'm overlooking something
    By aussiemcgr in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 8th, 2010, 11:30 AM
  3. Replies: 4
    Last Post: July 20th, 2010, 07:15 AM
  4. Drawing
    By toxikbuni in forum Java Theory & Questions
    Replies: 0
    Last Post: April 20th, 2010, 02:43 PM
  5. Replies: 2
    Last Post: March 6th, 2009, 03:00 PM