bump product version to 4.1.6.2
[LibreOffice.git] / scripting / workben / installer / IdeWelcome.java
blob542b98e8353d0b5643478728ca732a205fffc6db
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package installer;
21 import java.awt.event.*;
23 public class IdeWelcome extends javax.swing.JPanel implements ActionListener {
25 /** Creates new form Welcome */
26 public IdeWelcome(InstallWizard wizard) {
27 this.wizard = wizard;
28 setBorder(new javax.swing.border.EtchedBorder(javax.swing.border.EtchedBorder.RAISED));
29 initComponents();
32 /** This method is called from within the constructor to
33 * initialize the form.
34 * WARNING: Do NOT modify this code. The content of this method is
35 * always regenerated by the Form Editor.
37 private void initComponents() {//GEN-BEGIN:initComponents
38 welcomePanel = new javax.swing.JPanel();
39 area = new javax.swing.JTextArea();
41 setLayout(new java.awt.BorderLayout());
43 welcomePanel.setLayout(new java.awt.BorderLayout());
44 //area.setHorizontalAlignment(javax.swing.JTextField.CENTER);
45 area.setEditable(false);
46 area.setLineWrap(true);
47 area.setText("\n Click Next to include Scripting Framework support for IDEs.");
48 area.append("\n Click Cancel exit the Installation process. \n");
49 if( InstUtil.hasNetbeansInstallation() ) {
50 area.append("\n \tA version of Netbeans has been detected. \n");
52 //if( InstUtil.hasJeditInstallation() ) {
53 // area.append("\n \tA version of jEdit has been detected.");
54 //}
56 welcomePanel.add(area, java.awt.BorderLayout.CENTER);
57 add(welcomePanel, java.awt.BorderLayout.CENTER);
58 NavPanel nav = new NavPanel(wizard, false, true, true, "", InstallWizard.IDEVERSIONS);
59 nav.setNextListener(this);
60 add(nav, java.awt.BorderLayout.SOUTH);
62 //Banner br = new Banner();
63 //add(br, java.awt.BorderLayout.WEST);
65 }//GEN-END:initComponents
67 public java.awt.Dimension getPreferredSize() {
68 return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
71 public void actionPerformed(ActionEvent ev)
73 //Perform next actions here...
77 // Variables declaration - do not modify//GEN-BEGIN:variables
78 private javax.swing.JPanel welcomePanel;
79 private javax.swing.JTextArea area;
80 private InstallWizard wizard;
82 // End of variables declaration//GEN-END:variables