This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 105104
Collapse All | Expand All

(-)autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/wizards/LicenseApprovalPanel.form (-22 / +22 lines)
Lines 16-25 Link Here
16
  <Layout>
16
  <Layout>
17
    <DimensionLayout dim="0">
17
    <DimensionLayout dim="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
19
          <Component id="taTitle" alignment="0" max="32767" attributes="2"/>
19
          <Group type="102" alignment="0" attributes="0">
20
          <Group type="102" attributes="0">
21
              <EmptySpace max="-2" attributes="0"/>
20
              <EmptySpace max="-2" attributes="0"/>
22
              <Group type="103" groupAlignment="0" attributes="0">
21
              <Group type="103" groupAlignment="0" attributes="0">
22
                  <Component id="tpTitle" pref="0" max="32767" attributes="0"/>
23
                  <Group type="102" attributes="0">
23
                  <Group type="102" attributes="0">
24
                      <Component id="lbPlugins" min="-2" max="-2" attributes="0"/>
24
                      <Component id="lbPlugins" min="-2" max="-2" attributes="0"/>
25
                      <EmptySpace max="-2" attributes="0"/>
25
                      <EmptySpace max="-2" attributes="0"/>
Lines 35-49 Link Here
35
    <DimensionLayout dim="1">
35
    <DimensionLayout dim="1">
36
      <Group type="103" groupAlignment="0" attributes="0">
36
      <Group type="103" groupAlignment="0" attributes="0">
37
          <Group type="102" alignment="0" attributes="0">
37
          <Group type="102" alignment="0" attributes="0">
38
              <Component id="taTitle" min="-2" pref="65" max="-2" attributes="0"/>
38
              <EmptySpace min="-2" max="-2" attributes="0"/>
39
              <EmptySpace max="-2" attributes="0"/>
39
              <Component id="tpTitle" min="-2" pref="53" max="-2" attributes="0"/>
40
              <EmptySpace min="-2" max="-2" attributes="0"/>
40
              <Group type="103" groupAlignment="0" max="-2" attributes="0">
41
              <Group type="103" groupAlignment="0" max="-2" attributes="0">
41
                  <Component id="cbPlugins" max="32767" attributes="0"/>
42
                  <Component id="cbPlugins" max="32767" attributes="0"/>
42
                  <Component id="lbPlugins" max="32767" attributes="0"/>
43
                  <Component id="lbPlugins" max="32767" attributes="0"/>
43
              </Group>
44
              </Group>
44
              <EmptySpace max="-2" attributes="0"/>
45
              <EmptySpace min="-2" max="-2" attributes="0"/>
45
              <Component id="spLicense" pref="141" max="32767" attributes="0"/>
46
              <Component id="spLicense" pref="141" max="32767" attributes="0"/>
46
              <EmptySpace max="-2" attributes="0"/>
47
              <EmptySpace min="-2" max="-2" attributes="0"/>
47
              <Component id="cbAccept" min="-2" max="-2" attributes="0"/>
48
              <Component id="cbAccept" min="-2" max="-2" attributes="0"/>
48
              <EmptySpace min="-2" max="-2" attributes="0"/>
49
              <EmptySpace min="-2" max="-2" attributes="0"/>
49
          </Group>
50
          </Group>
Lines 51-72 Link Here
51
    </DimensionLayout>
52
    </DimensionLayout>
52
  </Layout>
53
  </Layout>
53
  <SubComponents>
54
  <SubComponents>
54
    <Component class="javax.swing.JTextArea" name="taTitle">
55
      <Properties>
56
        <Property name="editable" type="boolean" value="false"/>
57
        <Property name="lineWrap" type="boolean" value="true"/>
58
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
59
          <ResourceString bundle="org/netbeans/modules/autoupdate/ui/wizards/Bundle.properties" key="LicenseApprovalPanel_taTitle_Text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
60
        </Property>
61
        <Property name="wrapStyleWord" type="boolean" value="true"/>
62
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
63
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
64
            <EmptyBorder bottom="4" left="4" right="4" top="4"/>
65
          </Border>
66
        </Property>
67
        <Property name="opaque" type="boolean" value="false"/>
68
      </Properties>
69
    </Component>
70
    <Component class="javax.swing.JCheckBox" name="cbAccept">
55
    <Component class="javax.swing.JCheckBox" name="cbAccept">
71
      <Properties>
56
      <Properties>
72
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
57
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
Lines 131-135 Link Here
131
        </Property>
116
        </Property>
132
      </Properties>
117
      </Properties>
133
    </Component>
118
    </Component>
119
    <Component class="javax.swing.JTextPane" name="tpTitle">
120
      <Properties>
121
        <Property name="editable" type="boolean" value="false"/>
122
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
123
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
124
            <EmptyBorder/>
125
          </Border>
126
        </Property>
127
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
128
          <ResourceString bundle="org/netbeans/modules/autoupdate/ui/wizards/Bundle.properties" key="LicenseApprovalPanel_taTitle_Text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
129
        </Property>
130
        <Property name="opaque" type="boolean" value="false"/>
131
        <Property name="requestFocusEnabled" type="boolean" value="false"/>
132
      </Properties>
133
    </Component>
134
  </SubComponents>
134
  </SubComponents>
135
</Form>
135
</Form>
(-)autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/wizards/LicenseApprovalPanel.java (-12 / +11 lines)
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) {

Return to bug 105104