6 * Created on 04 July 2002, 15:43
13 import java
.awt
.event
.*;
19 public class IdeWelcome
extends javax
.swing
.JPanel
implements ActionListener
{
21 /** Creates new form Welcome */
22 public IdeWelcome(InstallWizard wizard
) {
24 setBorder(new javax
.swing
.border
.EtchedBorder(javax
.swing
.border
.EtchedBorder
.RAISED
));
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.");
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