Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- where the variables are!!!!!! :D
- public class StrategiesFletch {
- public static int NormalShortBow = 50;
- public static int Fletched = NormalShortBow;
- public static int NormalLogID = 1511;
- public static int OakLogID = 1521;
- public static int WillowLogID = 1519;
- public static int MapleLogID = 1517;
- public static int YewLogID = 1515;
- public static int MagicLogID = 1513;
- public static int GenericLog = NormalLogID;
- public static int NormalArrowShaftsComponent = 14;
- public static int NormalshortbowComponent = 15;
- public static int NormallongbowComponent = 16;
- public static int NormalCrossbowStockComponent = 17;
- public static int longbowComponent = 15;
- public static int CrossBowStockComponent = 16;
- public static int Component = NormalArrowShaftsComponent;
- public static int[] BANK_BOOTHS = {782};
- public static boolean Normal = false;
- public static boolean Oak = false;
- public static boolean Willow = false;
- public static boolean Maple = false;
- public static boolean Yew = false;
- public static boolean Magic = false;
- public static boolean LongBow = false;
- public static boolean ShortBow = false;
- static Component Make = Widgets.getComponent(905, Component);
- public static class MethodOne implements Strategy {
- Where i use them
- class FletchingGUI extends JFrame {
- public FletchingGUI() {
- initComponents();
- }
- private void Itemshappening(ItemEvent e) {
- // TODO add your code here
- }
- private void startButtonActionPerformed(ActionEvent e){
- String WoodChoice = (String) WoodToUse.getSelectedItem();
- String MakeChoice = (String) Making.getSelectedItem();
- if (WoodChoice == "Logs") {
- StrategiesFletch.GenericLog = StrategiesFletch.NormalLogID;
- } else if (WoodChoice == "Oak") {
- StrategiesFletch.GenericLog = StrategiesFletch.OakLogID;
- } else if (WoodChoice == "Willow") {
- StrategiesFletch.GenericLog= StrategiesFletch.WillowLogID;
- }
- dispose();
- }
- private void initComponents() {
- // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
- // Generated using JFormDesigner Evaluation license - bob Springfiield
- WoodToUse = new JComboBox();
- Making = new JComboBox();
- label1 = new JLabel();
- label2 = new JLabel();
- Start = new JButton();
- //======== this ========
- Container contentPane = getContentPane();
- //---- WoodToUse ----
- WoodToUse.addItemListener(new ItemListener() {
- @Override
- public void itemStateChanged(ItemEvent e) {
- Itemshappening(e);
- }
- });
- WoodToUse.setMaximumRowCount(3);
- WoodToUse.setModel(new DefaultComboBoxModel(new String[] {
- "Logs", "Oak", "Willow" }));
- //---- Making ----
- Making.addItemListener(new ItemListener() {
- @Override
- public void itemStateChanged(ItemEvent e) {
- Itemshappening(e);
- }
- });
- //---- label1 ----
- label1.setText("Wood Type");
- //---- label2 ----
- label2.setText("What to Make?");
- //---- Start ----
- Start.setText("Start Script");
- Start.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- startButtonActionPerformed(e);
- }
- });
- GroupLayout contentPaneLayout = new GroupLayout(contentPane);
- contentPane.setLayout(contentPaneLayout);
- contentPaneLayout.setHorizontalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(19, 19, 19)
- .addComponent(WoodToUse, GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
- .addComponent(Making, GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE)
- .addGap(28, 28, 28))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(63, 63, 63)
- .addComponent(label1)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 137, Short.MAX_VALUE)
- .addComponent(label2)
- .addGap(72, 72, 72))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(131, 131, 131)
- .addComponent(Start, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(146, Short.MAX_VALUE))
- );
- contentPaneLayout.setVerticalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(23, 23, 23)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label1)
- .addComponent(label2))
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(WoodToUse, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(Making, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addGap(32, 32, 32)
- .addComponent(Start)
- .addContainerGap(36, Short.MAX_VALUE))
- );
- pack();
- setLocationRelativeTo(getOwner());
- // JFormDesigner - End of component initialization //GEN-END:initComponents
- }
- // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
- // Generated using JFormDesigner Evaluation license - bob Springfiield
- private JComboBox WoodToUse;
- private JComboBox Making;
- private JLabel label1;
- private JLabel label2;
- private JButton Start;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
Add Comment
Please, Sign In to add comment