JPanel jPanel = new JPanel(); jPanel. AddMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event. MouseEvent evt) { System.out.
Println("mouseClicked"); } public void mouseEntered(java.awt.event. MouseEvent evt) { System.out. Println("mouseEntered"); } public void mouseExited(java.awt.event.
MouseEvent evt) { System.out. Println("mouseExited"); } public void mousePressed(java.awt.event. MouseEvent evt) { System.out.
Println("mousePressed"); } public void mouseReleased(java.awt.event. MouseEvent evt) { System.out. Println("mouseReleased"); } }).
Seems to be working thanks. – Steven Tilling Nov 20 '10 at 13:37.
Well, you have to override mouseExit: In your GUI class: @Override public void mouseExit(MouseEvent e) { /* Do nothing */ } When all errors are gone. Don't forget to yourPanel. AddMouseListener(theMouseListener): yourPanel.
AddMouseListener(theObjectOfTheClassWhichImplementsTheListener); And then set the focus an the panel, to be sure events will be caught. YourPanel.requestFocus().
Public void mouseClicked(java.awt.event. Public void mouseEntered(java.awt.event. Public void mouseExited(java.awt.event.
Public void mousePressed(java.awt.event. Public void mouseReleased(java.awt.event.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.