/* * HelpPopup.java * * Created on October 29, 2008, 6:46 PM */ /** * * @author Jake Gunter */ public class HelpPopup extends javax.swing.JFrame { /** Creates new form HelpPopup */ public HelpPopup() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // private void initComponents() { jLabel1 = new javax.swing.JLabel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jScrollPane2 = new javax.swing.JScrollPane(); jTextArea2 = new javax.swing.JTextArea(); jScrollPane3 = new javax.swing.JScrollPane(); jTextArea3 = new javax.swing.JTextArea(); jScrollPane4 = new javax.swing.JScrollPane(); jTextArea4 = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Michael Insulter 2.0 help"); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Michael Insulter help - version 2.0"); jTextArea1.setBackground(new java.awt.Color(235, 233, 237)); jTextArea1.setColumns(20); jTextArea1.setEditable(false); jTextArea1.setRows(5); jTextArea1.setText("Are you feeling insulted by Michael? Then insult\nhim back with Michael Insulter version 2.0 by \nJake Gunter. Or on the contrary, if your name\nis Michael, and you're feeling very confident,\nthen you can knock yourself down a couple \nnotches with Michael insulter 2.0.\nThis help will cover several items:\n\n-Opening and closing insulter\n-Creating insulters\n-using insulter\n"); jScrollPane1.setViewportView(jTextArea1); jTabbedPane1.addTab("Welcome to Insulter!", jScrollPane1); jTextArea2.setBackground(new java.awt.Color(235, 233, 237)); jTextArea2.setColumns(20); jTextArea2.setEditable(false); jTextArea2.setRows(5); jTextArea2.setText("You should have recieved insulter in the form of\na file called \"insulter.jar\". If you have the \nlatest version of the Java runtime environment\n(JRE) installed (you can download it from\nhttp://java.sun.com), you can double-click that\nfile to open the insulter launchpad. From the\nlaunchpad, you can click the \"insulter\" menu\nand then click \"exit\" to exit insulter, or\nsimply exit as you would normally in your \noperating system."); jScrollPane2.setViewportView(jTextArea2); jTabbedPane1.addTab("Opening and closing insulter", jScrollPane2); jTextArea3.setBackground(new java.awt.Color(235, 233, 237)); jTextArea3.setColumns(20); jTextArea3.setRows(5); jTextArea3.setText("From the launchpad, click the \"insulter\" menu\nand click \"new insulter\". This will open a new\ninsulter popup. You can move it to re-expose the\nlaunchpad and even create another insulter."); jScrollPane3.setViewportView(jTextArea3); jTabbedPane1.addTab("Creating insulters", jScrollPane3); jTextArea4.setBackground(new java.awt.Color(235, 233, 237)); jTextArea4.setColumns(20); jTextArea4.setRows(5); jTextArea4.setText("In an insulter popup, you can click the button\nlabeled \"insult Michael\" to display a random \ninsultin the box above the buttons. It will \nchange every second. At any time, you can click \nthe \"Stop insulting Michael\" button to pause the\ncycle of insults. You can click the \"exit\" \nbutton at any time to close that insulter popup."); jScrollPane4.setViewportView(jTextArea4); jTabbedPane1.addTab("Using insulter", jScrollPane4); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE)) ); pack(); }// public void displayHelp() { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new HelpPopup().setVisible(true); } }); } // Variables declaration - do not modify private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JScrollPane jScrollPane3; private javax.swing.JScrollPane jScrollPane4; private javax.swing.JTabbedPane jTabbedPane1; private javax.swing.JTextArea jTextArea1; private javax.swing.JTextArea jTextArea2; private javax.swing.JTextArea jTextArea3; private javax.swing.JTextArea jTextArea4; // End of variables declaration }