Ticket #12368: JMultilineLabelDisableFocusable.patch

File JMultilineLabelDisableFocusable.patch, 538 bytes (added by kolesar, 5 years ago)
  • src/org/openstreetmap/josm/gui/widgets/JMultilineLabel.java

    diff --git a/src/org/openstreetmap/josm/gui/widgets/JMultilineLabel.java b/src/org/openstreetmap/josm/gui/widgets/JMultilineLabel.java
    index 689e698..c576640 100644
    a b public class JMultilineLabel extends JEditorPane { 
    5050        if (!html.startsWith("<html>")) {
    5151            html = "<html>" + html + "</html>";
    5252        }
     53        setFocusable(false);
    5354        super.setText(html);
    5455    }
    5556