Hi,
I've got a JApplet class with a JPanel object as the content pane. The content pane Panel has a BorderLayout, with one one JPanel derived class in NORTH, and one JPanel derived class in CENTER.
The center panel is a map on which places can be selected. I want the NORTH panel to display info on the place selected, but can't figure out a way for the center panel to notify the north panel that something has changed in the state of the center panel, and to pass the data and update the screen.
Do I need to create a thread in the north panel which constantly monitors the state of the center panel ?
Thanks,
Tim
I've got a JApplet class with a JPanel object as the content pane. The content pane Panel has a BorderLayout, with one one JPanel derived class in NORTH, and one JPanel derived class in CENTER.
The center panel is a map on which places can be selected. I want the NORTH panel to display info on the place selected, but can't figure out a way for the center panel to notify the north panel that something has changed in the state of the center panel, and to pass the data and update the screen.
Do I need to create a thread in the north panel which constantly monitors the state of the center panel ?
Thanks,
Tim