Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package brunostudyguide;
- /**
- *
- * @author bha2597
- */
- public class BrunoJFrame extends javax.swing.JFrame {
- /**
- * Creates new form BrunoJFrame
- */
- public BrunoJFrame() {
- 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")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">
- private void initComponents() {
- button1 = new java.awt.Button();
- button2 = new java.awt.Button();
- button3 = new java.awt.Button();
- button4 = new java.awt.Button();
- button5 = new java.awt.Button();
- label1 = new java.awt.Label();
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- button1.setLabel("The Curcible");
- button1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button1ActionPerformed(evt);
- }
- });
- button2.setLabel("The Scarlet Letter");
- button2.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button2ActionPerformed(evt);
- }
- });
- button3.setLabel("Witch Trials");
- button3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button3ActionPerformed(evt);
- }
- });
- button4.setLabel("Others");
- button4.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button4ActionPerformed(evt);
- }
- });
- button5.setLabel("Clear");
- button5.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- button5ActionPerformed(evt);
- }
- });
- label1.setText("Made by Bruno Alves");
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 1897, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(layout.createSequentialGroup()
- .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(264, Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(button4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(button3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(button2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(button1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(button5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(label1, javax.swing.GroupLayout.DEFAULT_SIZE, 334, Short.MAX_VALUE)
- .addContainerGap())
- );
- pack();
- }// </editor-fold>
- private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
- label1.setText("The book The Crucible is about a group of girl that went dancing on the florest. Those girls did witchcraft, and that practice was illegal. One of those girls called Abigail Williams than had a afair with the main personage called John Proctor. John Proctor had a wife called Elizabeth and she was the only good character in the play. In the end of the book John Proctor dies because he does not want to lie and lose his dignity.");
- }
- private void button2ActionPerformed(java.awt.event.ActionEvent evt) {
- label1.setText("In the book The Scarlet Letter, Hester comes to the New World, however her husband stay at London were they were orriginaly from. After one year her husbans comes to the New World and discover Hester had a baby called Pearl, and he was not the father. Hester has to use the letter A for adultery because she had a baby outside the marriage. Later in the book she was allowed to remove the A but she did not want. Pearl father is called Dimmesdale and Hester husband is Chillingworth.");
- }
- private void button3ActionPerformed(java.awt.event.ActionEvent evt) {
- label1.setText("In the book The Witch Child, Mary comes to Salem were her Grandmother was accused of witchcrafting. In this book the plot is that people believe Mary is a witch, however she is actually a witch but people should not be able to known that.");
- }
- private void button4ActionPerformed(java.awt.event.ActionEvent evt) {
- label1.setText("Myth: Story that explain natural phenomenas. Involve Gods and other mytological creatures. Passed down by word of mouth, not written down.\n" +
- "\n" +
- "Characteristic of NA myths: Trickster, anymal that talk, nature, values of culture, number 4, seed equal life.\n" +
- "\n" +
- "Colonial Lit: Massachusetts Bay colony, the early settlers were Puritan who valued the laws of the Bible The main types of Colnial lit were Diaries, Sermons, Political documents, Letters."); }
- private void button5ActionPerformed(java.awt.event.ActionEvent evt) {
- label1.setText("Made by Bruno Alves");
- }
- /**
- * @param args the command line arguments
- */
- public static void main(String args[]) {
- /* Set the Nimbus look and feel */
- //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
- /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
- * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
- */
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Nimbus".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException ex) {
- java.util.logging.Logger.getLogger(BrunoJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(BrunoJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(BrunoJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(BrunoJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- }
- //</editor-fold>
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- new BrunoJFrame().setVisible(true);
- }
- });
- }
- // Variables declaration - do not modify
- private java.awt.Button button1;
- private java.awt.Button button2;
- private java.awt.Button button3;
- private java.awt.Button button4;
- private java.awt.Button button5;
- private java.awt.Label label1;
- // End of variables declaration
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement