Changeset 5886 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2013-04-19T22:21:57+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r5874 r5886 22 22 import javax.swing.JPanel; 23 23 import javax.swing.JScrollPane; 24 import javax.swing.JTextArea;25 import javax.swing.JTextField;26 24 import javax.swing.ListSelectionModel; 27 25 … … 34 32 import org.openstreetmap.josm.gui.layer.Layer; 35 33 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 34 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 35 import org.openstreetmap.josm.gui.widgets.JosmTextField; 36 36 import org.openstreetmap.josm.tools.CheckParameterUtil; 37 37 import org.openstreetmap.josm.tools.GBC; … … 42 42 + tr("Note: GPL is not compatible with the OSM license. Do not upload GPL licensed tracks.") + "</html>"; 43 43 44 /** 45 * Constructs a new {@code GpxExporter}. 46 */ 44 47 public GpxExporter() { 45 48 super(GpxImporter.FILE_FILTER); … … 81 84 82 85 p.add(new JLabel(tr("GPS track description")), GBC.eol()); 83 J TextArea desc = new JTextArea(3, 40);86 JosmTextArea desc = new JosmTextArea(3, 40); 84 87 desc.setWrapStyleWord(true); 85 88 desc.setLineWrap(true); … … 91 94 JLabel nameLabel = new JLabel(tr("Real name")); 92 95 p.add(nameLabel, GBC.std().insets(10, 0, 5, 0)); 93 J TextField authorName = new JTextField();96 JosmTextField authorName = new JosmTextField(); 94 97 p.add(authorName, GBC.eol().fill(GBC.HORIZONTAL)); 95 98 JLabel emailLabel = new JLabel(tr("E-Mail")); 96 99 p.add(emailLabel, GBC.std().insets(10, 0, 5, 0)); 97 J TextField email = new JTextField();100 JosmTextField email = new JosmTextField(); 98 101 p.add(email, GBC.eol().fill(GBC.HORIZONTAL)); 99 102 JLabel copyrightLabel = new JLabel(tr("Copyright (URL)")); 100 103 p.add(copyrightLabel, GBC.std().insets(10, 0, 5, 0)); 101 J TextField copyright = new JTextField();104 JosmTextField copyright = new JosmTextField(); 102 105 p.add(copyright, GBC.std().fill(GBC.HORIZONTAL)); 103 106 JButton predefined = new JButton(tr("Predefined")); … … 105 108 JLabel copyrightYearLabel = new JLabel(tr("Copyright year")); 106 109 p.add(copyrightYearLabel, GBC.std().insets(10, 0, 5, 5)); 107 J TextField copyrightYear = new JTextField("");110 JosmTextField copyrightYear = new JosmTextField(""); 108 111 p.add(copyrightYear, GBC.eol().fill(GBC.HORIZONTAL)); 109 112 JLabel warning = new JLabel("<html><font size='-2'> </html"); … … 113 116 114 117 p.add(new JLabel(tr("Keywords")), GBC.eol()); 115 J TextField keywords = new JTextField();118 JosmTextField keywords = new JosmTextField(); 116 119 keywords.setText((String) gpxData.attr.get(META_KEYWORDS)); 117 120 p.add(keywords, GBC.eop().fill(GBC.HORIZONTAL)); … … 184 187 } 185 188 186 private static void enableCopyright(final GpxData data, final J TextField copyright, final JButton predefined,187 final J TextField copyrightYear, final JLabel copyrightLabel, final JLabel copyrightYearLabel,189 private static void enableCopyright(final GpxData data, final JosmTextField copyright, final JButton predefined, 190 final JosmTextField copyrightYear, final JLabel copyrightLabel, final JLabel copyrightYearLabel, 188 191 final JLabel warning, boolean enable) { 189 192 copyright.setEnabled(enable); … … 227 230 final GpxData data, 228 231 final JCheckBox author, 229 final J TextField authorName,230 final J TextField email,231 final J TextField copyright,232 final JosmTextField authorName, 233 final JosmTextField email, 234 final JosmTextField copyright, 232 235 final JButton predefined, 233 final J TextField copyrightYear,236 final JosmTextField copyrightYear, 234 237 final JLabel nameLabel, 235 238 final JLabel emailLabel, -
trunk/src/org/openstreetmap/josm/io/session/GpxTracksSessionExporter.java
r5501 r5886 30 30 import javax.swing.JPanel; 31 31 import javax.swing.JRadioButton; 32 import javax.swing.JTextField;33 32 import javax.swing.SwingConstants; 34 33 … … 36 35 import org.openstreetmap.josm.gui.layer.Layer; 37 36 import org.openstreetmap.josm.gui.util.GuiHelper; 37 import org.openstreetmap.josm.gui.widgets.JosmTextField; 38 38 import org.openstreetmap.josm.io.GpxWriter; 39 39 import org.openstreetmap.josm.io.session.SessionWriter.ExportSupport; … … 79 79 final File file = layer.getAssociatedFile(); 80 80 if (file != null) { 81 J TextField tf = new JTextField();81 JosmTextField tf = new JosmTextField(); 82 82 tf.setText(file.getPath()); 83 83 tf.setEditable(false); -
trunk/src/org/openstreetmap/josm/io/session/OsmDataSessionExporter.java
r5684 r5886 32 32 import javax.swing.JPanel; 33 33 import javax.swing.JRadioButton; 34 import javax.swing.JTextField;35 34 import javax.swing.SwingConstants; 36 35 … … 41 40 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 42 41 import org.openstreetmap.josm.gui.util.GuiHelper; 42 import org.openstreetmap.josm.gui.widgets.JosmTextField; 43 43 import org.openstreetmap.josm.io.OsmWriter; 44 44 import org.openstreetmap.josm.io.OsmWriterFactory; … … 109 109 final JButton save = new JButton(saveAction); 110 110 if (file != null) { 111 J TextField tf = new JTextField();111 JosmTextField tf = new JosmTextField(); 112 112 tf.setText(file.getPath()); 113 113 tf.setEditable(false);
Note:
See TracChangeset
for help on using the changeset viewer.