A Java library, that adds a new JToggleButton looking like a iOS Switch.
It will probably look like this:
Settings: Width= 200, Autosize= True, ovalsize= 6
This is a simple Example.
iOS_ToggleButton switch = new iOS_ToggleButton();
switch.setBounds(x, y, width, height);
You can also adjust the styling a bit. For Example:
iOS_ToggleButton switch = new iOS_ToggleButton(10,true);
switch.setDropShadow(true);
The Arguments ovalsize and autosizing
- ovalSize: regulates circle size.
- autoSizing: Sets the height to something more beautiful :D.