void zApplyMinimumToggleTimeMenuButtonWidthInPixels ( ) { if ( parent == null ) { return ; } Dimension menuButtonPreferredSize = parent . getComponentToggleTimeMenuButton ( ) . getPreferredSize ( ) ; int width = menuButtonPreferredSize . width ; int height = menuButtonPreferredSize . height ; int minimumWidth = minimumToggleTimeMenuButtonWidthInPixels ; width = ( width < minimumWidth ) ? minimumWidth : width ; Dimension newSize = new Dimension ( width , height ) ; parent . getComponentToggleTimeMenuButton ( ) . setPreferredSize ( newSize ) ; }
zApplyMinimumToggleTimeMenuButtonWidthInPixels This applies the specified setting to the time picker .