1 package installer; 2 3 /* 4 * Welcome.java 5 * 6 * Created on 04 July 2002, 15:43 7 */ 8 9 /** 10 * 11 * @author mike 12 */ 13 import java.awt.event.*; 14 import javax.swing.*; 15 import java.io.*; 16 import java.net.*; 17 import java.awt.*; 18 19 public class IdeWelcome extends javax.swing.JPanel implements ActionListener { 20 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(); 26 } 27 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. 32 */ 33 private void initComponents() {//GEN-BEGIN:initComponents 34 welcomePanel = new javax.swing.JPanel(); 35 area = new javax.swing.JTextArea(); 36 37 setLayout(new java.awt.BorderLayout()); 38 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"); 47 } 48 //if( InstUtil.hasJeditInstallation() ) { 49 // area.append("\n \tA version of jEdit has been detected."); 50 //} 51 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); 57 58 //Banner br = new Banner(); 59 //add(br, java.awt.BorderLayout.WEST); 60 61 }//GEN-END:initComponents 62 63 public java.awt.Dimension getPreferredSize() { 64 return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT); 65 } 66 67 public void actionPerformed(ActionEvent ev) 68 { 69 //Perform next actions here... 70 } 71 72 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; 77 78 // End of variables declaration//GEN-END:variables 79 } 80