KControls

These a bunch of components made for Java Swing to beautify user interfaces and give UI’s a modern look. They include :

Example

How to install KControl(s)

Using Maven

<dependency>
  <groupId>com.k33ptoo</groupId>
  <artifactId>KControls</artifactId>
  <version>2.0</version>
</dependency>

Add your components to your code as described here

Note: Custom properties starts with K eg KStartColor

1. KButton

KButton is an extended version of JButton – it has basically everything else a JButton has, that said we will look only the custom properties. Example

Custom Properties

States & Properties

(Properties to watch out for quicker UI designing)

Hover State

Normal State

2. KGradientPanel

This is an extended version of JPanel with awesome gradient effect. Custom properties Example

Frame Resize and Move Utility

What resize and move utility does is, it allows you to drag or resize your undecorated JFrame. So here is how to use it.

    private static void resizeMoveFrame(JFrame frame) {
        //Resize and move
        SwingUtilities.invokeLater(() -> {

            //Drag around your frame using below

            ComponentMoverUtil.moveFrame(frame, false, frame.getComponents());

           // Use below if you want to resize your frame
            ComponentResizerUtil cr = new ComponentResizerUtil();
            frame.getRootPane().setBorder(new LineBorder(Color.gray));
            cr.setSnapSize(new Dimension(5, 5));
            cr.setDragInsets(new Insets(5, 5, 5, 5));
          
            //always register frame to resize
            cr.registerComponent(frame); 

        });
    } 

Download Jar Here Thank you.