Changeset 3363 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
- Timestamp:
- 06.07.2010 09:29:05 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r3266 r3363 48 48 private JTextField tfLat; 49 49 private JTextField tfLon; 50 private String help; 50 51 private boolean canceled = false; 51 52 private LatLon coordinates; … … 91 92 pnl.add(btn = new SideButton(actCancel = new CancelAction())); 92 93 makeButtonRespondToEnter(btn); 93 pnl.add(new SideButton(new ContextSensitiveHelpAction(h t("/Action/AddNode"))));94 pnl.add(new SideButton(new ContextSensitiveHelpAction(help))); 94 95 return pnl; 95 96 } … … 114 115 // make dialog respond to F1 115 116 // 116 HelpUtil.setHelpContext(getRootPane(), h t("/Action/AddNode"));117 } 118 119 public LatLonDialog(Component parent ) {117 HelpUtil.setHelpContext(getRootPane(), help); 118 } 119 120 public LatLonDialog(Component parent, String title, String help) { 120 121 super(JOptionPane.getFrameForComponent(parent), true /* modal */); 121 setTitle(tr("Add Node...")); 122 this.help = help; 123 setTitle(title); 122 124 build(); 123 125 addWindowListener(new WindowEventHandler());
Note: See TracChangeset
for help on using the changeset viewer.
