Skip to content

A Java library, that adds a new JToggleButton looking like a iOS Switch

Notifications You must be signed in to change notification settings

Gaareth/iOS-JToggle-Switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 

Repository files navigation

iOS-JToggle-Switch

A Java library, that adds a new JToggleButton looking like a iOS Switch.

Download

It will probably look like this:

Will look like this:

Settings: Width= 200, Autosize= True, ovalsize= 6

Usage

This is a simple Example.

iOS_ToggleButton switch = new iOS_ToggleButton();
switch.setBounds(x, y, width, height);

Customizable

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.

Download

Download