This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Consider Paul's rocket mass heater.
 
subject: Can somebody show me how to implement buttons?