Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class pGOPBuyerGUI extends javax.swing.JFrame {
- /** 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.
- */
- private void initComponents() {
- jLabel1 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jComboBox1 = new javax.swing.JComboBox();
- jLabel3 = new javax.swing.JLabel();
- jButton1 = new javax.swing.JButton();
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- jLabel1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
- jLabel1.setText("pGOPBuyer");
- jLabel2.setText("Buys anything at GOP.");
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
- "Water Talisman",
- "Air Talisman",
- "Fire Talisman",
- "Mind Talisman",
- "Body Talisman",
- "Earth Talisman",
- "Cosmic Talisman",
- "Chaos Talisman",
- "Law Talisman",
- "Nature Talisman",
- "Water Tele Tab",
- "Air Tele Tab",
- "Fire Tele Tab",
- "Mind Tele Tab",
- "Body Tele Tab",
- "Earth Tele Tab",
- "Cosmic Tele Tab",
- "Chaos Tele Tab",
- "Law Tele Tab",
- "Nature Tele Tab",
- "Astral Tele Tab",
- "Death Tele Tab",
- "Blood Tele Tab",
- "RC Guild Tele Tab",
- "Blue RC Hat",
- "Blue RC Robe",
- "Blue RC Skirt",
- "Blue RC Gloves",
- "Yellow RC Hat",
- "Yellow RC Robe",
- "Yellow RC Skirt",
- "Yellow RC Gloves",
- "Green RC Hat",
- "Green RC Robe",
- "Green RC Skirt",
- "Green RC Gloves",
- "Rune Essence",
- "Pure Essence (Members Only)",
- "Staff" }));
- jLabel3.setText("What to buy?");
- jButton1.setText("Start");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGap(125, 125, 125)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1)
- .addGroup(layout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addComponent(jLabel2))))
- .addGroup(layout.createSequentialGroup()
- .addGap(156, 156, 156)
- .addComponent(jLabel3)))
- .addContainerGap(155, Short.MAX_VALUE))
- .addGroup(layout.createSequentialGroup()
- .addGap(110, 110, 110)
- .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGap(122, 122, 122))
- .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel2)
- .addGap(27, 27, 27)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)
- .addComponent(jButton1))
- );
- pack();
- }// </editor-fold>
- public pGOPBuyerGUI() {
- setDefaultCloseOperation(DISPOSE_ON_CLOSE);
- initComponents();
- }
- private void jButton1ActionPerformed(ActionEvent e) {
- String chosen = jComboBox1.getSelectedItem().toString();
- if (chosen.equals(("Water Talisman"))){
- whatLoopToRun = 1;
- }
- else if (chosen.equals(("Air Talisman"))){
- whatLoopToRun = 2;
- }
- else if (chosen.equals(("Fire Talisman"))){
- whatLoopToRun = 3;
- }
- else if (chosen.equals(("Earth Talisman"))){
- whatLoopToRun = 4;
- }
- else if (chosen.equals(("Mind Talisman"))){
- whatLoopToRun = 5;
- }
- else if (chosen.equals(("Body Talisman"))){
- whatLoopToRun = 6;
- }
- else if (chosen.equals(("Cosmic Talisman"))){
- whatLoopToRun = 7;
- }
- else if (chosen.equals(("Chaos Talisman"))){
- whatLoopToRun = 8;
- }
- else if (chosen.equals(("Nature Talisman"))){
- whatLoopToRun = 9;
- }
- else if (chosen.equals(("Law Talisman"))){
- whatLoopToRun = 10;
- }
- else if (chosen.equals(("Water Tele Tab"))){
- whatLoopToRun = 11;
- }
- else if (chosen.equals(("Air Tele Tab"))){
- whatLoopToRun = 12;
- }
- else if (chosen.equals(("Fire Tele Tab"))){
- whatLoopToRun = 13;
- }
- else if (chosen.equals(("Mind Tele Tab"))){
- whatLoopToRun = 14;
- }
- else if (chosen.equals(("Body Tele Tab"))){
- whatLoopToRun = 15;
- }
- else if (chosen.equals(("Earth Tele Tab"))){
- whatLoopToRun = 16;
- }
- else if (chosen.equals(("Cosmic Tele Tab"))){
- whatLoopToRun = 17;
- }
- else if (chosen.equals(("Chaos Tele Tab"))){
- whatLoopToRun = 18;
- }
- else if (chosen.equals(("Law Tele Tab"))){
- whatLoopToRun = 19;
- }
- else if (chosen.equals(("Nature Tele Tab"))){
- whatLoopToRun = 20;
- }
- else if (chosen.equals(("Astral Tele Tab"))){
- whatLoopToRun = 21;
- }
- else if (chosen.equals(("Death Tele Tab"))){
- whatLoopToRun = 22;
- }
- else if (chosen.equals(("Blood Tele Tab"))){
- whatLoopToRun = 23;
- }
- else if (chosen.equals(("RC Guild Tele Tab"))){
- whatLoopToRun = 24;
- }
- else if (chosen.equals(("Blue RC Hat"))){
- whatLoopToRun = 25;
- }
- else if (chosen.equals(("Blue RC Robe"))){
- whatLoopToRun = 26;
- }
- else if (chosen.equals(("Blue RC Skirt"))){
- whatLoopToRun = 27;
- }
- else if (chosen.equals(("Blue RC Gloves"))){
- whatLoopToRun = 28;
- }
- else if (chosen.equals(("Yellow RC Hat"))){
- whatLoopToRun = 29;
- }
- else if (chosen.equals(("Yellow RC Robe"))){
- whatLoopToRun = 30;
- }
- else if (chosen.equals(("Yellow RC Skirt"))){
- whatLoopToRun = 31;
- }
- else if (chosen.equals(("Yellow RC Gloves"))){
- whatLoopToRun = 32;
- }
- else if (chosen.equals(("Green RC Hat"))){
- whatLoopToRun = 33;
- }
- else if (chosen.equals(("Green RC Robe"))){
- whatLoopToRun = 34;
- }
- else if (chosen.equals(("Green RC Skirt"))){
- whatLoopToRun = 35;
- }
- else if (chosen.equals(("Green RC Gloves"))){
- whatLoopToRun = 36;
- }
- else if (chosen.equals(("Rune Essence"))){
- whatLoopToRun = 37;
- }
- else if (chosen.equals(("Pure Essence (Members Only)"))){
- whatLoopToRun = 38;
- }
- else if (chosen.equals(("Staff"))){
- whatLoopToRun = 39;
- }
- dispose();
- }
- // Variables declaration - do not modify
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- // End of variables declaration
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement