Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.78 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Container;
  3. import java.awt.Font;
  4. import java.awt.Graphics;
  5. import java.awt.Point;
  6. import java.awt.Rectangle;
  7. import java.awt.event.*;
  8. import java.text.DecimalFormat;
  9. import java.text.NumberFormat;
  10.  
  11. import javax.swing.DefaultComboBoxModel;
  12. import javax.swing.GroupLayout;
  13. import javax.swing.JButton;
  14. import javax.swing.JComboBox;
  15. import javax.swing.JFrame;
  16. import javax.swing.JLabel;
  17. import javax.swing.LayoutStyle;
  18. import org.rsbot.event.listeners.PaintListener;
  19. import org.rsbot.script.Script;
  20. import org.rsbot.script.ScriptManifest;
  21. import org.rsbot.script.methods.Game.Tab;
  22. import org.rsbot.script.methods.Skills;
  23. import org.rsbot.script.util.SkillData;
  24. import org.rsbot.script.util.Timer;
  25.  
  26. import org.rsbot.script.wrappers.RSArea;
  27. import org.rsbot.script.wrappers.RSItem;
  28. import org.rsbot.script.wrappers.RSObject;
  29. import org.rsbot.script.wrappers.RSTile;
  30. import org.rsbot.script.wrappers.RSTilePath;
  31.  
  32. @ScriptManifest(authors = { "Battleguard" }, version = 2.02, description = "Al Kharid AIO Gem/Gold Crafter, by Battleguard", name = "Al Kharid AIO Gem/Gold Crafter")
  33. public class goldCrafter extends Script implements PaintListener,
  34. MouseMotionListener {
  35.  
  36. private final static int FURNACE_ID = 11666;
  37. private static boolean guiWait = true;
  38. private craftingGUI g = new craftingGUI();
  39.  
  40. private final static int RING_MOULD_ID = 1592, NECK_MOULD_ID = 1597,
  41. AMMY_MOULD_ID = 1595, BRACELET_MOULD_ID = 11065;;
  42. private static int MOULD_ID = RING_MOULD_ID;
  43.  
  44. // ID OF GEMS
  45. private final static int GOLD_ID = 2357, SAPPHIRE_ID = 1607,
  46. EMERALD_ID = 1605, RUBY_ID = 1603, DIAMOND_ID = 1601;
  47. private static int GEM_ID = GOLD_ID;
  48.  
  49. // XP USED TO CALCULATE STATS
  50. private final static int GOLD_XP = 15, SAPPHIRE_XP = 40, EMERALD_XP = 55,
  51. RUBY_XP = 70, DIAMOND_XP = 85;
  52. private static int EXP_PER = GOLD_XP;
  53.  
  54. // COMPONENTS FOR INTERFACE AT FURNACE
  55. private final static int GOLD_RING_COMP = 82;
  56. private static int COMPONENT_ID = GOLD_RING_COMP;
  57.  
  58. // PRICE OF ITEM USED FOR CALCULATING PROFITS
  59. private static int ITEM_PRICE;
  60. private static String ITEM_NAME;
  61.  
  62. private enum State {
  63. withdrawling, depositing, To_Bank, To_Furnace, Crafting, at_Bank
  64. }
  65.  
  66. private State curState = null;
  67. private final static RSArea FurnaceArea = new RSArea(
  68. new RSTile(3274, 3184), new RSTile(3279, 3188));
  69.  
  70. private final static RSTile[] tilesToFurnace = { new RSTile(3269, 3167),
  71. new RSTile(3276, 3170), new RSTile(3278, 3176),
  72. new RSTile(3281, 3181), new RSTile(3278, 3186),
  73. new RSTile(3275, 3186) };
  74. private RSTilePath pathToFurnace;
  75.  
  76. public boolean onStart() {
  77. g.setVisible(true);
  78. while (guiWait)
  79. sleep(500);
  80. ITEM_PRICE -= grandExchange.lookup(GOLD_ID).getGuidePrice();
  81. log("Price minus goldbar" + ITEM_PRICE);
  82. if (GEM_ID != GOLD_ID) {
  83. ITEM_PRICE -= grandExchange.lookup(GEM_ID).getGuidePrice();
  84. }
  85. log("Price minus gem" + ITEM_PRICE);
  86. log("Thank you for starting Gold Crafter");
  87. pathToFurnace = walking.newTilePath(tilesToFurnace);
  88. return true;
  89. }
  90.  
  91. @Override
  92. public int loop() {
  93. try {
  94. mouse.setSpeed(random(4, 6));
  95. curState = getState();
  96. switch (curState) {
  97. case depositing:
  98. bank.depositAllExcept(MOULD_ID);
  99. // deposit();
  100. // bankWithdrawal();
  101. break;
  102. case withdrawling:
  103. bankWithdrawal();
  104. break;
  105. case To_Bank:
  106. walkToBankNew(BANK_TILE);
  107. break;
  108. case To_Furnace:
  109. startedCrafting = false;
  110. clickOnFurnace = false;
  111. walkToFurnace();
  112. break;
  113. case Crafting:
  114. craftItems2();
  115. break;
  116. case at_Bank:
  117. bank.open();
  118. break;
  119. }
  120. } catch (Exception e) {
  121. log("A problem occured");
  122. log(e);
  123. }
  124. return random(75, 150);
  125. }
  126.  
  127. /**
  128. * Withdrawals 27 gold bars and will also withdrawal the appropriate mould
  129. * to make item. Will stop script if you have run out of gold bars or do not
  130. * have a mould.
  131. */
  132. private void bankWithdrawal() {
  133. if (bank.isOpen()) {
  134. try {
  135. if (!inventory.contains(MOULD_ID)) {
  136. if (bank.getCount(MOULD_ID) == 0) {
  137. log("You do not have a Mould");
  138. stopScript();
  139. }
  140. bank.withdraw(MOULD_ID, 1);
  141. }
  142. if (bank.getCount(GOLD_ID) == 0 || bank.getCount(GEM_ID) == 0) {
  143. doubleCheck();
  144. }
  145.  
  146. if (GEM_ID == GOLD_ID) {
  147. bank.withdraw(GOLD_ID, 0);
  148. } else {
  149. bank.withdraw(GOLD_ID, 13);
  150. bank.withdraw(GEM_ID, 13);
  151. }
  152. } catch (Exception e) {
  153. log("Problem withdraweling items from bank");
  154. log(e);
  155. }
  156. }
  157. }
  158.  
  159. private static boolean startedCrafting = false, clickOnFurnace = false;
  160. private static int prevXP;
  161. private static Timer furnaceReset = new Timer(5000);
  162.  
  163. /**
  164. * Clicks on furnace and returns if click was successful
  165. *
  166. * @returns true if click was successful
  167. */
  168. boolean clickFurnace() {
  169. RSItem bar = inventory.getItem(GOLD_ID);
  170. RSObject furnace = objects.getNearest(FURNACE_ID);
  171. if (!inventory.isItemSelected() && bar != null) {
  172. inventory.selectItem(bar);
  173. }
  174. if (furnace == null || !furnace.isOnScreen()) {
  175. camera.turnTo(furnace);
  176. return false;
  177. }
  178. if (furnace.interact("Use")) {
  179. return true;
  180. }
  181. return false;
  182. }
  183.  
  184. /**
  185. * After clicking on furnace we will wait 1 second
  186. */
  187. void waitingForInterface() {
  188. if (!furnaceReset.isRunning()) {
  189. if (clickFurnace()) {
  190. furnaceReset = new Timer(1000);
  191. clickOnFurnace = true;
  192. }
  193. } else {
  194. if (getMyPlayer().isMoving()) {
  195. furnaceReset.reset();
  196. }
  197. }
  198. }
  199.  
  200. private void craftItems2() {
  201. if (!startedCrafting) {
  202. if (isInterfaceOpen()) {
  203. makeItem();
  204. startedCrafting = true;
  205. prevXP = skills.getCurrentExp(Skills.CRAFTING);
  206. furnaceReset = new Timer(5000);
  207. } else {
  208. waitingForInterface();
  209. }
  210. } else {
  211. int currentXP = skills.getCurrentExp(Skills.CRAFTING);
  212. if (!walking.isRunEnabled()) {
  213. walking.setRun(true);
  214. sleep(1000);
  215. }
  216. getReadyforClick(BANK_TILE);
  217. if (currentXP > prevXP) {
  218. prevXP = currentXP;
  219. furnaceReset.reset();
  220. } else {
  221. if (!furnaceReset.isRunning()) {
  222. startedCrafting = false;
  223. }
  224. }
  225. }
  226. }
  227.  
  228. private final static RSTile BANK_TILE = new RSTile(3268, 3167);
  229.  
  230. private void walkToBankNew(final RSTile bankTile) {
  231. if (getMyPlayer().isMoving() || bank.isOpen()) {
  232. if (calc.distanceBetween(players.getMyPlayer().getLocation(),
  233. BANK_TILE) > 7) {
  234. // antiban
  235. }
  236. return;
  237. }
  238. final RSObject bankBooth = objects.getTopAt(bankTile);
  239. if (bankBooth != null) {
  240. camera.turnTo(bankBooth);
  241. camera.setPitch(0);
  242. }
  243.  
  244. if (bankBooth != null && bankBooth.isOnScreen()) {
  245. bankBooth.interact("Use-quickly Bank booth");
  246. sleep(2000);
  247. } else {
  248. pathToFurnace.reverse();
  249. pathToFurnace.traverse();
  250. pathToFurnace.reverse();
  251. }
  252. }
  253.  
  254. private void getReadyforClick(final RSTile bankTile) {
  255. if (inventory.getCount(GOLD_ID) < 4) {
  256. final RSObject bankBooth = objects.getTopAt(bankTile);
  257. if (bankBooth == null) {
  258. log("error could not find bankbooth");
  259. return;
  260. }
  261.  
  262. if (!bankBooth.getModel().contains(mouse.getLocation())) {
  263. if (!bankBooth.doClick(false)) {
  264. camera.setPitch(0);
  265. camera.turnTo(bankBooth);
  266. }
  267.  
  268. }
  269. } else {
  270. antiban();
  271. }
  272.  
  273. }
  274.  
  275. /**
  276. * Method to make sure we click the furnace After clicking furnace for the
  277. * first time we will not click again until 2 seconds have passed
  278. */
  279. void furnaceMethod() {
  280. if (!clickOnFurnace) {
  281. RSItem bar = inventory.getItem(GOLD_ID);
  282. RSObject furnace = objects.getNearest(FURNACE_ID);
  283. if (!inventory.isItemSelected() && bar != null) {
  284. inventory.selectItem(bar);
  285. }
  286. if (furnace == null || !furnace.isOnScreen()) {
  287. return;
  288. }
  289. furnace.interact("Use");
  290. clickOnFurnace = true;
  291. furnaceReset = new Timer(1500);
  292. } else {
  293. if (!furnaceReset.isRunning()) {
  294. clickOnFurnace = false;
  295. }
  296. }
  297. }
  298.  
  299. /**
  300. * Walking method to furnace also makes sure we are running
  301. */
  302.  
  303. private void walkToFurnace() {
  304. pathToFurnace.traverse();
  305. if (camera.getPitch() < 25 || camera.getPitch() > 35) {
  306. camera.setPitch(30);
  307. sleep(500);
  308. }
  309. if (camera.getAngle() < 85 || camera.getAngle() > 95) {
  310. camera.setAngle(89);
  311. sleep(500);
  312. }
  313. }
  314.  
  315. /**
  316. * Checks to see if we are ready to hit make all
  317. */
  318. private boolean isInterfaceOpen() {
  319. try {
  320. return interfaces.getComponent(446, 13).getText().equals("What would you like to make?") ? true : false;
  321. } catch(Exception e) {
  322. log("Exception occured " + e);
  323. return false;
  324. }
  325. }
  326.  
  327. /**
  328. * Clicks the make all button at the furnace
  329. */
  330. private void makeItem() {
  331. if(isInterfaceOpen()) {
  332. interfaces.getComponent(446, COMPONENT_ID).interact("Make All");
  333. }
  334. }
  335.  
  336. /**
  337. * Gets the current state of the BOT
  338. *
  339. * @return returns the current State of the BOT
  340. */
  341. private State getState() {
  342. try {
  343. if (inventory.contains(GOLD_ID) && inventory.contains(GEM_ID)
  344. && inventory.contains(MOULD_ID)) {
  345. return FurnaceArea
  346. .contains(players.getMyPlayer().getLocation()) ? State.Crafting
  347. : State.To_Furnace;
  348. } else {
  349. if (!bank.isOpen()) {
  350. return State.To_Bank;
  351. } else {
  352. // return State.depositing;
  353. return (inventory.getCountExcept(MOULD_ID) == 0) ? State.withdrawling
  354. : State.depositing;
  355. }
  356. }
  357. } catch (Exception e) {
  358. log("An exception has occured in the getState method");
  359. log(e);
  360. return State.To_Bank;
  361. }
  362. }
  363.  
  364. /**
  365. * dumb code because sometime the bot thinks im out of bars when im not this
  366. * happened because the bot was banking so fast
  367. */
  368. void doubleCheck() {
  369. for (int i = 0; i < 10; i++) {
  370. if (bank.getCount(GOLD_ID) != 0 && bank.getCount(GEM_ID) != 0) {
  371. return;
  372. }
  373. sleep(500);
  374. }
  375. log("you are out of bars or gems");
  376. stopScript();
  377.  
  378. }
  379.  
  380.  
  381.  
  382.  
  383.  
  384. public void onFinish() {
  385. log("Thank you for using the script!");
  386. log("Time Ran " + runClock.toElapsedString());
  387. log("State: " + curState);
  388. log("Items Made: " + k.format(skillData.expGain(idx) / EXP_PER));
  389. log("Items Per Hour: " + k.format(skillData.hourlyExp(idx) / EXP_PER));
  390. }
  391.  
  392. /**
  393. * ANTIBAN method, this will only be accessed during crafting at furnace
  394. */
  395. private void antiban() {
  396. int b = random(0, 1000);
  397. if (b >= 0 && b <= 50) {
  398. mouse.moveSlightly();
  399. sleep(200, 600);
  400. mouse.moveRandomly(150, 350);
  401. } else if (b > 50 && b <= 100) {
  402. camera.setPitch(random(30, 50));
  403. sleep(400, 600);
  404. } else if (b > 100 && b <= 150) {
  405. mouse.moveOffScreen();
  406. sleep(600, 1200);
  407. } else if (b > 150 && b <= 200) {
  408. camera.setAngle('W');
  409. sleep(400, 600);
  410. } else if (b == 500) {
  411. game.openTab(Tab.STATS, true);
  412. skills.doHover(Skills.INTERFACE_CRAFTING);
  413. sleep(800, 1200);
  414. }
  415. }
  416.  
  417. private static Point mouseSpot;
  418.  
  419. public void mouseDragged(MouseEvent e) {
  420. }
  421.  
  422. @Override
  423. public void mouseMoved(MouseEvent e) {
  424. mouseSpot = e.getPoint();
  425. }
  426.  
  427. private static SkillData skillData = null;
  428. private final static int idx = Skills.getIndex("crafting");
  429. private static Timer runClock = new Timer(0);
  430. private NumberFormat k = new DecimalFormat("###,###,###");
  431.  
  432. private final static Rectangle paintBox = new Rectangle(5, 345, 510, 130);
  433.  
  434. @Override
  435. public void onRepaint(Graphics g) {
  436. if (skillData == null) {
  437. skillData = skills.getSkillDataInstance();
  438. }
  439. if (paintBox.contains(mouseSpot)) {
  440. return;
  441. }
  442.  
  443. final double xpGain = skillData.expGain(idx);
  444. final double xpHour = skillData.hourlyExp(idx);
  445. final double itemsMade = xpGain / EXP_PER;
  446. final double itemsHour = xpHour / EXP_PER;
  447. final double goldMade = itemsMade * ITEM_PRICE;
  448. final double goldHour = itemsHour * ITEM_PRICE;
  449.  
  450. // PAINT SETUP
  451. g.setColor(Color.BLACK);
  452. g.setFont(new Font("Bodoni MT", 0, 13));
  453. g.fill3DRect(5, 345, 510, 130, true);
  454. g.setColor(Color.WHITE);
  455.  
  456. // TEXT DATA
  457. g.drawString("F2P Al Kharid AIO Gold Crafter, by Battleguard", 10, 360);
  458. g.drawString("Time Ran " + runClock.toElapsedString(), 10, 380);
  459. g.drawString("State: " + curState, 10, 400);
  460. g.drawString("Gold Made: " + k.format(goldMade) + "gp", 10, 420);
  461. g.drawString("Gold Per Hour: " + k.format(goldHour) + "gp", 10, 440);
  462. g.drawString("XP Gained: " + k.format(xpGain), 300, 360);
  463. g.drawString("XP Per Hour: " + k.format(xpHour), 300, 380);
  464. g.drawString("Items Made: " + k.format(itemsMade), 300, 410);
  465. g.drawString("Items Per Hour: " + k.format(itemsHour), 300, 430);
  466.  
  467. // CODE FOR PROGRESS BAR
  468. g.setColor(Color.white);
  469. g.fill3DRect(20, 450, 450, 20, false);
  470. int barWidth = (skills.getPercentToNextLevel(Skills.CRAFTING) * 450) / 100;
  471. g.setColor(Color.green);
  472. g.fill3DRect(20, 450, barWidth, 20, true);
  473. g.setColor(Color.black);
  474. g.drawString("Cur lvl: " + skills.getCurrentLevel(Skills.CRAFTING)
  475. + " " + skills.getPercentToNextLevel(Skills.CRAFTING) + "%",
  476. 220, 464);
  477. }
  478.  
  479. /**
  480. * Class that handles the GUI Finds the COMPONENT_ID, MOULD_ID, EXP_PER that
  481. * we will be using
  482. */
  483. public class craftingGUI extends JFrame {
  484. private static final long serialVersionUID = 1L;
  485.  
  486. public craftingGUI() {
  487. initComponents();
  488. }
  489.  
  490. private void button1ActionPerformed(ActionEvent e) {
  491. String gem = gemSelected.getSelectedItem().toString();
  492. String type = typeSelected.getSelectedItem().toString();
  493.  
  494. if (gem.equals("Sapphire")) {
  495. GEM_ID = SAPPHIRE_ID;
  496. EXP_PER = SAPPHIRE_XP;
  497. COMPONENT_ID += 2;
  498. } else if (gem.equals("Emerald")) {
  499. GEM_ID = EMERALD_ID;
  500. EXP_PER = EMERALD_XP;
  501. COMPONENT_ID += 4;
  502. } else if (gem.equals("Ruby")) {
  503. GEM_ID = RUBY_ID;
  504. EXP_PER = RUBY_XP;
  505. COMPONENT_ID += 6;
  506. } else if (gem.equals("Diamond")) {
  507. GEM_ID = DIAMOND_ID;
  508. EXP_PER = DIAMOND_XP;
  509. COMPONENT_ID += 8;
  510. }
  511.  
  512. if (type.equals("necklace")) {
  513. MOULD_ID = NECK_MOULD_ID;
  514. EXP_PER += 5;
  515. COMPONENT_ID -= 14;
  516. } else if (type.equals("amulet")) {
  517. MOULD_ID = AMMY_MOULD_ID;
  518. EXP_PER += 15;
  519. COMPONENT_ID -= 29;
  520. } else if (type.equals("bracelet")) {
  521. MOULD_ID = BRACELET_MOULD_ID;
  522. EXP_PER += 10;
  523. COMPONENT_ID -= 49;
  524. }
  525.  
  526. //82 - 49 = component id for amulet
  527.  
  528. if(type.equals("amulet")) {
  529. ITEM_PRICE = grandExchange.lookup(1673 + (COMPONENT_ID - 53)).getGuidePrice();
  530. } else {
  531. ITEM_NAME = gem + " " + type;
  532. ITEM_PRICE = grandExchange.lookup(ITEM_NAME).getGuidePrice();
  533. }
  534. log("Price of finished product" + ITEM_PRICE);
  535.  
  536. guiWait = false;
  537. g.dispose();
  538. }
  539.  
  540. private void initComponents() {
  541. // JFormDesigner - Component initialization - DO NOT MODIFY
  542. // //GEN-BEGIN:initComponents
  543. // Generated using JFormDesigner Evaluation license - Battleguard
  544. label1 = new JLabel();
  545. label2 = new JLabel();
  546. gemSelected = new JComboBox();
  547. startButton = new JButton();
  548. label3 = new JLabel();
  549. typeSelected = new JComboBox();
  550.  
  551. // ======== this ========
  552. Container contentPane = getContentPane();
  553.  
  554. // ---- label1 ----
  555. label1.setText("Al Kaharid Gold Crafter");
  556. label1.setFont(new Font("Tahoma", Font.PLAIN, 20));
  557.  
  558. // ---- label2 ----
  559. label2.setText("Crafting Item:");
  560. label2.setFont(new Font("Tahoma", Font.PLAIN, 14));
  561.  
  562. // ---- gemSelected ----
  563. gemSelected.setModel(new DefaultComboBoxModel(new String[] {
  564. "Gold", "Sapphire", "Emerald", "Ruby", "Diamond" }));
  565.  
  566. // ---- startButton ----
  567. startButton.setText("Start");
  568. startButton.addActionListener(new ActionListener() {
  569. @Override
  570. public void actionPerformed(ActionEvent e) {
  571. button1ActionPerformed(e);
  572. }
  573. });
  574.  
  575. // ---- label3 ----
  576. label3.setText("Type to craft: ");
  577. label3.setFont(new Font("Tahoma", Font.PLAIN, 14));
  578.  
  579. // ---- typeSelected ----
  580. typeSelected.setModel(new DefaultComboBoxModel(new String[] {
  581. "ring", "necklace", "bracelet", "amulet" }));
  582.  
  583. GroupLayout contentPaneLayout = new GroupLayout(contentPane);
  584. contentPane.setLayout(contentPaneLayout);
  585. contentPaneLayout
  586. .setHorizontalGroup(contentPaneLayout
  587. .createParallelGroup()
  588. .addGroup(
  589. contentPaneLayout
  590. .createSequentialGroup()
  591. .addContainerGap()
  592. .addGroup(
  593. contentPaneLayout
  594. .createParallelGroup()
  595. .addGroup(
  596. contentPaneLayout
  597. .createSequentialGroup()
  598. .addGroup(
  599. contentPaneLayout
  600. .createParallelGroup()
  601. .addGroup(
  602. contentPaneLayout
  603. .createSequentialGroup()
  604. .addComponent(
  605. label2)
  606. .addPreferredGap(
  607. LayoutStyle.ComponentPlacement.UNRELATED)
  608. .addComponent(
  609. gemSelected,
  610. GroupLayout.PREFERRED_SIZE,
  611. GroupLayout.DEFAULT_SIZE,
  612. GroupLayout.PREFERRED_SIZE))
  613. .addComponent(
  614. label1))
  615. .addContainerGap(
  616. 23,
  617. Short.MAX_VALUE))
  618. .addGroup(
  619. GroupLayout.Alignment.TRAILING,
  620. contentPaneLayout
  621. .createSequentialGroup()
  622. .addComponent(
  623. startButton)
  624. .addContainerGap())
  625. .addGroup(
  626. contentPaneLayout
  627. .createSequentialGroup()
  628. .addComponent(
  629. label3)
  630. .addPreferredGap(
  631. LayoutStyle.ComponentPlacement.RELATED)
  632. .addComponent(
  633. typeSelected,
  634. 0,
  635. 69,
  636. Short.MAX_VALUE)
  637. .addGap(65,
  638. 65,
  639. 65)))));
  640. contentPaneLayout
  641. .setVerticalGroup(contentPaneLayout
  642. .createParallelGroup()
  643. .addGroup(
  644. contentPaneLayout
  645. .createSequentialGroup()
  646. .addContainerGap()
  647. .addComponent(label1)
  648. .addGap(31, 31, 31)
  649. .addGroup(
  650. contentPaneLayout
  651. .createParallelGroup(
  652. GroupLayout.Alignment.BASELINE)
  653. .addComponent(
  654. label2)
  655. .addComponent(
  656. gemSelected,
  657. GroupLayout.PREFERRED_SIZE,
  658. GroupLayout.DEFAULT_SIZE,
  659. GroupLayout.PREFERRED_SIZE))
  660. .addPreferredGap(
  661. LayoutStyle.ComponentPlacement.RELATED,
  662. 31, Short.MAX_VALUE)
  663. .addGroup(
  664. contentPaneLayout
  665. .createParallelGroup(
  666. GroupLayout.Alignment.BASELINE)
  667. .addComponent(
  668. label3)
  669. .addComponent(
  670. typeSelected,
  671. GroupLayout.PREFERRED_SIZE,
  672. GroupLayout.DEFAULT_SIZE,
  673. GroupLayout.PREFERRED_SIZE))
  674. .addGap(26, 26, 26)
  675. .addComponent(startButton)
  676. .addContainerGap()));
  677. pack();
  678. setLocationRelativeTo(getOwner());
  679. // JFormDesigner - End of component initialization
  680. // //GEN-END:initComponents
  681. }
  682.  
  683. // JFormDesigner - Variables declaration - DO NOT MODIFY
  684. // //GEN-BEGIN:variables
  685. // Generated using JFormDesigner Evaluation license - Battleguard
  686. private JLabel label1;
  687. private JLabel label2;
  688. private JComboBox gemSelected;
  689. private JButton startButton;
  690. private JLabel label3;
  691. private JComboBox typeSelected;
  692. // JFormDesigner - End of variables declaration //GEN-END:variables
  693. }
  694. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement