Changeset 5886 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2013-04-19T22:21:57+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r5849 r5886 15 15 import javax.swing.JScrollPane; 16 16 import javax.swing.JTabbedPane; 17 import javax.swing.JTextArea;18 17 19 18 import org.openstreetmap.josm.Main; 20 19 import org.openstreetmap.josm.data.Version; 21 20 import org.openstreetmap.josm.gui.util.GuiHelper; 21 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 22 22 import org.openstreetmap.josm.plugins.PluginHandler; 23 23 import org.openstreetmap.josm.tools.BugReportExceptionHandler; … … 38 38 public class AboutAction extends JosmAction { 39 39 40 /** 41 * Constructs a new {@code AboutAction}. 42 */ 40 43 public AboutAction() { 41 44 super(tr("About"), "about", tr("Display the about screen."), … … 49 52 Version version = Version.getInstance(); 50 53 51 J TextArea readme = new JTextArea();54 JosmTextArea readme = new JosmTextArea(); 52 55 readme.setEditable(false); 53 56 readme.setText(Version.loadResourceFile(Main.class.getResource("/README"))); 54 57 readme.setCaretPosition(0); 55 58 56 J TextArea revision = new JTextArea();59 JosmTextArea revision = new JosmTextArea(); 57 60 revision.setEditable(false); 58 61 revision.setText(version.getReleaseAttributes()); 59 62 revision.setCaretPosition(0); 60 63 61 J TextArea contribution = new JTextArea();64 JosmTextArea contribution = new JosmTextArea(); 62 65 contribution.setEditable(false); 63 66 contribution.setText(Version.loadResourceFile(Main.class.getResource("/CONTRIBUTION"))); 64 67 contribution.setCaretPosition(0); 65 68 66 J TextArea license = new JTextArea();69 JosmTextArea license = new JosmTextArea(); 67 70 license.setEditable(false); 68 71 license.setText(Version.loadResourceFile(Main.class.getResource("/LICENSE"))); … … 103 106 } 104 107 105 private JScrollPane createScrollPane(J TextArea area) {108 private JScrollPane createScrollPane(JosmTextArea area) { 106 109 area.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 107 110 area.setOpaque(false); -
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r5765 r5886 19 19 import javax.swing.JPanel; 20 20 import javax.swing.JScrollPane; 21 import javax.swing.JTextArea;22 21 import javax.swing.SwingUtilities; 23 22 … … 32 31 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 33 32 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 33 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 34 34 import org.openstreetmap.josm.tools.GBC; 35 35 import org.openstreetmap.josm.tools.Shortcut; … … 43 43 public class DownloadPrimitiveAction extends JosmAction { 44 44 45 /** 46 * Constructs a new {@code DownloadPrimitiveAction}. 47 */ 45 48 public DownloadPrimitiveAction() { 46 49 super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID."), … … 144 147 p.add(missing, GBC.eol()); 145 148 } 146 J TextArea txt = new JTextArea();149 JosmTextArea txt = new JosmTextArea(); 147 150 txt.setFont(new Font("Monospaced", txt.getFont().getStyle(), txt.getFont().getSize())); 148 151 txt.setEditable(false); -
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r5808 r5886 20 20 import javax.swing.JLabel; 21 21 import javax.swing.JPanel; 22 import javax.swing.JTextField;23 22 24 23 import org.openstreetmap.josm.Main; … … 31 30 import org.openstreetmap.josm.tools.GBC; 32 31 import org.openstreetmap.josm.tools.ImageProvider; 32 import org.openstreetmap.josm.gui.widgets.JosmTextField; 33 33 34 34 … … 149 149 150 150 class ImageryOffsetDialog extends ExtendedDialog implements FocusListener { 151 public final J TextField tOffset = new JTextField();152 J TextField tBookmarkName = new JTextField();151 public final JosmTextField tOffset = new JosmTextField(); 152 JosmTextField tBookmarkName = new JosmTextField(); 153 153 private boolean ignoreListener; 154 154 public ImageryOffsetDialog() { -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r5780 r5886 14 14 import javax.swing.JOptionPane; 15 15 import javax.swing.JPanel; 16 import javax.swing.JTextField;17 16 import javax.swing.event.DocumentEvent; 18 17 import javax.swing.event.DocumentListener; … … 25 24 import org.openstreetmap.josm.tools.OsmUrlToBounds; 26 25 import org.openstreetmap.josm.tools.Shortcut; 26 import org.openstreetmap.josm.gui.widgets.JosmTextField; 27 27 28 28 public class JumpToAction extends JosmAction implements MouseListener { 29 /** 30 * Constructs a new {@code JumpToAction}. 31 */ 29 32 public JumpToAction() { 30 33 super(tr("Jump To Position"), null, tr("Opens a dialog that allows to jump to a specific location"), Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump To Position")), … … 34 37 } 35 38 36 private J TextField url = new JTextField();37 private J TextField lat = new JTextField();38 private J TextField lon = new JTextField();39 private J TextField zm = new JTextField();39 private JosmTextField url = new JosmTextField(); 40 private JosmTextField lat = new JosmTextField(); 41 private JosmTextField lon = new JosmTextField(); 42 private JosmTextField zm = new JosmTextField(); 40 43 41 44 private double zoomFactor = 0; -
trunk/src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java
r5567 r5886 17 17 import javax.swing.JPanel; 18 18 import javax.swing.JRadioButton; 19 import javax.swing.JTextField;20 19 21 20 import org.openstreetmap.josm.Main; … … 27 26 import org.openstreetmap.josm.tools.UrlLabel; 28 27 import org.openstreetmap.josm.tools.Utils; 28 import org.openstreetmap.josm.gui.widgets.JosmTextField; 29 29 30 30 public class Map_Rectifier_WMSmenuAction extends JosmAction { … … 111 111 panel.add(new JLabel(tr("Supported Rectifier Services:")), GBC.eol()); 112 112 113 J TextField tfWmsUrl = new JTextField(30);113 JosmTextField tfWmsUrl = new JosmTextField(30); 114 114 115 115 String clip = Utils.getClipboardContent(); -
trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java
r4570 r5886 14 14 import javax.swing.JDialog; 15 15 import javax.swing.JOptionPane; 16 import javax.swing.JTextField;17 16 18 17 import org.openstreetmap.josm.Main; 19 18 import org.openstreetmap.josm.gui.layer.Layer; 20 19 import org.openstreetmap.josm.tools.ImageProvider; 20 import org.openstreetmap.josm.gui.widgets.JosmTextField; 21 21 22 22 /** … … 44 44 public void actionPerformed(ActionEvent e) { 45 45 Box panel = Box.createVerticalBox(); 46 final J TextField name = new JTextField(layer.getName());46 final JosmTextField name = new JosmTextField(layer.getName()); 47 47 panel.add(name); 48 48 JCheckBox filerename = new JCheckBox(tr("Also rename the file")); -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r5873 r5886 19 19 20 20 import javax.swing.JScrollPane; 21 import javax.swing.JTextArea;22 21 23 22 import org.openstreetmap.josm.Main; … … 27 26 import org.openstreetmap.josm.data.osm.DatasetConsistencyTest; 28 27 import org.openstreetmap.josm.gui.ExtendedDialog; 28 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 29 29 import org.openstreetmap.josm.plugins.PluginHandler; 30 30 import org.openstreetmap.josm.tools.BugReportExceptionHandler; … … 138 138 } 139 139 140 J TextArea ta = new JTextArea(text.toString());140 JosmTextArea ta = new JosmTextArea(text.toString()); 141 141 ta.setWrapStyleWord(true); 142 142 ta.setLineWrap(true); -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r5813 r5886 30 30 import javax.swing.JPanel; 31 31 import javax.swing.JRadioButton; 32 import javax.swing.JTextField;33 32 import javax.swing.text.BadLocationException; 34 33 … … 51 50 import org.openstreetmap.josm.tools.Shortcut; 52 51 import org.openstreetmap.josm.tools.Utils; 52 import org.openstreetmap.josm.gui.widgets.JosmTextField; 53 53 54 54 55 public class SearchAction extends JosmAction implements ParameterizedAction { … … 195 196 public void mouseClicked(MouseEvent e) { 196 197 try { 197 J TextField tf = (JTextField) hcb.getEditor().getEditorComponent();198 JosmTextField tf = (JosmTextField) hcb.getEditor().getEditorComponent(); 198 199 tf.getDocument().insertString(tf.getCaretPosition(), " " + insertText, null); 199 200 } catch (BadLocationException ex) {
Note:
See TracChangeset
for help on using the changeset viewer.