git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2069 spike updated with latest (FeatureTypeSettings)
[jalview.git]
/
src
/
jalview
/
gui
/
JvSwingUtils.java
diff --git
a/src/jalview/gui/JvSwingUtils.java
b/src/jalview/gui/JvSwingUtils.java
index
79e0cef
..
4658668
100644
(file)
--- a/
src/jalview/gui/JvSwingUtils.java
+++ b/
src/jalview/gui/JvSwingUtils.java
@@
-356,12
+356,13
@@
public final class JvSwingUtils
/**
* Adds a titled border to the component in the default font and position (top
/**
* Adds a titled border to the component in the default font and position (top
- * left)
+ * left), optionally witht italic text
*
* @param comp
* @param title
*
* @param comp
* @param title
+ * @param italic
*/
*/
- public static void createItalicTitledBorder(JComponent comp,
+ public static TitledBorder createTitledBorder(JComponent comp,
String title, boolean italic)
{
Font font = comp.getFont();
String title, boolean italic)
{
Font font = comp.getFont();
@@
-374,6
+375,8
@@
public final class JvSwingUtils
title, TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,
font);
comp.setBorder(titledBorder);
title, TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,
font);
comp.setBorder(titledBorder);
+
+ return titledBorder;
}
}
}
}