DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links