- Timestamp:
- 2012-07-11T14:39:58+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheTableCellRenderer.java
r4072 r5319 7 7 import java.awt.Component; 8 8 import java.awt.Font; 9 import java.text. SimpleDateFormat;9 import java.text.DateFormat; 10 10 import java.util.Date; 11 11 … … 83 83 setText(""); 84 84 } else { 85 setText( new SimpleDateFormat().format(d));85 setText(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(d)); 86 86 } 87 87 setToolTipText(""); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDetailPanel.java
r5266 r5319 15 15 import java.beans.PropertyChangeEvent; 16 16 import java.beans.PropertyChangeListener; 17 import java.text. SimpleDateFormat;17 import java.text.DateFormat; 18 18 import java.util.Collection; 19 19 import java.util.Collections; … … 224 224 } 225 225 tfUser.setText(msg); 226 SimpleDateFormat sdf = new SimpleDateFormat();226 DateFormat sdf = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); 227 227 228 228 tfCreatedOn.setText(cs.getCreatedAt() == null ? "" : sdf.format(cs.getCreatedAt())); -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r5266 r5319 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.text. SimpleDateFormat;6 import java.text.DateFormat; 7 7 import java.util.ArrayList; 8 8 import java.util.Collections; … … 433 433 HistoryOsmPrimitive p = getPrimitive(row); 434 434 if (p != null) 435 return new SimpleDateFormat().format(p.getTimestamp());435 return DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(p.getTimestamp()); 436 436 return null; 437 437 } -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r5266 r5319 11 11 import java.io.UnsupportedEncodingException; 12 12 import java.net.URLEncoder; 13 import java.text. SimpleDateFormat;13 import java.text.DateFormat; 14 14 import java.util.Observable; 15 15 import java.util.Observer; … … 97 97 "<html>Version <strong>{0}</strong> created on <strong>{1}</strong></html>", 98 98 Long.toString(primitive.getVersion()), 99 new SimpleDateFormat().format(primitive.getTimestamp())99 DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(primitive.getTimestamp()) 100 100 ); 101 101 } -
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r5266 r5319 7 7 import java.awt.event.ActionEvent; 8 8 import java.net.HttpURLConnection; 9 import java.text. SimpleDateFormat;9 import java.text.DateFormat; 10 10 import java.util.Arrays; 11 11 import java.util.Collection; … … 196 196 + "changeset {0} which was already closed at {1}.<br>" 197 197 + "Please upload again with a new or an existing open changeset.</html>", 198 changesetId, new SimpleDateFormat().format(d)198 changesetId, DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(d) 199 199 ); 200 200 JOptionPane.showMessageDialog( -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCellRenderer.java
r5266 r5319 5 5 6 6 import java.awt.Component; 7 import java.text. SimpleDateFormat;7 import java.text.DateFormat; 8 8 9 9 import javax.swing.ImageIcon; … … 33 33 sb.append("<strong>").append(tr("Changeset id:")).append("</strong>").append(cs.getId()).append("<br>"); 34 34 if (cs.getCreatedAt() != null) { 35 SimpleDateFormat df =new SimpleDateFormat(); 36 sb.append("<strong>").append(tr("Created at:")).append("</strong>").append(df.format(cs.getCreatedAt())).append("<br>"); 35 sb.append("<strong>").append(tr("Created at:")).append("</strong>").append(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(cs.getCreatedAt())).append("<br>"); 37 36 } 38 37 if (cs.get("comment") != null) {
Note:
See TracChangeset
for help on using the changeset viewer.