in netbeansintegration/tags/2.0.7/src/org/openoffice/extensions/config/ConfigurationPanel.java [75:236]
private void initComponents() {
settingsPanel = new javax.swing.JPanel();
officeLabel = new javax.swing.JLabel();
sdkLabel = new javax.swing.JLabel();
officeTextField = new javax.swing.JTextField();
sdkTextField = new javax.swing.JTextField();
browseButtonOffice = new javax.swing.JButton();
browseButtonSDK = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
errorTextPane = new javax.swing.JTextPane();
descriptionTextPane = new javax.swing.JTextPane();
sunLabel = new javax.swing.JLabel();
sunLogoPanel = new SunLogoPanel();
jTextPane1 = new javax.swing.JTextPane();
settingsPanel.setBackground(new java.awt.Color(255, 255, 255));
settingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, NbBundle.getMessage(ConfigurationPanel.class, "ConfigurationPanel_Title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N
settingsPanel.setOpaque(false);
officeLabel.setLabelFor(officeTextField);
org.openide.awt.Mnemonics.setLocalizedText(officeLabel, NbBundle.getMessage(ConfigurationPanel.class, "LB_OfficeInstallation")); // NOI18N
sdkLabel.setLabelFor(sdkTextField);
org.openide.awt.Mnemonics.setLocalizedText(sdkLabel, NbBundle.getMessage(ConfigurationPanel.class, "LB_SDKInstallation")); // NOI18N
officeTextField.setToolTipText(NbBundle.getMessage(ConfigurationPanel.class, "TF_OfficeInstallation_Tooltip")); // NOI18N
sdkTextField.setToolTipText(NbBundle.getMessage(ConfigurationPanel.class, "TF_SDKInstallation_Tooltip")); // NOI18N
org.openide.awt.Mnemonics.setLocalizedText(browseButtonOffice, NbBundle.getMessage(ConfigurationPanel.class, "LBL_BUTTON_BrowseOffice")); // NOI18N
browseButtonOffice.setToolTipText(NbBundle.getMessage(ConfigurationPanel.class, "BUTTON_Office_Browse")); // NOI18N
browseButtonOffice.setActionCommand("BROWSE_OFFICE");
browseButtonOffice.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
browseButtonOfficeActionPerformed(evt);
}
});
org.openide.awt.Mnemonics.setLocalizedText(browseButtonSDK, NbBundle.getMessage(ConfigurationPanel.class, "LBL_BUTTON_BrowseSDK")); // NOI18N
browseButtonSDK.setToolTipText(NbBundle.getMessage(ConfigurationPanel.class, "BUTTON_SDK_Browse")); // NOI18N
browseButtonSDK.setActionCommand("BROWSE_SDK");
browseButtonSDK.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
browseButtonSDKActionPerformed(evt);
}
});
jScrollPane1.setBackground(new java.awt.Color(255, 255, 255));
jScrollPane1.setBorder(null);
jScrollPane1.setOpaque(false);
errorTextPane.setBackground(new java.awt.Color(238, 238, 238));
errorTextPane.setForeground(new java.awt.Color(255, 51, 51));
errorTextPane.setAutoscrolls(false);
errorTextPane.setFocusable(false);
errorTextPane.setRequestFocusEnabled(false);
jScrollPane1.setViewportView(errorTextPane);
org.jdesktop.layout.GroupLayout settingsPanelLayout = new org.jdesktop.layout.GroupLayout(settingsPanel);
settingsPanel.setLayout(settingsPanelLayout);
settingsPanelLayout.setHorizontalGroup(
settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, settingsPanelLayout.createSequentialGroup()
.addContainerGap()
.add(settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)
.add(settingsPanelLayout.createSequentialGroup()
.add(settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(officeLabel)
.add(sdkLabel))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(settingsPanelLayout.createSequentialGroup()
.add(sdkTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(browseButtonSDK))
.add(org.jdesktop.layout.GroupLayout.TRAILING, settingsPanelLayout.createSequentialGroup()
.add(officeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(browseButtonOffice)))))
.addContainerGap())
);
settingsPanelLayout.setVerticalGroup(
settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(settingsPanelLayout.createSequentialGroup()
.addContainerGap()
.add(settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(browseButtonOffice)
.add(officeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(officeLabel))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(settingsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(browseButtonSDK)
.add(sdkLabel)
.add(sdkTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 15, Short.MAX_VALUE)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
descriptionTextPane.setBorder(null);
descriptionTextPane.setEditable(false);
descriptionTextPane.setText(NbBundle.getMessage(ConfigurationPanel.class, "TP_InitialSettings_Description")); // NOI18N
descriptionTextPane.setAutoscrolls(false);
descriptionTextPane.setOpaque(false);
descriptionTextPane.setRequestFocusEnabled(false);
descriptionTextPane.setVerifyInputWhenFocusTarget(false);
org.openide.awt.Mnemonics.setLocalizedText(sunLabel, NbBundle.getMessage(ConfigurationPanel.class, "TP_InitialSettings_SunDevelopment")); // NOI18N
sunLogoPanel.setOpaque(false);
org.jdesktop.layout.GroupLayout sunLogoPanelLayout = new org.jdesktop.layout.GroupLayout(sunLogoPanel);
sunLogoPanel.setLayout(sunLogoPanelLayout);
sunLogoPanelLayout.setHorizontalGroup(
sunLogoPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 108, Short.MAX_VALUE)
);
sunLogoPanelLayout.setVerticalGroup(
sunLogoPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 112, Short.MAX_VALUE)
);
jTextPane1.setEditable(false);
jTextPane1.setText(NbBundle.getMessage(ConfigurationPanel.class, "TP_LegalNotice")); // NOI18N
jTextPane1.setOpaque(false);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jTextPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.add(descriptionTextPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
.add(sunLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(sunLogoPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(settingsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(sunLabel)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(descriptionTextPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jTextPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(sunLogoPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(settingsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap(15, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents