Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *Orgasm.java
- */
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- /**
- *@author Ben Raber
- *@version 0.0.0.1
- */
- public class Orgasm extends JFrame{
- private JPanel pnlMain;
- private JPanel pnlExit;
- private JButton btnFemale;
- private JButton btnMale;
- private JButton btnExit;
- public Orgasm(){
- this.setSize(250,250);
- this.setTitle("Orgasam Simulator")
- this.setLayout(new BorderLayout());
- this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- pnlMain = new JPanel();
- pnlExit = new JPanel();O
- pnlMain.setLayout(new FlowLayout());
- pnlExit.setLayout(new FlowLayout());
- btnMale = new JButton("Male");
- btnFemale = new JButton("Female");
- btnExit = new JButton("Exit");
- pnlMain.add(btnMale);
- pnlMain.add(btnFemale);
- btnMale.addActionListener(new ActionListener()
- {
- @Override
- private void actionPreformed(ActionEvent e)
- {
- JOptionPane.showMessageDialog(null,"OH GOD!");
- }
- });
- btnFemale.addActionListener(new ActionListener()
- {
- @Override
- private void actionPreformed(ActionEvent e)
- {
- for(int i = 0; i < 30;i++)
- {
- JOptionPane.showMessageDialog(null,"OH GOD!");
- };
- });
- btnExit.addActionListener(new ActionListener()
- {
- @Override
- private void actionPreformed(ActionEvent e)
- {
- System.exit(0);
- }
- });
- this.setVisible(true);
- }
- public static void Main(String[] args)
- {
- new Orgasm;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement