1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 package installer;
23 
24 /*
25  * Welcome.java
26  *
27  * Created on 04 July 2002, 15:43
28  */
29 
30 /**
31  *
32  * @author  mike
33  */
34 import java.awt.event.*;
35 import javax.swing.*;
36 import java.io.*;
37 import java.net.*;
38 import java.awt.*;
39 
40 public class IdeWelcome extends javax.swing.JPanel implements ActionListener {
41 
42     /** Creates new form Welcome */
IdeWelcome(InstallWizard wizard)43     public IdeWelcome(InstallWizard wizard) {
44 		this.wizard = wizard;
45 		setBorder(new javax.swing.border.EtchedBorder(javax.swing.border.EtchedBorder.RAISED));
46         initComponents();
47     }
48 
49     /** This method is called from within the constructor to
50      * initialize the form.
51      * WARNING: Do NOT modify this code. The content of this method is
52      * always regenerated by the Form Editor.
53      */
initComponents()54     private void initComponents() {//GEN-BEGIN:initComponents
55         welcomePanel = new javax.swing.JPanel();
56         area = new javax.swing.JTextArea();
57 
58         setLayout(new java.awt.BorderLayout());
59 
60         welcomePanel.setLayout(new java.awt.BorderLayout());
61         //area.setHorizontalAlignment(javax.swing.JTextField.CENTER);
62 		area.setEditable(false);
63 		area.setLineWrap(true);
64 		area.setText("\n Click Next to include Scripting Framework support for IDEs.");
65 		area.append("\n Click Cancel exit the Installation process. \n");
66 	if( InstUtil.hasNetbeansInstallation() ) {
67 		area.append("\n \tA version of Netbeans has been detected. \n");
68 	}
69 	//if( InstUtil.hasJeditInstallation() ) {
70 	//	area.append("\n \tA version of jEdit has been detected.");
71 	//}
72 
73         welcomePanel.add(area, java.awt.BorderLayout.CENTER);
74         add(welcomePanel, java.awt.BorderLayout.CENTER);
75 		NavPanel nav = new NavPanel(wizard, false, true, true, "", InstallWizard.IDEVERSIONS);
76 		nav.setNextListener(this);
77 		add(nav, java.awt.BorderLayout.SOUTH);
78 
79 		//Banner br = new Banner();
80 		//add(br, java.awt.BorderLayout.WEST);
81 
82     }//GEN-END:initComponents
83 
getPreferredSize()84     public java.awt.Dimension getPreferredSize() {
85         return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
86     }
87 
actionPerformed(ActionEvent ev)88 	public void actionPerformed(ActionEvent ev)
89 	{
90 		//Perform next actions here...
91 	}
92 
93 
94     // Variables declaration - do not modify//GEN-BEGIN:variables
95     private javax.swing.JPanel welcomePanel;
96     private javax.swing.JTextArea area;
97 	private InstallWizard wizard;
98 
99     // End of variables declaration//GEN-END:variables
100 }
101