Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: mr bean
Added: Apr 15, 2018 6:56 AM
Views: 11
  1.     public void btn(final JButton one) {
  2.         one.setBackground(Color.decode("#01579B"));
  3.         one.addMouseListener(new java.awt.event.MouseAdapter() {
  4.             public void mouseExited(java.awt.event.MouseEvent evt) {
  5.                 //     JOptionPane.showMessageDialog(null, 1);
  6.                 one.setBackground(Color.decode("#01579B"));
  7.             }
  8.  
  9.         });