From 6e8f5f409a88877b06b9ee811396eecfd616dcdf Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 04 Sep 2009 14:04:41 +0000
Subject: [PATCH] Fix for issue 4208 (LicensePanel should use JTextArea instead of TextArea) Use the JTextArea instead of TextArea and improve some insets in the panel.
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallLicensePanel.java | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallLicensePanel.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallLicensePanel.java
index 6804efc..5995b7e 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallLicensePanel.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallLicensePanel.java
@@ -31,9 +31,10 @@
import static org.opends.messages.QuickSetupMessages.*;
import java.awt.Component;
-import java.awt.*;
-import java.awt.event.ActionListener;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
import javax.swing.*;
import org.opends.quicksetup.ui.GuiApplication;
@@ -75,7 +76,7 @@
return null;
}
- private TextArea detailsTextArea;
+ private JTextArea detailsTextArea;
private JCheckBox acceptCheck;
/**
@@ -101,9 +102,10 @@
UIFactory.TextStyle.SECONDARY_FIELD_VALID);
gbc.insets = UIFactory.getEmptyInsets();
+ gbc.insets.bottom = 3;
panel.add(l, gbc);
- detailsTextArea = new TextArea();
+ detailsTextArea = new JTextArea(10, 50);
detailsTextArea.setBackground(
UIFactory.CURRENT_STEP_PANEL_BACKGROUND);
@@ -112,7 +114,7 @@
gbc.insets = UIFactory.getEmptyInsets();
gbc.fill = GridBagConstraints.BOTH;
gbc.weighty = 1.0;
- panel.add(detailsTextArea, gbc);
+ panel.add(new JScrollPane(detailsTextArea), gbc);
acceptCheck = UIFactory.makeJCheckBox(INFO_LICENSE_CLICK_LABEL.get(),
null,
@@ -121,6 +123,7 @@
acceptCheck.setSelected(false);
gbc.insets = UIFactory.getEmptyInsets();
+ gbc.insets.top = UIFactory.TOP_INSET_RADIO_SUBORDINATE;
gbc.fill = GridBagConstraints.BOTH;
gbc.weighty = 0.0;
panel.add(acceptCheck, gbc);
--
Gitblit v1.10.0