Changeset 25843 in osm for applications/editors/josm
- Timestamp:
- 2011-04-14T16:26:36+02:00 (14 years ago)
- 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 30 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 31 32 import java.awt.BorderLayout; 32 33 import java.awt.ComponentOrientation; 33 34 import java.awt.Font; … … 35 36 36 37 import javax.swing.BorderFactory; 37 import javax.swing.BoxLayout;38 38 import javax.swing.DefaultListModel; 39 39 import javax.swing.JList; 40 import javax.swing.JPanel; 40 41 import javax.swing.JScrollPane; 41 42 import javax.swing.border.EtchedBorder; … … 68 69 super(tr("Routing"), "routing", tr("Open a list of routing nodes"), 69 70 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); 79 73 } 80 74 … … 87 81 if (jScrollPane == null) { 88 82 jScrollPane = new JScrollPane(); 89 jScrollPane.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));90 jScrollPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);91 83 jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); 92 84 jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); 93 jScrollPane.setName("nList");94 jScrollPane.setViewportBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));95 85 jScrollPane.setViewportView(getJList()); 96 86 } -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingMenu.java
r18408 r25843 120 120 121 121 criteriaM.addSeparator(); 122 JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem( "Ignore oneways");122 JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(tr("Ignore oneways")); 123 123 cbmi.addItemListener(new ItemListener() { 124 124 public void itemStateChanged(ItemEvent e) {
Note:
See TracChangeset
for help on using the changeset viewer.