Ignore:
Timestamp:
2011-04-14T16:26:36+02:00 (14 years ago)
Author:
stoecker
Message:

fix i18n, dialog design adapted to better fit josm standards

Location:
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingDialog.java

    r17544 r25843  
    3030import static org.openstreetmap.josm.tools.I18n.tr;
    3131
     32import java.awt.BorderLayout;
    3233import java.awt.ComponentOrientation;
    3334import java.awt.Font;
     
    3536
    3637import javax.swing.BorderFactory;
    37 import javax.swing.BoxLayout;
    3838import javax.swing.DefaultListModel;
    3939import javax.swing.JList;
     40import javax.swing.JPanel;
    4041import javax.swing.JScrollPane;
    4142import javax.swing.border.EtchedBorder;
     
    6869        super(tr("Routing"), "routing", tr("Open a list of routing nodes"),
    6970                Shortcut.registerShortcut("subwindow:relations", tr("Toggle: {0}", tr("Routing")), KeyEvent.VK_R, Shortcut.GROUP_LAYER), 150);
    70         model= new DefaultListModel();
    71         this.setSize(456, 292);
    72         this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    73         this.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));
    74         this.setName("PrincipalDialog");
    75         this.setFont(new Font("Dialog", Font.PLAIN, 12));
    76         this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
    77         this.add(getJScrollPane(), null);
    78 
     71        model = new DefaultListModel();
     72        add(getJScrollPane(), BorderLayout.CENTER);
    7973    }
    8074
     
    8781        if (jScrollPane == null) {
    8882            jScrollPane = new JScrollPane();
    89             jScrollPane.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
    90             jScrollPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
    9183            jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    9284            jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    93             jScrollPane.setName("nList");
    94             jScrollPane.setViewportBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
    9585            jScrollPane.setViewportView(getJList());
    9686        }
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingMenu.java

    r18408 r25843  
    120120
    121121        criteriaM.addSeparator();
    122         JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem("Ignore oneways");
     122        JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(tr("Ignore oneways"));
    123123        cbmi.addItemListener(new ItemListener() {
    124124            public void itemStateChanged(ItemEvent e) {
Note: See TracChangeset for help on using the changeset viewer.