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