title: JButton background and foreground color swipe when button pressed
body: <p>Could any one help to implement below thing?</p>
  
  <p>I have custom button which i have overloaded the paintComponent and plainText method to give my own look. the main focus of overridden is to give my own style for buttons.</p>
  
  <p>so here the requirement is originally button background is white and foreground is black and when user press the button the color should revert like background as black and foreground as white.</p>
  
  <p>how can i achieve this?</p>