Changeset 6267 in josm
- Timestamp:
- 2013-09-27T13:38:15+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r6246 r6267 40 40 private JosmTextField zm = new JosmTextField(); 41 41 42 private double zoomFactor = 0;43 42 public void showJumpToDialog() { 44 43 MapView mv = Main.map.mapView; … … 50 49 51 50 double dist = mv.getDist100Pixel(); 52 zoomFactor = 1/dist;51 double zoomFactor = 1/dist; 53 52 54 53 zm.setText(java.lang.Long.toString(Math.round(dist*100)/100)); -
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r6245 r6267 52 52 private MultiMap<Layer, Layer> dependencies; 53 53 54 private boolean zipRequired;55 56 54 /** 57 55 * Constructs a new {@code SessionSaveAsAction}. … … 72 70 if (dlg.getValue() != 1) return; 73 71 74 zipRequired = false;72 boolean zipRequired = false; 75 73 for (Layer l : layers) { 76 74 SessionLayerExporter ex = exporters.get(l); -
trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
r6084 r6267 32 32 */ 33 33 public class RelationUploadOrderHook implements UploadHook { 34 35 /** the data to be analyzed */36 private APIDataSet data;37 34 38 35 /** … … 99 96 @Override 100 97 public boolean checkUpload(APIDataSet apiDataSet) { 101 this.data = apiDataSet;102 98 try { 103 data.adjustRelationUploadOrder();99 apiDataSet.adjustRelationUploadOrder(); 104 100 return true; 105 101 } catch(CyclicUploadDependencyException e) { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r6135 r6267 63 63 public class NTV2GridShiftFile implements Serializable { 64 64 65 private String overviewHeaderCountId;66 65 private int overviewHeaderCount; 67 66 private int subGridHeaderCount; … … 104 103 topLevelSubGrid = null; 105 104 in.read(b8); 106 overviewHeaderCountId = new String(b8);105 String overviewHeaderCountId = new String(b8); 107 106 if (!"NUM_OREC".equals(overviewHeaderCountId)) 108 107 throw new IllegalArgumentException("Input file is not an NTv2 grid shift file"); -
trunk/src/org/openstreetmap/josm/gui/JMultilineLabel.java
r3083 r6267 20 20 public class JMultilineLabel extends JLabel { 21 21 private int maxWidth = Integer.MAX_VALUE; 22 private Dimension superPreferred = null;23 22 private Rectangle oldbounds = null; 24 23 private Dimension oldPreferred = null; … … 57 56 */ 58 57 @Override 59 public Dimension getPreferredSize() 60 { 58 public Dimension getPreferredSize() { 61 59 // Without this check it will result in an infinite loop calling 62 60 // getPreferredSize. Remember the old bounds and only recalculate if 63 61 // the size actually changed. 64 if (this.getBounds().equals(oldbounds) && oldPreferred != null)62 if (this.getBounds().equals(oldbounds) && oldPreferred != null) { 65 63 return oldPreferred; 64 } 66 65 oldbounds = this.getBounds(); 67 66 68 this.superPreferred = super.getPreferredSize();67 Dimension superPreferred = super.getPreferredSize(); 69 68 // Make it not larger than required 70 69 int width = Math.min(superPreferred.width, maxWidth); … … 73 72 final View v = (View) super.getClientProperty(BasicHTML.propertyKey); 74 73 75 if (v == null)74 if (v == null) { 76 75 return superPreferred; 76 } 77 77 78 78 v.setSize(width, 0); -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r6246 r6267 144 144 private final DialogsPanel dialogsPanel; 145 145 146 private final boolean unregisterTab;147 148 146 /** 149 147 * Default width of the toggle dialog area. … … 239 237 MapView.addLayerChangeListener(this); 240 238 241 unregisterTab = Shortcut.findShortcut(KeyEvent.VK_TAB, 0)!=null;239 boolean unregisterTab = Shortcut.findShortcut(KeyEvent.VK_TAB, 0)!=null; 242 240 if (unregisterTab) { 243 241 for (JComponent c: allDialogButtons) c.setFocusTraversalKeysEnabled(false); -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r6265 r6267 146 146 public final BackgroundProgressMonitor progressMonitor = new BackgroundProgressMonitor(); 147 147 148 private final MouseListener jumpToOnLeftClick;149 148 private final SoMChangeListener somListener; 150 149 … … 709 708 710 709 // also show Jump To dialog on mouse click (except context menu) 711 jumpToOnLeftClick = new MouseAdapter() {710 MouseListener jumpToOnLeftClick = new MouseAdapter() { 712 711 @Override 713 712 public void mouseClicked(MouseEvent e) { -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r6264 r6267 37 37 public class SplashScreen extends JFrame { 38 38 39 private SplashScreenProgressRenderer progressRenderer;40 39 private SwingRenderingProgressMonitor progressMonitor; 41 40 … … 89 88 90 89 // Add a status message 91 progressRenderer = new SplashScreenProgressRenderer();90 SplashScreenProgressRenderer progressRenderer = new SplashScreenProgressRenderer(); 92 91 gbc.gridy = 3; 93 92 gbc.insets = new Insets(0, 0, 10, 0); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r6147 r6267 75 75 private AdjustmentSynchronizer adjustmentSynchronizer; 76 76 77 private JCheckBox cbLockMyScrolling;78 private JCheckBox cbLockMergedScrolling;79 private JCheckBox cbLockTheirScrolling;80 81 77 private JLabel lblMyVersion; 82 78 private JLabel lblMergedVersion; … … 307 303 gc.weighty = 0.0; 308 304 gc.insets = new Insets(0,0,0,0); 309 cbLockMyScrolling = new JCheckBox();305 JCheckBox cbLockMyScrolling = new JCheckBox(); 310 306 cbLockMyScrolling.setName("checkbox.lockmyscrolling"); 311 307 add(buildAdjustmentLockControlPanel(cbLockMyScrolling), gc); … … 313 309 gc.gridx = 2; 314 310 gc.gridy = 1; 315 cbLockMergedScrolling = new JCheckBox();311 JCheckBox cbLockMergedScrolling = new JCheckBox(); 316 312 cbLockMergedScrolling.setName("checkbox.lockmergedscrolling"); 317 313 add(buildAdjustmentLockControlPanel(cbLockMergedScrolling), gc); … … 319 315 gc.gridx = 4; 320 316 gc.gridy = 1; 321 cbLockTheirScrolling = new JCheckBox();317 JCheckBox cbLockTheirScrolling = new JCheckBox(); 322 318 cbLockTheirScrolling.setName("checkbox.locktheirscrolling"); 323 319 add(buildAdjustmentLockControlPanel(cbLockTheirScrolling), gc); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java
r6264 r6267 37 37 private static DecimalFormat COORD_FORMATTER = new DecimalFormat("###0.0000000"); 38 38 39 private JLabel lblMyVersion;40 private JLabel lblMergedVersion;41 private JLabel lblTheirVersion;42 43 39 private JLabel lblMyCoordinates; 44 40 private JLabel lblMergedCoordinates; … … 75 71 gc.weighty = 0.0; 76 72 gc.insets = new Insets(10,0,10,0); 77 lblMyVersion = new JLabel(tr("My version"));73 JLabel lblMyVersion = new JLabel(tr("My version")); 78 74 lblMyVersion.setToolTipText(tr("Properties in my dataset, i.e. the local dataset")); 79 75 add(lblMyVersion, gc); … … 81 77 gc.gridx = 3; 82 78 gc.gridy = 0; 83 lblMergedVersion = new JLabel(tr("Merged version"));79 JLabel lblMergedVersion = new JLabel(tr("Merged version")); 84 80 lblMergedVersion.setToolTipText(tr("Properties in the merged element. They will replace properties in my elements when merge decisions are applied.")); 85 81 add(lblMergedVersion, gc); … … 87 83 gc.gridx = 5; 88 84 gc.gridy = 0; 89 lblTheirVersion = new JLabel(tr("Their version"));85 JLabel lblTheirVersion = new JLabel(tr("Their version")); 90 86 lblTheirVersion.setToolTipText(tr("Properties in their dataset, i.e. the server dataset")); 91 87 add(lblTheirVersion, gc); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java
r6085 r6267 41 41 private JTable theirTable; 42 42 private final TagMergeModel model; 43 private JButton btnKeepMine;44 private JButton btnKeepTheir;45 43 AdjustmentSynchronizer adjustmentSynchronizer; 46 44 … … 173 171 KeepMineAction keepMineAction = new KeepMineAction(); 174 172 mineTable.getSelectionModel().addListSelectionListener(keepMineAction); 175 btnKeepMine = new JButton(keepMineAction);173 JButton btnKeepMine = new JButton(keepMineAction); 176 174 btnKeepMine.setName("button.keepmine"); 177 175 add(btnKeepMine, gc); … … 196 194 gc.weighty = 0.0; 197 195 KeepTheirAction keepTheirAction = new KeepTheirAction(); 198 btnKeepTheir = new JButton(keepTheirAction);196 JButton btnKeepTheir = new JButton(keepTheirAction); 199 197 btnKeepTheir.setName("button.keeptheir"); 200 198 add(btnKeepTheir, gc); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r6084 r6267 81 81 // the actions 82 82 private SelectObjectsAction selectObjectsAction; 83 private 83 private ReadChangesetsAction readChangesetAction; 84 84 private ShowChangesetInfoAction showChangesetInfoAction; 85 85 private CloseOpenChangesetsAction closeChangesetAction; -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r6084 r6267 59 59 private JTable userTable; 60 60 private FilterTableModel filterModel = new FilterTableModel(); 61 private SideButton addButton;62 private SideButton editButton;63 private SideButton deleteButton;64 private SideButton upButton;65 private SideButton downButton;66 61 67 62 private EnableFilterAction enableFilterAction; 68 63 private HidingFilterAction hidingFilterAction; 69 64 70 public FilterDialog(){ 65 /** 66 * Constructs a new {@code FilterDialog} 67 */ 68 public FilterDialog() { 71 69 super(tr("Filter"), "filter", tr("Filter objects and hide/disable them."), 72 70 Shortcut.registerShortcut("subwindow:filter", tr("Toggle: {0}", tr("Filter")), … … 140 138 userTable.setDefaultRenderer(String.class, new StringRenderer()); 141 139 142 addButton = new SideButton(new AbstractAction() {140 SideButton addButton = new SideButton(new AbstractAction() { 143 141 { 144 142 putValue(NAME, tr("Add")); … … 153 151 } 154 152 }}); 155 editButton = new SideButton(new AbstractAction() {153 SideButton editButton = new SideButton(new AbstractAction() { 156 154 { 157 155 putValue(NAME, tr("Edit")); … … 170 168 } 171 169 }); 172 deleteButton = new SideButton(new AbstractAction() {170 SideButton deleteButton = new SideButton(new AbstractAction() { 173 171 { 174 172 putValue(NAME, tr("Delete")); … … 183 181 } 184 182 }); 185 upButton = new SideButton(new AbstractAction() {183 SideButton upButton = new SideButton(new AbstractAction() { 186 184 { 187 185 putValue(NAME, tr("Up")); … … 198 196 199 197 }); 200 downButton = new SideButton(new AbstractAction() {198 SideButton downButton = new SideButton(new AbstractAction() { 201 199 { 202 200 putValue(NAME, tr("Down")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r5886 r6267 61 61 protected List<OsmPrimitive> primitives; 62 62 protected OsmDataLayer layer; 63 private JosmTextArea txtData;64 63 private JosmTextArea txtMappaint; 65 64 boolean mappaintTabLoaded; … … 94 93 protected JPanel buildDataPanel() { 95 94 JPanel p = new JPanel(new GridBagLayout()); 96 txtData = new JosmTextArea();95 JosmTextArea txtData = new JosmTextArea(); 97 96 txtData.setFont(new Font("Monospaced", txtData.getFont().getStyle(), txtData.getFont().getSize())); 98 97 txtData.setEditable(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentPanel.java
r6084 r6267 63 63 private ChangesetContentTableModel model; 64 64 private Changeset currentChangeset; 65 private JTable tblContent;66 65 67 66 private DonwloadChangesetContentAction actDownloadContentAction; … … 103 102 protected JPanel buildContentPanel() { 104 103 JPanel pnl = new JPanel(new BorderLayout()); 105 tblContent = new JTable(104 JTable tblContent = new JTable( 106 105 model, 107 106 new ChangesetContentTableColumnModel(), -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetTagsPanel.java
r6084 r6267 20 20 public class ChangesetTagsPanel extends JPanel implements PropertyChangeListener{ 21 21 22 private TagTable tblTags;23 22 private TagEditorModel model; 24 23 … … 27 26 setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 28 27 model = new TagEditorModel(); 29 tblTags = new TagTable(model);28 TagTable tblTags = new TagTable(model); 30 29 tblTags.setEnabled(false); 31 30 add(new JScrollPane(tblTags), BorderLayout.CENTER); 32 31 } 33 32 33 /** 34 * Constructs a new {@code ChangesetTagsPanel}. 35 */ 34 36 public ChangesetTagsPanel() { 35 37 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/BasicChangesetQueryPanel.java
r6248 r6267 41 41 } 42 42 43 private ButtonGroup bgQueries;44 43 private Map<BasicQuery, JRadioButton> rbQueries; 45 44 private Map<BasicQuery, JMultilineLabel> lblQueries; 46 45 private JCheckBox cbMyChangesetsOnly; 47 private HtmlPanel pnlInfos;48 49 46 50 47 protected JPanel buildQueriesPanel() { 51 48 JPanel pnl = new JPanel(new GridBagLayout()); 52 49 53 bgQueries = new ButtonGroup();50 ButtonGroup bgQueries = new ButtonGroup(); 54 51 rbQueries = new HashMap<BasicQuery, JRadioButton>(); 55 52 lblQueries = new HashMap<BasicQuery, JMultilineLabel>(); … … 123 120 124 121 protected JPanel buildInfoPanel() { 125 pnlInfos = new HtmlPanel();122 HtmlPanel pnlInfos = new HtmlPanel(); 126 123 pnlInfos.setText(tr("<html>Please select one the following <strong>standard queries</strong>." 127 124 + "Select <strong>Download my changesets only</strong>" -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowser.java
r5440 r6267 31 31 private CoordinateInfoViewer coordinateInfoViewer; 32 32 private JTabbedPane tpViewers; 33 private VersionTable versionTable;34 33 35 34 /** … … 55 54 pnl.setLayout(new BorderLayout()); 56 55 57 versionTable = new VersionTable(model);56 VersionTable versionTable = new VersionTable(model); 58 57 pnl.add(embeddInScrollPane(versionTable), BorderLayout.CENTER); 59 58 return pnl; -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r6084 r6267 39 39 private UrlLabel lblUser; 40 40 private UrlLabel lblChangeset; 41 private JPanel pnlUserAndChangeset;42 41 43 42 protected void build() { … … 45 44 pnl1.setLayout(new BorderLayout()); 46 45 lblInfo = new JMultilineLabel(""); 47 //lblInfo.setHorizontalAlignment(JLabel.LEFT);48 46 pnl1.add(lblInfo, BorderLayout.CENTER); 49 47 50 pnlUserAndChangeset = new JPanel();48 JPanel pnlUserAndChangeset = new JPanel(); 51 49 pnlUserAndChangeset.setLayout(new GridLayout(2,2)); 52 50 lblUser = new UrlLabel("", 2); -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java
r6084 r6267 51 51 public final static String CLOSE_CHANGESET_AFTER_UPLOAD = ChangesetManagementPanel.class.getName() + ".closeChangesetAfterUpload"; 52 52 53 private ButtonGroup bgUseNewOrExisting;54 53 private JRadioButton rbUseNew; 55 54 private JRadioButton rbExisting; 56 55 private JosmComboBox cbOpenChangesets; 57 private JButton btnRefresh;58 private JButton btnClose;59 56 private JCheckBox cbCloseAfterUpload; 60 57 private OpenChangesetComboBoxModel model; … … 69 66 setBorder(BorderFactory.createEmptyBorder(3,3,3,3)); 70 67 71 bgUseNewOrExisting = new ButtonGroup();68 ButtonGroup bgUseNewOrExisting = new ButtonGroup(); 72 69 73 70 gc.gridwidth = 4; … … 125 122 gc.gridwidth = 1; 126 123 gc.weightx = 0.0; 127 btnRefresh = new JButton(new RefreshAction());124 JButton btnRefresh = new JButton(new RefreshAction()); 128 125 btnRefresh.setMargin(new Insets(0,0,0,0)); 129 126 add(btnRefresh, gc); … … 133 130 gc.gridwidth = 1; 134 131 CloseChangesetAction closeChangesetAction = new CloseChangesetAction(); 135 btnClose = new JButton(closeChangesetAction);132 JButton btnClose = new JButton(closeChangesetAction); 136 133 btnClose.setMargin(new Insets(0,0,0,0)); 137 134 cbOpenChangesets.addItemListener(closeChangesetAction); -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r6101 r6267 51 51 private static final Color BG_COLOR_ERROR = new Color(255,224,224); 52 52 53 private ButtonGroup bgStrategies;54 private ButtonGroup bgMultiChangesetPolicies;55 53 private Map<UploadStrategy, JRadioButton> rbStrategy; 56 54 private Map<UploadStrategy, JLabel> lblNumRequests; … … 64 62 private long numUploadedObjects = 0; 65 63 64 /** 65 * Constructs a new {@code UploadStrategySelectionPanel}. 66 */ 66 67 public UploadStrategySelectionPanel() { 67 68 build(); … … 71 72 JPanel pnl = new JPanel(); 72 73 pnl.setLayout(new GridBagLayout()); 73 bgStrategies = new ButtonGroup();74 ButtonGroup bgStrategies = new ButtonGroup(); 74 75 rbStrategy = new HashMap<UploadStrategy, JRadioButton>(); 75 76 lblStrategies = new HashMap<UploadStrategy, JMultilineLabel>(); … … 193 194 pnlMultiChangesetPolicyPanel.add(rbUseMultipleChangesets = new JRadioButton(tr("Open and use as many new changesets as necessary")),gc); 194 195 195 bgMultiChangesetPolicies = new ButtonGroup();196 ButtonGroup bgMultiChangesetPolicies = new ButtonGroup(); 196 197 bgMultiChangesetPolicies.add(rbFillOneChangeset); 197 198 bgMultiChangesetPolicies.add(rbUseMultipleChangesets); -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r6264 r6267 148 148 private final List<Grabber> grabbers = new ArrayList<Grabber>(); 149 149 private final List<Thread> grabberThreads = new ArrayList<Thread>(); 150 private int threadCount;151 private int workingThreadCount;152 150 private boolean canceled; 153 151 … … 569 567 requestQueueLock.lock(); 570 568 try { 571 workingThreadCount--;572 573 569 sortRequests(localOnly); 574 570 while (!canceled && (requestQueue.isEmpty() || (localOnly && !requestQueue.get(0).hasExactMatch()))) { … … 581 577 } 582 578 583 workingThreadCount++;584 579 if (canceled) 585 580 return null; … … 958 953 grabberThreads.add(t); 959 954 } 960 this.workingThreadCount = grabbers.size();961 this.threadCount = grabbers.size();962 955 } finally { 963 956 requestQueueLock.unlock(); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java
r5886 r6267 23 23 private JosmTextField tfUserName; 24 24 private JosmPasswordField tfPassword; 25 private UserNameValidator valUserName;26 25 27 26 private JCheckBox cbWriteMapData; … … 44 43 pnl.add(tfUserName = new JosmTextField(), gc); 45 44 SelectAllOnFocusGainedDecorator.decorate(tfUserName); 46 valUserName = new UserNameValidator(tfUserName);45 UserNameValidator valUserName = new UserNameValidator(tfUserName); 47 46 valUserName.validate(); 48 47 -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r6084 r6267 56 56 */ 57 57 public class OAuthAuthorizationWizard extends JDialog { 58 private HtmlPanel pnlMessage;59 58 private boolean canceled; 60 59 private final String apiUrl; … … 109 108 gc.gridy = 1; 110 109 gc.insets = new Insets(5,0,0,5); 111 pnlMessage = new HtmlPanel();110 HtmlPanel pnlMessage = new HtmlPanel(); 112 111 pnlMessage.setText("<html><body>" 113 112 + tr("With OAuth you grant JOSM the right to upload map data and GPS tracks " -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r6084 r6267 52 52 private JCheckBox largeGpsPoints = new JCheckBox(tr("Draw large GPS points")); 53 53 private JCheckBox hdopCircleGpsPoints = new JCheckBox(tr("Draw a circle from HDOP value")); 54 private ButtonGroup colorGroup;55 54 private JRadioButton colorTypeVelocity = new JRadioButton(tr("Velocity (red = slow, green = fast)")); 56 55 private JRadioButton colorTypeDirection = new JRadioButton(tr("Direction (red = west, yellow = north, green = east, blue = south)")); … … 207 206 208 207 // colorTracks 209 colorGroup = new ButtonGroup();208 ButtonGroup colorGroup = new ButtonGroup(); 210 209 if (layerName!=null) { 211 210 colorGroup.add(colorTypeGlobal); -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r6084 r6267 55 55 } 56 56 57 private ButtonGroup bgVersionBasedUpdatePolicy;58 private ButtonGroup bgTimeBasedUpdatePolicy;59 57 private Map<Policy, JRadioButton> rbVersionBasedUpatePolicy; 60 58 private Map<Policy, JRadioButton> rbTimeBasedUpatePolicy; … … 69 67 gc.weightx =1.0; 70 68 71 bgVersionBasedUpdatePolicy = new ButtonGroup();69 ButtonGroup bgVersionBasedUpdatePolicy = new ButtonGroup(); 72 70 rbVersionBasedUpatePolicy = new HashMap<Policy, JRadioButton>(); 73 71 JRadioButton btn = new JRadioButton(tr("Ask before updating")); … … 110 108 TimeBasedPolicyChangeListener changeListener = new TimeBasedPolicyChangeListener(); 111 109 112 bgTimeBasedUpdatePolicy = new ButtonGroup();110 ButtonGroup bgTimeBasedUpdatePolicy = new ButtonGroup(); 113 111 rbTimeBasedUpatePolicy = new HashMap<Policy, JRadioButton>(); 114 112 JRadioButton btn = new JRadioButton(tr("Ask before updating")); … … 157 155 } 158 156 157 /** 158 * Constructs a new {@code PluginUpdatePolicyPanel}. 159 */ 159 160 public PluginUpdatePolicyPanel() { 160 161 build(); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
r6248 r6267 33 33 /** the OSM user name */ 34 34 private JosmTextField tfOsmUserName; 35 private UserNameValidator valUserName;36 35 /** the OSM password */ 37 36 private JosmPasswordField tfOsmPassword; … … 58 57 add(tfOsmUserName = new JosmTextField(), gc); 59 58 SelectAllOnFocusGainedDecorator.decorate(tfOsmUserName); 60 valUserName = new UserNameValidator(tfOsmUserName);59 UserNameValidator valUserName = new UserNameValidator(tfOsmUserName); 61 60 valUserName.validate(); 62 61 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r6248 r6267 72 72 public static final String PROXY_PASS = "proxy.pass"; 73 73 74 private ButtonGroup bgProxyPolicy;75 74 private Map<ProxyPolicy, JRadioButton> rbProxyPolicy; 76 75 private JosmTextField tfProxyHttpHost; … … 209 208 GridBagConstraints gc = new GridBagConstraints(); 210 209 211 bgProxyPolicy = new ButtonGroup();210 ButtonGroup bgProxyPolicy = new ButtonGroup(); 212 211 rbProxyPolicy = new HashMap<ProxyPolicy, JRadioButton>(); 213 212 ProxyPolicyChangeListener policyChangeListener = new ProxyPolicyChangeListener(); -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r6092 r6267 43 43 44 44 private AutoCompletionManager autocomplete; 45 private AutoCompletionList acList;46 45 47 46 /** … … 185 184 186 185 autocomplete = layer.data.getAutoCompletionManager(); 187 acList = new AutoCompletionList();186 AutoCompletionList acList = new AutoCompletionList(); 188 187 189 188 TagCellEditor editor = ((TagCellEditor) tagTable.getColumnModel().getColumn(0).getCellEditor()); -
trunk/src/org/openstreetmap/josm/tools/UrlLabel.java
r6101 r6267 18 18 private String url = ""; 19 19 private String description = ""; 20 private int fontPlus;21 20 21 /** 22 * Constructs a new {@code UrlLabel}. 23 */ 22 24 public UrlLabel() { 23 25 addMouseListener(this); … … 41 43 setUrl(url); 42 44 setDescription(description); 43 this.fontPlus = fontPlus; 44 if (fontPlus!=0) setFont(getFont().deriveFont(0, getFont().getSize()+fontPlus)); 45 if (fontPlus!=0) { 46 setFont(getFont().deriveFont(0, getFont().getSize()+fontPlus)); 47 } 45 48 refresh(); 46 49 }
Note:
See TracChangeset
for help on using the changeset viewer.