summaryrefslogtreecommitdiffstats
path: root/src/com/ibm
diff options
context:
space:
mode:
authornjames <nkskjames@gmail.com>2016-09-07 10:06:51 -0500
committernjames <nkskjames@gmail.com>2016-09-07 10:06:51 -0500
commitebe44727a0cc13e2e48ecbe21a68715cde2d6099 (patch)
tree1dcbd99a65dece5961c5106a762f54ccbde4242b /src/com/ibm
parenta3adb6d7ef2176100d3286547f4459eb184e8584 (diff)
downloadserverwiz-ebe44727a0cc13e2e48ecbe21a68715cde2d6099.tar.gz
serverwiz-ebe44727a0cc13e2e48ecbe21a68715cde2d6099.zip
Change font so dialog renders better under Linux
Signed-off-by: Norman James <nkskjames@gmail.com>
Diffstat (limited to 'src/com/ibm')
-rw-r--r--src/com/ibm/ServerWizard2/view/PasswordPrompt.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/ibm/ServerWizard2/view/PasswordPrompt.java b/src/com/ibm/ServerWizard2/view/PasswordPrompt.java
index aed5f7f..2197056 100644
--- a/src/com/ibm/ServerWizard2/view/PasswordPrompt.java
+++ b/src/com/ibm/ServerWizard2/view/PasswordPrompt.java
@@ -12,11 +12,12 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.wb.swt.SWTResourceManager;
public class PasswordPrompt extends Dialog {
private Text text;
public char passwd[];
- private String label;
+ private String label = "REPO";
Button btnOk;
/**
@@ -38,6 +39,7 @@ public class PasswordPrompt extends Dialog {
Composite container = (Composite) super.createDialogArea(parent);
Label lblEnterPasswordFor = new Label(container, SWT.NONE);
+ lblEnterPasswordFor.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
GridData gd_lblEnterPasswordFor = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
gd_lblEnterPasswordFor.widthHint = 352;
gd_lblEnterPasswordFor.heightHint = 21;
@@ -45,11 +47,12 @@ public class PasswordPrompt extends Dialog {
lblEnterPasswordFor.setText("Enter Password For:");
Label lblRepository = new Label(container, SWT.NONE);
+ lblRepository.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
GridData gd_lblRepository = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
gd_lblRepository.widthHint = 419;
gd_lblRepository.heightHint = 20;
lblRepository.setLayoutData(gd_lblRepository);
- lblRepository.setText(this.label);
+ lblRepository.setText(label);
Composite composite_1 = new Composite(container, SWT.NONE);
GridData gd_composite_1 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
@@ -58,9 +61,11 @@ public class PasswordPrompt extends Dialog {
composite_1.setLayoutData(gd_composite_1);
text = new Text(composite_1, SWT.BORDER | SWT.PASSWORD);
+ text.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
text.setBounds(10, 10, 115, 21);
btnOk = new Button(composite_1, SWT.NONE);
+ btnOk.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
btnOk.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent arg0) {
OpenPOWER on IntegriCloud