Changeset 23953 in osm for applications/editors/josm
- Timestamp:
- 2010-10-31T10:45:27+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoMappingPlugin.java
r23667 r23953 22 22 import javax.swing.JPanel; 23 23 import javax.swing.JRadioButtonMenuItem; 24 import javax.swing.SwingUtilities; 24 25 import javax.swing.text.MaskFormatter; 25 26 … … 180 181 try { 181 182 JOptionPane d=new JOptionPane(tr("Jump to"), JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION); 182 JFormattedTextField inp = new JFormattedTextField(new MaskFormatter("##:##:##"));183 final JFormattedTextField inp = new JFormattedTextField(new MaskFormatter("##:##:##")); 183 184 inp.setText("00:00:01"); 184 185 inp.setInputVerifier(new InputVerifier() { … … 189 190 } 190 191 }); 192 SwingUtilities.invokeLater(new Runnable() { 193 public void run() { 194 inp.requestFocus(); 195 } 196 }); 191 197 //TODO here we should show the GPS time range to the user 192 198 if(d.showConfirmDialog(Main.main.panel,inp, tr("Jump to"),JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION) 193 199 { 194 s=inp.getText();195 200 Date t; 196 201 SimpleDateFormat sdf= new SimpleDateFormat("hh:mm:ss"); 197 t = sdf.parse( s);202 t = sdf.parse(inp.getText()); 198 203 if (t!=null) 199 204 {
Note:
See TracChangeset
for help on using the changeset viewer.