Chrissirhc
Programmer
I have an error with my JDialog where I have a listener for an okay button it just calls a method in one of the objects it got passed through the constructor and its causing an exception.
class okayListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
theEditor.addMusicObject();
}
}
this addMusicObject method works when I call it from an inner class where it comes from. The inner class below
public class addMusicObject implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
myMusicSheet.addMusicObject();
}
}
This listener is instantiated in another toolBar class. Why does this method work in one class and not the other?
Chris
class okayListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
theEditor.addMusicObject();
}
}
this addMusicObject method works when I call it from an inner class where it comes from. The inner class below
public class addMusicObject implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
myMusicSheet.addMusicObject();
}
}
This listener is instantiated in another toolBar class. Why does this method work in one class and not the other?
Chris