Here you can find the source of getHudControlShadowSize(AbstractButton button)
Parameter | Description |
---|---|
button | the button that the shadow is drawn on. |
public static int getHudControlShadowSize(AbstractButton button)
//package com.java2s; //License from project: LGPL import javax.swing.AbstractButton; public class Main { /**/*from w ww . j av a 2s . c o m*/ * Gets the number of pixels that a HUD style widget's shadow takes up. HUD button's have a * shadow directly below them, that is, there is no top, left or right component to the shadow. * * @param button the button that the shadow is drawn on. * @return the number of pixels that a HUD style widget's shadow takes up. */ public static int getHudControlShadowSize(AbstractButton button) { // TODO use the button's font size to figure this out. return 2; } }