Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r8468 r8510 71 71 * @return panel with buttons 72 72 */ 73 protected JPanel buildButtonRow() {73 protected JPanel buildButtonRow() { 74 74 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 75 75 … … 93 93 protected JPanel buildHeaderInfoPanel() { 94 94 JPanel pnl = new JPanel(new GridBagLayout()); 95 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5,5,5));95 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 96 96 GridBagConstraints gc = new GridBagConstraints(); 97 97 … … 109 109 // OAuth in a nutshell ... 110 110 gc.gridy = 1; 111 gc.insets = new Insets(5, 0,0,5);111 gc.insets = new Insets(5, 0, 0, 5); 112 112 HtmlPanel pnlMessage = new HtmlPanel(); 113 113 pnlMessage.setText("<html><body>" … … 125 125 lbl = new JLabel(tr("Please select an authorization procedure: ")); 126 126 lbl.setFont(lbl.getFont().deriveFont(Font.PLAIN)); 127 pnl.add(lbl, gc);127 pnl.add(lbl, gc); 128 128 129 129 gc.gridx = 1; 130 130 gc.gridwidth = 1; 131 131 gc.weightx = 1.0; 132 pnl.add(cbAuthorisationProcedure = new AuthorizationProcedureComboBox(), gc);132 pnl.add(cbAuthorisationProcedure = new AuthorizationProcedureComboBox(), gc); 133 133 cbAuthorisationProcedure.addItemListener(new AuthorisationProcedureChangeListener()); 134 134 lbl.setLabelFor(cbAuthorisationProcedure); … … 141 141 */ 142 142 protected void refreshAuthorisationProcedurePanel() { 143 AuthorizationProcedure procedure = (AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem();143 AuthorizationProcedure procedure = (AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem(); 144 144 switch(procedure) { 145 145 case FULLY_AUTOMATIC: … … 189 189 @Override 190 190 public void componentResized(ComponentEvent e) {} 191 191 192 @Override 192 193 public void componentMoved(ComponentEvent e) {} … … 239 240 240 241 protected AbstractAuthorizationUI getCurrentAuthorisationUI() { 241 switch((AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem()) {242 switch((AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem()) { 242 243 case FULLY_AUTOMATIC: return pnlFullyAutomaticAuthorisationUI; 243 244 case MANUALLY: return pnlManualAuthorisationUI; … … 296 297 WindowGeometry.centerInWindow( 297 298 Main.parent, 298 new Dimension(450, 540)299 new Dimension(450, 540) 299 300 ) 300 301 ).applySafe(this); … … 365 366 if (!evt.getPropertyName().equals(AbstractAuthorizationUI.ACCESS_TOKEN_PROP)) 366 367 return; 367 updateEnabledState((OAuthToken) evt.getNewValue());368 updateEnabledState((OAuthToken) evt.getNewValue()); 368 369 } 369 370 }
Note:
See TracChangeset
for help on using the changeset viewer.