JIDE: basic JideTabbedPane implementation

This commit is contained in:
Karl Tauber
2019-11-09 17:23:55 +01:00
parent 08f525de5f
commit 7c2b2d7f26
8 changed files with 953 additions and 1 deletions

View File

@@ -73,6 +73,14 @@ public class FlatUIUtils
dim.height + insets.top + insets.bottom );
}
public static Insets addInsets( Insets insets1, Insets insets2 ) {
return new Insets(
insets1.top + insets2.top,
insets1.left + insets2.left,
insets1.bottom + insets2.bottom,
insets1.right + insets2.right );
}
public static Color getUIColor( String key, int defaultColorRGB ) {
Color color = UIManager.getColor( key );
return (color != null) ? color : new Color( defaultColorRGB );