Here you can find the source of doHover(boolean b, AbstractButton... btns)
public static void doHover(boolean b, AbstractButton... btns)
//package com.java2s; //License from project: Open Source License import javax.swing.AbstractButton; public class Main { public static void doHover(boolean b, AbstractButton... btns) { for (AbstractButton btn : btns) { btn.setContentAreaFilled(b); btn.setBorderPainted(b);/*from w ww . j a v a2s.c o m*/ } } }