Hi
Could someone please help. I have an error "<identifier> expected", while trying to compile the following code:
class ShapeCanvas extends Canvas implements ActionListener, MouseListener, MouseMotionListener, UMLModelListener
{
UMLModel myModel = new UMLModel();
myModel.addUMLModelListener(new UMLModelListener()
{
public void UMLModelChanged(final UMLModel myModel)
{
repaint();
}
});
...
I have the following file; Model.java file/ UMLModel.java/ UMLModelListener.java
Could someone please help me and tell me what the problem is. Thanks
Could someone please help. I have an error "<identifier> expected", while trying to compile the following code:
class ShapeCanvas extends Canvas implements ActionListener, MouseListener, MouseMotionListener, UMLModelListener
{
UMLModel myModel = new UMLModel();
myModel.addUMLModelListener(new UMLModelListener()
{
public void UMLModelChanged(final UMLModel myModel)
{
repaint();
}
});
...
I have the following file; Model.java file/ UMLModel.java/ UMLModelListener.java
Could someone please help me and tell me what the problem is. Thanks