sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

How can I change the height to 10 of JFXToggleButton? #1254

Closed alansun2 closed 1 year ago

alansun2 commented 1 year ago

How can I change the height to 10 of JFXToggleButton?

DropSnorz commented 1 year ago

Hi. I don't know what you need exactly, but I'm using the setSize() method to change the toggle button scale. The default size is 10.

JFXToggleButton activeToggleButton = new JFXToggleButton();
activeToggleButton.setSize(5);

Example in OwlPlug app:

image

alansun2 commented 1 year ago

@DropSnorz thanks a lot for answer, in fact I just want to change JFXToggleButton's padding. Now I set the padding = -10.