Lines 68-74
Link Here
|
68 |
/** Creates new form LicenseApprovalPanel */ |
68 |
/** Creates new form LicenseApprovalPanel */ |
69 |
public LicenseApprovalPanel (InstallUnitWizardModel model, boolean isApproved) { |
69 |
public LicenseApprovalPanel (InstallUnitWizardModel model, boolean isApproved) { |
70 |
initComponents (); |
70 |
initComponents (); |
71 |
taTitle.setBackground( new Color( 0, 0, 0, 0 ) ); |
|
|
72 |
cbAccept.setSelected (isApproved); |
71 |
cbAccept.setSelected (isApproved); |
73 |
if (model != null) { |
72 |
if (model != null) { |
74 |
writeLicenses(model); |
73 |
writeLicenses(model); |
Lines 129-148
Link Here
|
129 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
128 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
130 |
private void initComponents() { |
129 |
private void initComponents() { |
131 |
|
130 |
|
132 |
taTitle = new javax.swing.JTextArea(); |
|
|
133 |
cbAccept = new javax.swing.JCheckBox(); |
131 |
cbAccept = new javax.swing.JCheckBox(); |
134 |
cbPlugins = new javax.swing.JComboBox(); |
132 |
cbPlugins = new javax.swing.JComboBox(); |
135 |
spLicense = new javax.swing.JScrollPane(); |
133 |
spLicense = new javax.swing.JScrollPane(); |
136 |
taLicense = new javax.swing.JTextArea(); |
134 |
taLicense = new javax.swing.JTextArea(); |
137 |
lbPlugins = new javax.swing.JLabel(); |
135 |
lbPlugins = new javax.swing.JLabel(); |
|
|
136 |
tpTitle = new javax.swing.JTextPane(); |
138 |
|
137 |
|
139 |
taTitle.setEditable(false); |
|
|
140 |
taTitle.setLineWrap(true); |
141 |
taTitle.setText(org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel_taTitle_Text")); // NOI18N |
142 |
taTitle.setWrapStyleWord(true); |
143 |
taTitle.setBorder(javax.swing.BorderFactory.createEmptyBorder(4, 4, 4, 4)); |
144 |
taTitle.setOpaque(false); |
145 |
|
146 |
org.openide.awt.Mnemonics.setLocalizedText(cbAccept, org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel.cbAccept.text")); // NOI18N |
138 |
org.openide.awt.Mnemonics.setLocalizedText(cbAccept, org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel.cbAccept.text")); // NOI18N |
147 |
cbAccept.addActionListener(new java.awt.event.ActionListener() { |
139 |
cbAccept.addActionListener(new java.awt.event.ActionListener() { |
148 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
140 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
Lines 169-182
Link Here
|
169 |
lbPlugins.setLabelFor(cbPlugins); |
161 |
lbPlugins.setLabelFor(cbPlugins); |
170 |
org.openide.awt.Mnemonics.setLocalizedText(lbPlugins, org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel.lbPlugins.text")); // NOI18N |
162 |
org.openide.awt.Mnemonics.setLocalizedText(lbPlugins, org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel.lbPlugins.text")); // NOI18N |
171 |
|
163 |
|
|
|
164 |
tpTitle.setEditable(false); |
165 |
tpTitle.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
166 |
tpTitle.setText(org.openide.util.NbBundle.getMessage(LicenseApprovalPanel.class, "LicenseApprovalPanel_taTitle_Text")); // NOI18N |
167 |
tpTitle.setOpaque(false); |
168 |
tpTitle.setRequestFocusEnabled(false); |
169 |
|
172 |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
170 |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
173 |
this.setLayout(layout); |
171 |
this.setLayout(layout); |
174 |
layout.setHorizontalGroup( |
172 |
layout.setHorizontalGroup( |
175 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
173 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
176 |
.addComponent(taTitle) |
|
|
177 |
.addGroup(layout.createSequentialGroup() |
174 |
.addGroup(layout.createSequentialGroup() |
178 |
.addContainerGap() |
175 |
.addContainerGap() |
179 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
176 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
177 |
.addComponent(tpTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) |
180 |
.addGroup(layout.createSequentialGroup() |
178 |
.addGroup(layout.createSequentialGroup() |
181 |
.addComponent(lbPlugins) |
179 |
.addComponent(lbPlugins) |
182 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
180 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
Lines 188-194
Link Here
|
188 |
layout.setVerticalGroup( |
186 |
layout.setVerticalGroup( |
189 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
187 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
190 |
.addGroup(layout.createSequentialGroup() |
188 |
.addGroup(layout.createSequentialGroup() |
191 |
.addComponent(taTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE) |
189 |
.addContainerGap() |
|
|
190 |
.addComponent(tpTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) |
192 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
191 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
193 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) |
192 |
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) |
194 |
.addComponent(cbPlugins) |
193 |
.addComponent(cbPlugins) |
Lines 235-241
Link Here
|
235 |
private javax.swing.JLabel lbPlugins; |
234 |
private javax.swing.JLabel lbPlugins; |
236 |
private javax.swing.JScrollPane spLicense; |
235 |
private javax.swing.JScrollPane spLicense; |
237 |
private javax.swing.JTextArea taLicense; |
236 |
private javax.swing.JTextArea taLicense; |
238 |
private javax.swing.JTextArea taTitle; |
237 |
private javax.swing.JTextPane tpTitle; |
239 |
// End of variables declaration//GEN-END:variables |
238 |
// End of variables declaration//GEN-END:variables |
240 |
|
239 |
|
241 |
private void writeLicenses(InstallUnitWizardModel model) { |
240 |
private void writeLicenses(InstallUnitWizardModel model) { |