Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void GUI() {
- gui.setVisible(true);
- gui.setTitle("AssFletcher");
- gui.setResizable(false);
- gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- gui.setBounds(100, 100, 213, 97);
- JPanel panel = new JPanel();
- gui.getContentPane().add(panel, BorderLayout.CENTER);
- JComboBox<String> logSelector = new JComboBox<>(new String[]{"Select" ,"Arrow Shafts" ,"Normal Shortbow","Normal Longbow" , "Oak Shortbow", "Oak Longbow","Willow Shortbow" ,"Willow Longbow" ,"Maple Shortbow" ,"Maple Longbow" ,"Yew Shortbow" ,"Yew Longbow" , "Magic Shortbow", "Magic Longbow"});
- logSelector.addActionListener(e -> selectedLog = logSelector.getSelectedItem().toString());
- panel.add(logSelector);
- JButton startBtn = new JButton("Start");
- panel.add(startBtn);
- JCheckBox chckbx = new JCheckBox("String");
- startBtn.addActionListener(e ->{
- if (chckbx.isSelected()) {
- modeString = true;
- started = true;
- gui.setVisible(false);
- }
- else {
- modeString = false;
- started = true;
- gui.setVisible(false);
- }
- });
- panel.add(chckbx);
- }
- @Override
- public void onStart() {
- GUI();
- timeStart = System.currentTimeMillis();
- getExperienceTracker().start(Skill.FLETCHING);
- }
Advertisement
Add Comment
Please, Sign In to add comment