swing JFrame listener questions
Hi,
I have a "class A extends JFrame". On this class i have (created and)added class C and D objects - "class C extends JPanel" and "class D extends JPanel". Which listener do i have to use in order to know if ANYTHING has changed either in objects A OR C and D? Thanks |
the action listener attach to the object in focus for instance
in your jframe you make a jpanel Code:
JPanel B = new JPanel(); then give it a listener like Code:
B.addActionListener(new java.awt.event.ActionListener() { |
All times are GMT -5. The time now is 08:19 AM. |