Changeset 23160 in osm for applications
- Timestamp:
- 2010-09-14T17:25:08+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/waypoint_search
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waypoint_search/build.xml
r23152 r23160 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" correct plugin main version" />33 <property name="commit.message" value="better integration wih JOSM gui" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3514" /> -
applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/SelectWaypointDialog.java
r22661 r23160 36 36 37 37 protected void build() { 38 //add panel - all the gui of the plugin goes in here 39 JPanel panel = new JPanel(new BorderLayout()); 40 38 41 //search field 39 searchPattern.setText( "Enter search expression here..");42 searchPattern.setText(tr("Enter search expression here..")); 40 43 searchPattern.addKeyListener(this); 41 44 searchPattern.addMouseListener(this); 42 add(searchPattern,BorderLayout.NORTH);45 panel.add(searchPattern,BorderLayout.NORTH); 43 46 44 47 //add result table … … 48 51 JScrollPane scrollPane = new JScrollPane(searchResult); 49 52 scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); 50 add(scrollPane,BorderLayout.CENTER);53 panel.add(scrollPane,BorderLayout.CENTER); 51 54 52 55 //add label 53 56 JLabel label = new JLabel(tr("Select waypoint to move map")); 54 add(label,BorderLayout.SOUTH); 57 panel.add(label,BorderLayout.SOUTH); 58 59 //add panel to JOSM gui 60 add(panel,BorderLayout.CENTER); 55 61 } 56 62
Note:
See TracChangeset
for help on using the changeset viewer.