aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl
diff options
context:
space:
mode:
authordamencho <damencho@jitsi.org>2015-07-22 17:18:25 -0500
committerdamencho <damencho@jitsi.org>2015-07-22 17:18:25 -0500
commit82f34bc4e42357db98595b69e2f231e53f867de5 (patch)
tree6c9a80e8800b195a230b672f65a58bac067707ab /src/net/java/sip/communicator/impl
parent9640bbb91dd0dc2e23283972717632e89a9e1632 (diff)
downloadjitsi-82f34bc4e42357db98595b69e2f231e53f867de5.zip
jitsi-82f34bc4e42357db98595b69e2f231e53f867de5.tar.gz
jitsi-82f34bc4e42357db98595b69e2f231e53f867de5.tar.bz2
Polishes Google Contacts authorization dialog.
Diffstat (limited to 'src/net/java/sip/communicator/impl')
-rw-r--r--src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java b/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
index 23c4e0c..b5e77ea 100644
--- a/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
+++ b/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
@@ -452,6 +452,8 @@ public class OAuth2TokenStore
*/
public OAuthApprovalDialog(final String identity)
{
+ super(false);
+
final ResourceManagementService resources =
GoogleContactsActivator.getResourceManagementService();
final String instructionsText =
@@ -461,18 +463,21 @@ public class OAuth2TokenStore
this.setTitle(resources
.getI18NString("impl.googlecontacts.OAUTH_DIALOG_TITLE"));
this.setMinimumSize(new Dimension(20, 20));
- this.setPreferredSize(new Dimension(650, 200));
+ this.setPreferredSize(new Dimension(650, 220));
this.setBounds(10, 10, this.getWidth() - 20, this.getHeight() - 20);
this.setModal(true);
// main panel layout
- this.setLayout(new BorderLayout());
- final JPanel instructionPanel = new JPanel(new BorderLayout());
- instructionPanel.setOpaque(false);
- this.add(instructionPanel, BorderLayout.NORTH);
- final JPanel buttonPanel = new JPanel(new BorderLayout());
- buttonPanel.setOpaque(false);
- this.add(buttonPanel, BorderLayout.SOUTH);
+ JPanel mainPanel = new TransparentPanel(new BorderLayout());
+ mainPanel.setBorder(
+ BorderFactory.createEmptyBorder(10, 10, 5, 10));
+
+ final JPanel instructionPanel
+ = new TransparentPanel(new BorderLayout());
+ mainPanel.add(instructionPanel, BorderLayout.NORTH);
+
+ final JPanel buttonPanel = new TransparentPanel(new BorderLayout());
+ mainPanel.add(buttonPanel, BorderLayout.SOUTH);
// populate instruction dialog
final JLabel instructionLabel = new JLabel(instructionsText);
@@ -500,8 +505,8 @@ public class OAuth2TokenStore
final JLabel codeLabel =
new JLabel(resources.getI18NString("impl.googlecontacts.CODE"));
codeLabel.setOpaque(false);
- this.add(codeLabel, BorderLayout.WEST);
- this.add(this.code, BorderLayout.CENTER);
+ mainPanel.add(codeLabel, BorderLayout.WEST);
+ mainPanel.add(this.code, BorderLayout.CENTER);
// buttons panel
final JButton doneButton =
@@ -520,6 +525,8 @@ public class OAuth2TokenStore
});
buttonPanel.add(doneButton, BorderLayout.EAST);
+ this.add(mainPanel);
+
this.pack();
}