Changeset 6911 in josm for trunk


Ignore:
Timestamp:
2014-03-19T00:12:47+01:00 (11 years ago)
Author:
Don-vip
Message:

see #3764 - disables "all bold" stuff by default. UI problems remain to fix

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  
    3333     */
    3434    public JMultilineLabel(String text) {
    35         this(text, true);
     35        this(text, false);
    3636    }
    3737
     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>&lt;br&gt;</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     */
    3847    public JMultilineLabel(String text, boolean allBold) {
    3948        JosmEditorPane.makeJLabelLike(this, allBold);
     
    4958     * this saves a little bit of overhead and is actually taken into account.
    5059     *
    51      * @param width
     60     * @param width the maximum width
    5261     */
    5362    public void setMaxWidth(int width) {
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java

    r6901 r6911  
    8383    /**
    8484     * 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
    8587     */
    8688    public static void makeJLabelLike(JEditorPane pane, boolean allBold) {
Note: See TracChangeset for help on using the changeset viewer.