-
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
-
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
Forum Rules
|
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
|
Bookmarks