Changeset 23972 in osm for applications/editors/josm
- Timestamp:
- 2010-10-31T20:15:21+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AddressEditDialog.java
r23970 r23972 19 19 import java.awt.Color; 20 20 import java.awt.Dimension; 21 import java.awt.FlowLayout;22 21 import java.awt.Font; 23 22 import java.awt.GridLayout; … … 39 38 import javax.swing.JTable; 40 39 import javax.swing.ListSelectionModel; 40 import javax.swing.border.EmptyBorder; 41 41 import javax.swing.event.ListSelectionEvent; 42 42 import javax.swing.event.ListSelectionListener; … … 116 116 STREETS, 117 117 editContainer.getNumberOfStreets()); 118 streetPanel.add(streetLabel, BorderLayout.NORTH); 119 streetPanel.setMinimumSize(new Dimension(350, 300)); 118 119 JPanel headerPanel = new JPanel(new GridLayout(1, 4)); 120 headerPanel.setMinimumSize(new Dimension(100, 30)); 121 headerPanel.add(streetLabel); 122 123 streetPanel.add(headerPanel, BorderLayout.NORTH); 124 streetPanel.setMinimumSize(new Dimension(350, 200)); 120 125 121 126 /* Panel for unresolved addresses table */ … … 133 138 UNRESOLVED_ADDRESS, 134 139 editContainer.getNumberOfUnresolvedAddresses()); 135 unresolvedPanel.add(unresolvedAddressesLabel , BorderLayout.NORTH); 140 141 JPanel headerPanel2 = new JPanel(new GridLayout(1, 4)); 142 headerPanel2.setMinimumSize(new Dimension(100, 30)); 143 headerPanel2.add(unresolvedAddressesLabel); 144 unresolvedPanel.add(headerPanel2 , BorderLayout.NORTH); 136 145 unresolvedPanel.setMinimumSize(new Dimension(350, 200)); 137 146 138 147 139 148 try { 140 JPanel unresolvedButtons = new JPanel(new FlowLayout());149 JPanel unresolvedButtons = new JPanel(new GridLayout(2,5, 5, 5)); 141 150 SideButton assign = new SideButton(resolveAction); 142 151 unresolvedButtons.add(assign); 152 143 153 SideButton guess = new SideButton(guessAddressAction); 144 154 unresolvedButtons.add(guess); … … 146 156 unresolvedButtons.add(applyAllGuesses); 147 157 148 unresolvedButtons.add(new JSeparator());149 150 158 SideButton removeAddressTags = new SideButton(removeAddressTagsAction); 151 159 unresolvedButtons.add(removeAddressTags); 152 160 153 unresolvedButtons.add(new J Separator());161 unresolvedButtons.add(new JPanel()); 154 162 155 163 SideButton selectInMap = new SideButton(selectAddressesInMapAction); 156 164 unresolvedButtons.add(selectInMap); 157 unresolvedPanel.add(unresolvedButtons, BorderLayout.SOUTH); 165 headerPanel2.setMinimumSize(new Dimension(100, 70)); 166 167 unresolvedPanel.add(unresolvedButtons, BorderLayout.SOUTH); 158 168 } catch (Exception e) { 159 169 e.printStackTrace(); … … 208 218 private JLabel createHeaderLabel(String fmtString, String title, int n) { 209 219 JLabel label = new JLabel(String.format(fmtString, title, n)); 210 label.setFont(label.getFont().deriveFont(Font.BOLD)); 220 label.setFont(label.getFont().deriveFont(Font.BOLD, label.getFont().getSize() + 2)); 221 label.setBorder(new EmptyBorder(5,2,4,5)); 211 222 return label; 212 223 }
Note:
See TracChangeset
for help on using the changeset viewer.