SpringLayout class that implements an constraint-based layout manager. With constraint-based layout, you have independent control over the sizing behavior of each of the four sides of a widget. The top, bottom, left, and right sides can be independently attached to the sides of the parent container or the sides of any sibling widget within the same container using either fixed or relative offsets. This proves to be surprisingly powerful and can be used to emulate almost any of the other layout managers. The SpringLayout class is very simple and only specifies the margins of the container.

Main Features

  • Select SpringLayout from the Layouts palette and drop it on a JFrame or JPanel

    image

  • Graphical feedback is provided for all widget size and position operations

    image image

Graphical Feedback

  • Position and size widgets using SpringLayout constraints

    image image

  • Align widgets horizontally and vertically

    image image

  • Indent widgets intelligently

    image image

  • Align widgets to margins

    image image image

  • Anchor widgets to the left, right or both sides

    image image image

  • Anchor widgets to the top, bottom or both sides

    image image image

  • Set anchors via popup context menus

    image image

  • Align and center widgets using toolbar

    image