hang man game


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: hang man game

  1. #1
    Join Date
    Nov 2004
    Posts
    1

    hang man game

    hi everyone

    i have been asked to design this game using gui and java

    so plz can i get help with tips and codes

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    ok

    I would have made a JFrame (BorderLayout) w. two panels, one for drawing the gallows and one for presenting questions and entering answers. These two panels I would have coded in separate files and added the components to the JFrame. The gallows in CENTER and the other WEST. In SOUTH I would have had a panel for Close button (etc.).

    In the gallows panel I would have overridden the paint method. I would have used a series of images depicting the situation, this situation is given from the outcome of the answers. The gallowspanel must use paint logic that paints the image that corresponds to the success/failure of the answers.

    Good luck !
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center