D
Dotty
This question came up as a result of my reading
a news message about instanceof. Below is my code,
how does java know that "src" is a JButton?
----
public void actionPerformed(ActionEvent e)
{
Object src = e.getSource(); // get action source
if (src == DynamicPanel.dynamicResetButton)
{
// do stuff
return;
}
// other stuff
}
a news message about instanceof. Below is my code,
how does java know that "src" is a JButton?
----
public void actionPerformed(ActionEvent e)
{
Object src = e.getSource(); // get action source
if (src == DynamicPanel.dynamicResetButton)
{
// do stuff
return;
}
// other stuff
}