Method1-Java in 21 Days uses recipe 1a
1) Subclass JFrame
a) Implement ActionListener
b) Private class implements ActionListener
c) Private static class implements ActionListener
d) Anonymous class implements ActionListener
Method2-Head first Java uses recipe 2b(J's favorite)
2) Don’t subclass anything
a) Implement ActionListener
b) Private class implements ActionListener
c) Private static class implements ActionListener
d) Anonymous class implements ActionListener
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment