merge the formfield patch from ooo-build
[ooovba.git] / scripting / workben / installer / IdeWelcome.java
blob1f298c1854b756f2a4ec8bfd825657aa2c011dc7
1 package installer;
3 /*
4 * Welcome.java
6 * Created on 04 July 2002, 15:43
7 */
9 /**
11 * @author mike
13 import java.awt.event.*;
14 import javax.swing.*;
15 import java.io.*;
16 import java.net.*;
17 import java.awt.*;
19 public class IdeWelcome extends javax.swing.JPanel implements ActionListener {
21 /** Creates new form Welcome */
22 public IdeWelcome(InstallWizard wizard) {
23 this.wizard = wizard;
24 setBorder(new javax.swing.border.EtchedBorder(javax.swing.border.EtchedBorder.RAISED));
25 initComponents();
28 /** This method is called from within the constructor to
29 * initialize the form.
30 * WARNING: Do NOT modify this code. The content of this method is
31 * always regenerated by the Form Editor.
33 private void initComponents() {//GEN-BEGIN:initComponents
34 welcomePanel = new javax.swing.JPanel();
35 area = new javax.swing.JTextArea();
37 setLayout(new java.awt.BorderLayout());
39 welcomePanel.setLayout(new java.awt.BorderLayout());
40 //area.setHorizontalAlignment(javax.swing.JTextField.CENTER);
41 area.setEditable(false);
42 area.setLineWrap(true);
43 area.setText("\n Click Next to include Scripting Framework support for IDEs.");
44 area.append("\n Click Cancel exit the Installation process. \n");
45 if( InstUtil.hasNetbeansInstallation() ) {
46 area.append("\n \tA version of Netbeans has been detected. \n");
48 //if( InstUtil.hasJeditInstallation() ) {
49 // area.append("\n \tA version of jEdit has been detected.");
50 //}
52 welcomePanel.add(area, java.awt.BorderLayout.CENTER);
53 add(welcomePanel, java.awt.BorderLayout.CENTER);
54 NavPanel nav = new NavPanel(wizard, false, true, true, "", InstallWizard.IDEVERSIONS);
55 nav.setNextListener(this);
56 add(nav, java.awt.BorderLayout.SOUTH);
58 //Banner br = new Banner();
59 //add(br, java.awt.BorderLayout.WEST);
61 }//GEN-END:initComponents
63 public java.awt.Dimension getPreferredSize() {
64 return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
67 public void actionPerformed(ActionEvent ev)
69 //Perform next actions here...
73 // Variables declaration - do not modify//GEN-BEGIN:variables
74 private javax.swing.JPanel welcomePanel;
75 private javax.swing.JTextArea area;
76 private InstallWizard wizard;
78 // End of variables declaration//GEN-END:variables