This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Can somebody show me how to implement buttons? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can somebody show me how to implement buttons?" Watch "Can somebody show me how to implement buttons?" New topic
Author

Can somebody show me how to implement buttons?

Klaas Vredevort
Greenhorn

Joined: Dec 27, 2005
Posts: 29
Hey

I would like to know how to implement buttons instead of a manual input in the following program (I highlighted the part where the user puts in a letter of the alphabet so that you can see what I mean)


marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Klaas Vredevort:
... I would like to know how to implement buttons instead of a manual input...

I think you're asking how to build a GUI for your program, right? This Swing tutorial should give you an idea of what's involved.

If you haven't worked with Swing before, this might seem like a lot to tackle. But once you get a feel for the concepts, it's not that bad. We also have a Swing forum especially for GUI topics.
[ March 17, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
jQuery in Action, 2nd edition
 
subject: Can somebody show me how to implement buttons?
 
Similar Threads
Hangman problem!
Adding a usedChar array in my program
Please explain this line of code to me
Hangman BufferReader ??
Updating the _ _ _ _ _ in a hangman game?