Try getContentPane().setBackground(Color.BLUE);
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
You would use a mouse listener for that.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
You can implement as many interfaces as you like. You could also write a separate inner class for your mouse listener, or you could use an anonymous inner class declaration
preCrypTxt.addMouseListener(new MouseAdapter() {
@Override
public void mouseEntered(MouseEvent e) {
...
}
});
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847