here i attached my question ... and i have done the first part and i stuck in the logic part ,can anybody help
paradiseis
0
Newbie Poster
Recommended Answers
Jump to PostThen post what you have done so far. The code that there is in the txt is not complete and doesn't compile. You are missing the closing brackets
Jump to PostLook at the ActionListener interface and implement the method that it has. Now whenever you click a button that method is called. You can find which button was clicked by doing:
public void actionPerformed(ActionEvent evt) { Object src = ect.getSource(); if (src==button1) { // the button1 was …
Jump to Postyour code is wrong because you don't use code tags.
Maybe if you did it would be correct, I don't bother checking.
All 9 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
paradiseis
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
paradiseis
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
paradiseis
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
paradiseis
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.