@@ -0,0 +1,1604 @@
+package net.oryanmat.gui.util.layout;%0A%0Aimport javax.swing.BorderFactory;%0Aimport javax.swing.JComponent;%0Aimport javax.swing.border.Border;%0Aimport java.awt.Color;%0A%0Apublic class Borders %7B%0A%09private Borders() %7B%7D%0A%0A%09public static %3CC extends JComponent%3E C setLineBorder(Color color, C component) %7B%0A%09%09return setBorder(BorderFactory.createLineBorder(color), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setLineBorder(Color color, int thickness, C component) %7B%0A%09%09return setBorder(BorderFactory.createLineBorder(color, thickness), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setLineBorder(Color color, int thickness, boolean rounded, C component) %7B%0A%09%09return setBorder(BorderFactory.createLineBorder(color, thickness, rounded), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setEmptyBorder(int thickness, C component) %7B%0A%09%09return setEmptyBorder(thickness, thickness, thickness, thickness, component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setEmptyBorder(int top, int left, int bottom, int right, C component) %7B%0A%09%09return setBorder(BorderFactory.createEmptyBorder(top, left, bottom, right), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setEmptyBorder(C component) %7B%0A%09%09return setBorder(BorderFactory.createEmptyBorder(), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C compoundWith(Border outsideBorder, C component) %7B%0A%09%09return setBorder(BorderFactory.createCompoundBorder(outsideBorder, component.getBorder()), component);%0A%09%7D%0A%0A%09public static %3CC extends JComponent%3E C setBorder(Border border, C component) %7B%0A%09%09component.setBorder(border);%0A%09%09return component;%0A%09%7D%0A%7D%0A

add Borders