gc.gridwidth = 1;
add(new JLabel(tr("Consumer Key:")), gc);
gc.gridx = 1;
gc.weightx = 1.0;
add(tfConsumerKey = new JosmTextField(), gc);
SelectAllOnFocusGainedDecorator.decorate(tfConsumerKey);
// -- consumer secret
gc.gridy = 2;
gc.gridx = 0;
gc.weightx = 0.0;
add(new JLabel(tr("Consumer Secret:")), gc);
gc.gridx = 1;
gc.weightx = 1.0;
add(tfConsumerSecret = new JosmTextField(), gc);
SelectAllOnFocusGainedDecorator.decorate(tfConsumerSecret);
// -- request token URL
gc.gridy = 3;
gc.gridx = 0;
gc.weightx = 0.0;
add(new JLabel(tr("Request Token URL:")), gc);
gc.gridx = 1;
gc.weightx = 1.0;
add(tfRequestTokenURL = new JosmTextField(), gc);
SelectAllOnFocusGainedDecorator.decorate(tfRequestTokenURL);
// -- access token URL
gc.gridy = 4;
gc.gridx = 0;
gc.weightx = 0.0;
add(new JLabel(tr("Access Token URL:")), gc);
gc.gridx = 1;
gc.weightx = 1.0;
add(tfAccessTokenURL = new JosmTextField(), gc);
SelectAllOnFocusGainedDecorator.decorate(tfAccessTokenURL);
// -- authorise URL
gc.gridy = 5;
gc.gridx = 0;
gc.weightx = 0.0;
add(new JLabel(tr("Authorize URL:")), gc);
gc.gridx = 1;
gc.weightx = 1.0;
add(tfAuthoriseURL = new JosmTextField(), gc);
SelectAllOnFocusGainedDecorator.decorate(tfAuthoriseURL);
cbUseDefaults.addItemListener(ilUseDefault = new UseDefaultItemListener());
}