- Timestamp:
- 2014-03-19T00:12:47+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JMultilineLabel.java
r6901 r6911 33 33 */ 34 34 public JMultilineLabel(String text) { 35 this(text, true);35 this(text, false); 36 36 } 37 37 38 /** 39 * Constructs a normal label but adds HTML tags if not already done so. 40 * Supports both newline characters (<code>\n</code>) as well as the HTML 41 * <code><br></code> to insert new lines. 42 * 43 * Use setMaxWidth to limit the width of the label. 44 * @param text The text to display 45 * @param allBold If {@code true}, makes all text to be displayed in bold 46 */ 38 47 public JMultilineLabel(String text, boolean allBold) { 39 48 JosmEditorPane.makeJLabelLike(this, allBold); … … 49 58 * this saves a little bit of overhead and is actually taken into account. 50 59 * 51 * @param width 60 * @param width the maximum width 52 61 */ 53 62 public void setMaxWidth(int width) { -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java
r6901 r6911 83 83 /** 84 84 * Adapts an {@link JEditorPane} to be used as a powerful replacement of {@link javax.swing.JLabel}. 85 * @param pane The editor pane to adapt 86 * @param allBold If {@code true}, makes all text to be displayed in bold 85 87 */ 86 88 public static void makeJLabelLike(JEditorPane pane, boolean allBold) {
Note:
See TracChangeset
for help on using the changeset viewer.