Ignore:
Timestamp:
2013-04-19T22:21:57+02:00 (11 years ago)
Author:
Don-vip
Message:

see #4429 - Right click menu "undo, cut, copy, paste, delete, select all" for each text component (originally based on patch by NooN)

File:
1 edited

Legend:

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

    r5576 r5886  
    3939import javax.swing.JTabbedPane;
    4040import javax.swing.JTable;
    41 import javax.swing.JTextArea;
    4241import javax.swing.JViewport;
    4342import javax.swing.ListSelectionModel;
     
    7271import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    7372import org.openstreetmap.josm.gui.widgets.JFileChooserManager;
     73import org.openstreetmap.josm.gui.widgets.JosmTextArea;
    7474import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher;
    7575import org.openstreetmap.josm.tools.GBC;
     
    9191    protected JCheckBox cbWireframe;
    9292
     93    /**
     94     * Constructs a new {@code MapPaintDialog}.
     95     */
    9396    public MapPaintDialog() {
    9497        super(tr("Map Paint Styles"), "mapstyle", tr("configure the map painting style"),
     
    406409     */
    407410    public static class LaunchMapPaintPreferencesAction extends AbstractAction {
     411        /**
     412         * Constructs a new {@code LaunchMapPaintPreferencesAction}.
     413         */
    408414        public LaunchMapPaintPreferencesAction() {
    409415            putValue(NAME, tr("Preferences"));
     
    652658
    653659        private void buildSourcePanel(StyleSource s, JPanel p) {
    654             JTextArea txtSource = new JTextArea();
     660            JosmTextArea txtSource = new JosmTextArea();
    655661            txtSource.setFont(new Font("Monospaced", txtSource.getFont().getStyle(), txtSource.getFont().getSize()));
    656662            txtSource.setEditable(false);
     
    673679
    674680        private void buildErrorsPanel(StyleSource s, JPanel p) {
    675             JTextArea txtErrors = new JTextArea();
     681            JosmTextArea txtErrors = new JosmTextArea();
    676682            txtErrors.setFont(new Font("Monospaced", txtErrors.getFont().getStyle(), txtErrors.getFont().getSize()));
    677683            txtErrors.setEditable(false);
     
    702708
    703709    public class MapPaintPopup extends JPopupMenu {
     710        /**
     711         * Constructs a new {@code MapPaintPopup}.
     712         */
    704713        public MapPaintPopup() {
    705714            add(reloadAction);
Note: See TracChangeset for help on using the changeset viewer.