Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* NoEffex, my nigga, drop that melon and push my script.
- * NoEffex, my nigga, drop that melon and push my script..
- * NoEffex, my nigga, drop that melon and push my script...
- * NoEffex, my nigga, drop that melon and push my script.
- * NoEffex, my nigga, drop that melon and push my script..
- * NoEffex, my nigga, drop that melon and push my script...
- * NoEffex, my nigga, drop that melon and push my script.
- * NoEffex, my nigga, drop that melon and push my script..
- * NoEffex, my nigga, drop that melon and push my script...
- */
- @SuppressWarnings("serial")
- public class GUI extends javax.swing.JFrame {
- public static javax.swing.JButton btnStart;
- private javax.swing.ButtonGroup buttonGroup1;
- public static javax.swing.JComboBox cmbTreeTypes;
- public static javax.swing.JRadioButton rdbDropLogs;
- public static javax.swing.JRadioButton rdbBankLogs;
- public GUI() {
- initComponents();
- setLocationRelativeTo(null);
- }
- private void initComponents() {
- buttonGroup1 = new javax.swing.ButtonGroup();
- rdbDropLogs = new javax.swing.JRadioButton();
- rdbBankLogs = new javax.swing.JRadioButton();
- cmbTreeTypes = new javax.swing.JComboBox();
- btnStart = new javax.swing.JButton();
- setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
- buttonGroup1.add(rdbDropLogs);
- rdbDropLogs.setText("Drop Logs");
- buttonGroup1.add(rdbBankLogs);
- rdbBankLogs.setText("Bank Logs");
- cmbTreeTypes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tree", "Oak", "Willow", "Maple", "Yew", "Magic" }));
- btnStart.setText("Start");
- btnStart.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- if(cmbTreeTypes.getSelectedIndex() == 0) {
- TreeChopper.chopTree = true;
- TreeChopper.chopOak = false;
- TreeChopper.chopWillow = false;
- TreeChopper.chopMaple = false;
- TreeChopper.chopYew = false;
- TreeChopper.chopMagic = false;
- } else if(cmbTreeTypes.getSelectedIndex() == 1) {
- TreeChopper.chopOak = true;
- TreeChopper.chopTree = false;
- TreeChopper.chopWillow = false;
- TreeChopper.chopMaple = false;
- TreeChopper.chopYew = false;
- TreeChopper.chopMagic = false;
- } else if(cmbTreeTypes.getSelectedIndex() == 2) {
- TreeChopper.chopWillow = true;
- TreeChopper.chopOak = false;
- TreeChopper.chopTree = false;
- TreeChopper.chopMaple = false;
- TreeChopper.chopYew = false;
- TreeChopper.chopMagic = false;
- } else if(cmbTreeTypes.getSelectedIndex() == 3) {
- TreeChopper.chopMaple = true;
- TreeChopper.chopOak = false;
- TreeChopper.chopTree = false;
- TreeChopper.chopWillow = false;
- TreeChopper.chopYew = false;
- TreeChopper.chopMagic = false;
- } else if(cmbTreeTypes.getSelectedIndex() == 4) {
- TreeChopper.chopYew = true;
- TreeChopper.chopOak = false;
- TreeChopper.chopTree = false;
- TreeChopper.chopWillow = false;
- TreeChopper.chopMaple = false;
- TreeChopper.chopMagic = false;
- } else if(cmbTreeTypes.getSelectedIndex() == 5) {
- TreeChopper.chopMagic = true;
- TreeChopper.chopOak = false;
- TreeChopper.chopTree = false;
- TreeChopper.chopWillow = false;
- TreeChopper.chopMaple = false;
- TreeChopper.chopYew = false;
- }
- if(rdbDropLogs.isSelected()) {
- TreeChopper.dropLogs = true;
- } else {
- TreeChopper.dropLogs = false;
- }
- TreeChopper.startScript = true;
- dispose();
- }
- });
- 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.TRAILING, false)
- .addComponent(btnStart, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(cmbTreeTypes, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
- .addComponent(rdbDropLogs)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(rdbBankLogs)))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(rdbDropLogs)
- .addComponent(rdbBankLogs))
- .addGap(18, 18, 18)
- .addComponent(cmbTreeTypes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(btnStart)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- pack();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement