Ignore:
Timestamp:
2010-09-14T17:25:08+02:00 (14 years ago)
Author:
krokkofant
Message:

'better integration wih JOSM gui'

Location:
applications/editors/josm/plugins/waypoint_search
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/waypoint_search/build.xml

    r23152 r23160  
    3131
    3232    <!-- 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" />
    3434    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3535    <property name="plugin.main.version" value="3514" />
  • applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/SelectWaypointDialog.java

    r22661 r23160  
    3636
    3737    protected void build() {
     38        //add panel - all the gui of the plugin goes in here
     39        JPanel panel = new JPanel(new BorderLayout());
     40       
    3841        //search field
    39         searchPattern.setText("Enter search expression here..");
     42        searchPattern.setText(tr("Enter search expression here.."));
    4043        searchPattern.addKeyListener(this);
    4144        searchPattern.addMouseListener(this);
    42         add(searchPattern,BorderLayout.NORTH);
     45        panel.add(searchPattern,BorderLayout.NORTH);
    4346       
    4447        //add result table
     
    4851        JScrollPane scrollPane = new JScrollPane(searchResult);
    4952        scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    50         add(scrollPane,BorderLayout.CENTER);
     53        panel.add(scrollPane,BorderLayout.CENTER);
    5154       
    5255        //add label
    5356        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);
    5561    }
    5662
Note: See TracChangeset for help on using the changeset viewer.