Changeset 8211 in josm for trunk


Ignore:
Timestamp:
2015-04-18T01:48:03+02:00 (4 years ago)
Author:
simon04
Message:

fix #11350 - Notes input: avoid line break within a word

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NoteInputDialog.java

    r7937 r8211  
    1111import javax.swing.JPanel;
    1212import javax.swing.JScrollPane;
    13 import javax.swing.JTextArea;
    1413
     14import org.openstreetmap.josm.gui.widgets.JosmTextArea;
    1515import org.openstreetmap.josm.tools.ImageProvider;
    1616
     
    2222public class NoteInputDialog extends ExtendedDialog {
    2323
    24     private JTextArea textArea = new JTextArea();
     24    private JosmTextArea textArea = new JosmTextArea();
    2525
    2626    /**
     
    4545        textArea.setColumns(30);
    4646        textArea.setLineWrap(true);
     47        textArea.setWrapStyleWord(true);
    4748        JScrollPane scrollPane = new JScrollPane(textArea);
    4849        scrollPane.setAlignmentX(Component.LEFT_ALIGNMENT); //without this the label gets pushed to the right
Note: See TracChangeset for help on using the changeset viewer.