Advertisement
deww1

FuserPAINT.java

Jul 21st, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 20.00 KB | None | 0 0
  1. /**
  2.  * @auther Dew of FuserScripts
  3.  * @Since July 22, 2011
  4.  * @Version 1.0
  5.  */
  6. import java.awt.*;
  7. import java.awt.event.MouseEvent;
  8. import java.awt.event.MouseListener;
  9. import java.awt.image.BufferedImage;
  10. import java.awt.image.ImageObserver;
  11. import java.io.IOException;
  12. import java.lang.reflect.InvocationTargetException;
  13. import java.net.MalformedURLException;
  14. import java.net.URL;
  15. import java.util.LinkedList;
  16. import javax.imageio.ImageIO;
  17. import javax.swing.SwingUtilities;
  18. import org.rsbot.event.listeners.PaintListener;
  19. import org.rsbot.script.*;
  20. import org.rsbot.script.methods.Methods;
  21. import org.rsbot.script.methods.Skills;
  22. import org.rsbot.script.wrappers.*;
  23.  
  24. @ScriptManifest(authors = {"Dew"}, keywords = {"Paint"}, name = "FuserPAINT", description = "Demo Paint - To Be Edited", version = 1.0)
  25.  
  26. public class FuserPaint extends Script implements PaintListener, MouseListener {
  27.  
  28.     public String paintType = "null";
  29.     public boolean GuiIsOpen = true;
  30.     FuserGui gui = new FuserGui();
  31.  
  32.     //REPLACE FuserPaint with your ScriptName
  33.     public Double ver = FuserPaint.class.getAnnotation(ScriptManifest.class).version();
  34.     Point p;
  35.  
  36.     public long startTime = 0;
  37.     public long millis = 0;
  38.     public long hours = 0;
  39.     public long minutes = 0;
  40.     public long seconds = 0;
  41.  
  42.     //EDIT - as needed
  43.     private int itemsCollected = 0;
  44.     private int itemsHr = 0;
  45.     private int price = 0;
  46.     private int priceHr = 0;
  47.  
  48.     private int startXP = 0;
  49.     private int XPGained = 0;
  50.  
  51.     public int itemPrice;
  52.  
  53.     public boolean showPaint = true;
  54.  
  55.     BufferedImage normal = null;
  56.     BufferedImage clicked = null;
  57.  
  58.     //EDIT - This is the cursor. if you like the current cursor, let it be, otherwise,
  59.     //EDIT - upload your own cursor and place the URLs in the following Strings
  60.  
  61.     /**
  62.      * Not clicked Cursor ID
  63.      */
  64.     public String cursorU = "http://i360.photobucket.com/albums/oo47/perez048/mouseReg.png";
  65.     /**
  66.      * Clicked Cursor ID
  67.      */
  68.     public String cursorC = "http://i360.photobucket.com/albums/oo47/perez048/mouseClicked.png";
  69.  
  70.     private String status = "Setting up";
  71.  
  72.     //(CHANGE)REMOVE? - This String is used in my custom mouse speed changer.
  73.     //(CHANGE)REMOVE? - leave this alone if you are going to use it.
  74.     private String MouseSpeed = "Unknown";
  75.  
  76.  
  77.     private final Image FuserScriptsLogo = getImage("http://ghostgraphics.net78.net/fuserscripts/template/fuserscriptslogo.png");
  78.     Rectangle FuserScriptsLogoShape = new Rectangle(4, 276, 207, 69);
  79.  
  80.     //(CHANGE)URL to the user logo spot - Your Logo HERE - MAKE SURE the pixel ratio is 124x28px
  81.     private final Image userLogo = getImage("http://ghostgraphics.net78.net/fuserscripts/template/logohere.png");
  82.     Rectangle userLogoShape = new Rectangle(9, 347, 124, 28);
  83.  
  84.     private final Image paintBG = getImage("http://ghostgraphics.net78.net/fuserscripts/template/paintbg.png");
  85.  
  86.     private final Image closeButton = getImage("http://ghostgraphics.net78.net/fuserscripts/template/closebutton.png");
  87.     Rectangle closeButtonShape = new Rectangle(426, 345, 22, 22);
  88.  
  89.  
  90.     private final Image openButton = getImage("http://ghostgraphics.net78.net/fuserscripts/template/openbutton.png");
  91.     Rectangle openButtonShape = new Rectangle(474, 345, 22, 22);
  92.  
  93.     //(CHANGE)URL to the avatar spot - Your Avatar HERE - MAKE SURE the pixel ratio is 65x65px
  94.     private final Image avatarSpot = getImage("http://ghostgraphics.net78.net/fuserscripts/template/avatarspot.png");
  95.     Rectangle avatarSpotShape = new Rectangle(448, 345, 65, 65);
  96.  
  97.  
  98.  
  99.     @Override
  100.     public boolean onStart() {
  101.         try {
  102.             SwingUtilities.invokeAndWait(new Runnable() {
  103.                 @Override
  104.                 public void run() {
  105.                     new FuserGui().setVisible(true);
  106.                 }
  107.             });
  108.         } catch (InterruptedException ignored) {
  109.         } catch (InvocationTargetException ignored) {
  110.         }
  111.         while (GuiIsOpen) {
  112.             Methods.sleep(25);
  113.         }
  114.         //EDIT - Change Skills.SMITHING
  115.         //EDIT - to the skill needed
  116.         startXP = skills.getCurrentExp(Skills.SMITHING);
  117.         startTime = System.currentTimeMillis();
  118.         try {
  119.             final URL cursorURL = new URL(cursorU);
  120.             final URL cursor80URL = new URL(cursorC);
  121.             normal = ImageIO.read(cursorURL);
  122.             clicked = ImageIO.read(cursor80URL);
  123.         } catch (MalformedURLException e) {
  124.             log("Unable to buffer cursor.");
  125.         } catch (IOException e) {
  126.             log("Unable to open cursor image.");
  127.         }
  128.         paintType = gui.paintType.getSelectedItem().toString();
  129.         return true;
  130.     }
  131.  
  132.     public int loop() {
  133.  
  134.         return random(1000,1500);
  135.     }
  136.  
  137.     @Override
  138.     public void onFinish() {
  139.  
  140.     }
  141.  
  142.         //START: Code generated using Enfilade's Easel
  143.     private Image getImage(String url) {
  144.         try {
  145.             return ImageIO.read(new URL(url));
  146.         } catch(IOException e) {
  147.             return null;
  148.         }
  149.     }
  150.  
  151.     private final Color color1 = new Color(255, 255, 255);
  152.     private final Color transparent = new Color(255, 255, 255, 0);
  153.  
  154.     private final Font font1 = new Font("Calibri", 1, 14);
  155.     private final Font font2 = new Font("Calibri", 0, 14);
  156.     private final Font font3 = new Font("Calibri", 0, 9);
  157.  
  158.     public void mainPaint(Graphics g1) {
  159.         Graphics2D g = (Graphics2D)g1;
  160.  
  161.         if (paintType.equals("Chatbox Paint")) {
  162.             // <editor-fold defaultstate="collapsed" desc="ChatBox Paint">
  163.  
  164.             // <editor-fold defaultstate="collapsed" desc="Variables">
  165.  
  166.             //START - Time - DO NOT EDIT
  167.             millis = System.currentTimeMillis() - startTime;
  168.             hours = millis / (1000 * 60 * 60);
  169.             millis -= hours * (1000 * 60 * 60);
  170.             minutes = millis / (1000 * 60);
  171.             millis -= minutes * (1000 * 60);
  172.             seconds = millis / 1000;
  173.             //END - Time - DO NOT EDIT
  174.  
  175.             //(CHANGE)START - Time to Next Level - EDIT where told
  176.             float xpsec = 0;
  177.             if (minutes > 0 || hours > 0 || seconds > 0 && XPGained > 0) {
  178.                 xpsec = ((float) XPGained / (float) (seconds + (minutes * 60) + (hours * 60 * 60)));
  179.             }
  180.             float xpmin = xpsec * 60;
  181.             float xphour = xpmin * 60;
  182.  
  183.             //(CHANGE)EDIT - Skills.SMITHING
  184.             //(CHANGE)EDIT - Change to the skill needed
  185.             float timeTNLhour = 0;
  186.             timeTNLhour = (float) skills.getExpToNextLevel(Skills.SMITHING) / (float) xphour;
  187.             float timeTNLmin = timeTNLhour * 60;
  188.             float timeTNLsec = timeTNLmin * 60;
  189.  
  190.             float estimatedHour = timeTNLsec / 3600;
  191.             float tempminutes = timeTNLsec % 3600;
  192.             float estimatedMinutes = tempminutes / 60;
  193.             float estimatedSeconds = tempminutes % 60;
  194.             //END - Time to Next Level - EDIT where told
  195.  
  196.             //(CHANGE)START - XPGained - EDIT Skills.SMITHING
  197.             XPGained = skills.getCurrentExp(Skills.SMITHING) - startXP;
  198.             //END - XPGained - Edit as needed
  199.  
  200.             //START - xphour - DO NOT EDIT
  201.             xphour = (int) ((XPGained) * 3600000D / (System.currentTimeMillis() - startTime));
  202.             //END - xphour - DO NOT EDIT
  203.  
  204.             // </editor-fold>
  205.  
  206.         if (showPaint) {
  207.             // <editor-fold defaultstate="collapsed" desc="PaintOpen">
  208.  
  209.             g.drawImage(FuserScriptsLogo, 4, 276, null);
  210.             g.drawImage(paintBG, -1, 328, null);
  211.             g.drawImage(userLogo, 9, 347, null);
  212.             g.drawImage(closeButton, 426, 345, null);
  213.             g.drawImage(avatarSpot, 448, 345, null);
  214.  
  215.             g.setColor(transparent);
  216.             g.draw(FuserScriptsLogoShape);
  217.             g.draw(closeButtonShape);
  218.             g.draw(userLogoShape);
  219.  
  220.             g.setColor(color1);
  221.  
  222.             //START - current script version text
  223.             g.setFont(font1);
  224.             g.drawString("Current Script Version:", 197, 358);
  225.             g.setFont(font2);
  226.             g.drawString("" + ver, 335, 358); //this will automatically grab the script version from the manifest
  227.             //END - current script version text
  228.  
  229.             //EDIT - Close Button Text - Remove or leave
  230.             g.setFont(font3);
  231.             g.drawString("Close Button:", 373, 353);
  232.             //EDIT - End of Close Button Text
  233.  
  234.             //START - Run Time
  235.             g.setFont(font1);
  236.             g.drawString("Run Time:", 14, 400);
  237.             g.setFont(font2);
  238.             g.drawString("" + hours + ":" + minutes + ":" + seconds, 121, 400); //sets the time automatically
  239.             //END - Run Time
  240.  
  241.             //START - Total Xp Gained
  242.             g.setFont(font1);
  243.             g.drawString("Total Xp Gained:", 12, 431);
  244.             g.setFont(font2);
  245.             g.drawString("" + XPGained, 120, 431);
  246.             //END - Total Xp Gained
  247.  
  248.             //START - Total Xp/hr
  249.             g.setFont(font1);
  250.             g.drawString("Total Xp/hr:", 10, 462);
  251.             g.setFont(font2);
  252.             g.drawString("" + xphour, 119, 464);
  253.             //END - Total Xp/hr
  254.  
  255.             //START - Time to Next Level
  256.             g.setFont(font1);
  257.             g.drawString("Time to Next Level:", 340, 454);
  258.             g.setFont(font2);
  259.             g.drawString("" + (int) estimatedHour + ":" + (int) estimatedMinutes + ":" + (int) estimatedSeconds, 454, 454);
  260.             //END - Time to Next Level
  261.  
  262.             //START - Script Status
  263.             g.setFont(font1);
  264.             g.drawString("Script Status:", 200, 473);
  265.             g.setFont(font2);
  266.             g.drawString("" + status, 283, 474);
  267.             //END - Script Status
  268.  
  269.             // </editor-fold>
  270.         } else {
  271.             // <editor-fold defaultstate="collapsed" desc="PaintHidden">
  272.             g.setColor(transparent);
  273.             g.draw(openButtonShape);
  274.             g.drawImage(openButton, 474, 345, null);
  275.             // </editor-fold>
  276.         }
  277.  
  278.         // </editor-fold>
  279.         } else {
  280.             log("[ERROR]Paint: Bad Paint Type");
  281.             stopScript();
  282.         }
  283.     }
  284.     //END: Code generated using Enfilade's Easel
  285.    
  286.     @Override
  287.     public void onRepaint(Graphics g1) {
  288.         Graphics2D g = (Graphics2D) g1;
  289.         g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
  290.                 mainPaint(g);
  291.         mousePaint.draw(g);
  292.                
  293.     }
  294.  
  295.     // <editor-fold defaultstate="collapsed" desc="MouseStuff">
  296.     @Override
  297.     public void mouseClicked(MouseEvent e) {
  298.         p = e.getPoint();
  299.         if (FuserScriptsLogoShape.contains(p) && showPaint) {
  300.             sendToURL("http://fuserscripts.cz.cc/community/");
  301.         }
  302.         else if (userLogoShape.contains(p) && showPaint) {
  303.             sendToURL("http://fuserscripts.cz.cc/community/index.php?/topic/76-fuserpaint-skeleton/");
  304.         }
  305.         else if (avatarSpotShape.contains(p) && showPaint) {
  306.             sendToURL("http://fuserscripts.cz.cc/community/index.php?/user/19-dew/");
  307.         }
  308.         else if (closeButtonShape.contains(p) && showPaint) {
  309.             showPaint = false;
  310.         }
  311.         else if (openButtonShape.contains(p) && !showPaint) {
  312.             showPaint = true;
  313.         }
  314.  
  315.     }
  316.  
  317.     // <editor-fold defaultstate="collapsed" desc="UNUSED">
  318.     @Override
  319.     public void mouseEntered(MouseEvent e) {
  320.         // TODO Auto-generated method stub
  321.     }
  322.  
  323.     @Override
  324.     public void mouseExited(MouseEvent e) {
  325.         // TODO Auto-generated method stub
  326.     }
  327.  
  328.     @Override
  329.     public void mousePressed(MouseEvent e) {
  330.         // TODO Auto-generated method stub
  331.     }
  332.  
  333.     @Override
  334.     public void mouseReleased(MouseEvent e) {
  335.         // TODO Auto-generated method stub
  336.     }
  337.     // </editor-fold>
  338.  
  339.     // </editor-fold>
  340.  
  341.     public class MousePaint {
  342.  
  343.         public int waveSize = 0;
  344.  
  345.         @SuppressWarnings({"serial", "unused"})
  346.         public class MousePathPoint extends Point {
  347.  
  348.             private long finishTime;
  349.             private double lastingTime;
  350.  
  351.             public MousePathPoint(int x, int y, int lastingTime) {
  352.                 super(x, y);
  353.                 this.lastingTime = lastingTime;
  354.                 finishTime = System.currentTimeMillis() + lastingTime;
  355.             }
  356.  
  357.             public boolean isUp() {
  358.                 return System.currentTimeMillis() > finishTime;
  359.             }
  360.  
  361.         }
  362.  
  363.         public double getRot(int ticks){
  364.             return (System.currentTimeMillis() % (360 * ticks)) / ticks;
  365.         }
  366.  
  367.         public LinkedList<MousePathPoint> MousePath = new LinkedList<MousePathPoint>();
  368.  
  369.         public void drawTrail(Graphics g1) {
  370.             Graphics2D g = (Graphics2D) g1;
  371.             g.setStroke(new BasicStroke(1));
  372.             while (!MousePath.isEmpty() && MousePath.peek().isUp()) {
  373.                 MousePath.remove();
  374.             }
  375.             Point clientCursor = mouse.getLocation();
  376.             MousePathPoint mpp = new MousePathPoint(clientCursor.x, clientCursor.y, 250);
  377.             if (MousePath.isEmpty() || !MousePath.getLast().equals(mpp)) {
  378.                 MousePath.add(mpp);
  379.             }
  380.             MousePathPoint lastPoint = null;
  381.             for (MousePathPoint a : MousePath) {
  382.                 if (lastPoint != null) {
  383.                     long mpt = System.currentTimeMillis() - mouse.getPressTime();
  384.                     if (mouse.getPressTime() == -1 || mpt >= 250) {
  385.                         g.setColor(Color.GREEN);
  386.                     }
  387.                     if (mpt < 250) {
  388.                         g.setColor(Color.RED);
  389.                     }
  390.                     g.drawLine(a.x, a.y, lastPoint.x, lastPoint.y);
  391.                 }
  392.                 lastPoint = a;
  393.             }
  394.         }
  395.  
  396.         public void drawMouse(Graphics g1) {
  397.             Graphics2D g = (Graphics2D) g1;
  398.             g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
  399.             g.setStroke(new BasicStroke(3));
  400.             g.setColor(Color.BLACK);
  401.             g.drawOval(mouse.getLocation().x - 13, mouse.getLocation().y - 13, 25, 25);
  402.             g.setStroke(new BasicStroke(1));
  403.             g.setColor(new Color(0, 0, 0, 114));
  404.             g.fillOval(mouse.getLocation().x - 13, mouse.getLocation().y - 13, 25, 25);
  405.             Point MouseLoc = mouse.getLocation();
  406.             long mpt = System.currentTimeMillis() - mouse.getPressTime();
  407.             g.rotate(Math.toRadians(getRot(5)), mouse.getLocation().x, mouse.getLocation().y);
  408.             if (mouse.getPressTime() == -1 || mpt >= 250) {
  409.                 g.setColor(Color.GREEN);
  410.                 g.drawLine(MouseLoc.x - 5, MouseLoc.y, MouseLoc.x + 5, MouseLoc.y);
  411.                 g.drawLine(MouseLoc.x, MouseLoc.y - 5, MouseLoc.x, MouseLoc.y + 5);
  412.             }
  413.             if (mpt < 250) {
  414.                 g.setColor(Color.RED);
  415.                 g.drawLine(MouseLoc.x - 5, MouseLoc.y, MouseLoc.x + 5, MouseLoc.y);
  416.                 g.drawLine(MouseLoc.x, MouseLoc.y - 5, MouseLoc.x, MouseLoc.y + 5);
  417.             }
  418.         }
  419.  
  420.         public void drawWave(Graphics g1, Color c) {
  421.             Point MouseLoc = mouse.getPressLocation();
  422.             long mpt = System.currentTimeMillis() - mouse.getPressTime();
  423.             Graphics2D g = (Graphics2D) g1;
  424.             g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
  425.             g.setColor(c);
  426.             if (mpt < 1000) {
  427.                 waveSize = (int) (mpt / 7.5);
  428.             } else {
  429.                 waveSize = 0;
  430.             }
  431.             g.setStroke(new BasicStroke(3));
  432.             g.drawOval(MouseLoc.x - (waveSize / 2), MouseLoc.y - (waveSize / 2), waveSize, waveSize);
  433.             g.drawOval(MouseLoc.x - ((waveSize / 2) / 2), MouseLoc.y - ((waveSize / 2) / 2), waveSize / 2, waveSize / 2);
  434.         }
  435.  
  436.         public void draw(Graphics g1) {
  437.              Graphics2D g = (Graphics2D) g1;
  438.              g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
  439.              drawWave(g, Color.BLACK);
  440.              drawTrail(g);
  441.              drawMouse(g);
  442.         }
  443.     }
  444.  
  445.     public MousePaint mousePaint = new MousePaint();
  446.  
  447.     public void sendToURL(String url) {
  448.         try {
  449.             java.awt.Desktop.getDesktop().browse(
  450.                     java.net.URI.create(url));
  451.         } catch (Exception e) {
  452.             log("Error:" + e.getLocalizedMessage());
  453.         }
  454.     }
  455.  
  456.         // <editor-fold defaultstate="collapsed" desc="GUI">
  457.    
  458.     public class FuserGui extends javax.swing.JFrame {
  459.  
  460.         private static final long serialVersionUID = 1L;
  461.  
  462.         /** Creates new form FuserGui */
  463.         public FuserGui() {
  464.             initComponents();
  465.         }
  466.  
  467.         /** This method is called from within the constructor to
  468.          * initialize the form.
  469.          * WARNING: Do NOT modify this code. The content of this method is
  470.          * always regenerated by the Form Editor.
  471.          */
  472.         @SuppressWarnings("unchecked")
  473.         // <editor-fold defaultstate="collapsed" desc="Generated Code">
  474.         private void initComponents() {
  475.  
  476.             jLabel1 = new javax.swing.JLabel();
  477.             paintType = new javax.swing.JComboBox();
  478.             jLabel2 = new javax.swing.JLabel();
  479.             startbutton = new javax.swing.JButton();
  480.  
  481.             setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
  482.             setTitle("FuserPaint - Official Paint Designs");
  483.             setAlwaysOnTop(true);
  484.             setName("FuserPaint - Official Paint Designs"); // NOI18N
  485.             setResizable(false);
  486.  
  487.             jLabel1.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
  488.             jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  489.             jLabel1.setText("Paint Template GUI");
  490.  
  491.             paintType.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
  492.             paintType.setModel(new javax.swing.DefaultComboBoxModel(new String[]{
  493.                         "Chatbox Paint",
  494.                         "Inventory Paint(NOT available)",
  495.                         "Regular Paint(NOT available)"}));
  496.  
  497.             jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  498.             jLabel2.setText("Select the paint to view! - 3 options to come");
  499.  
  500.             startbutton.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N
  501.             startbutton.setText("Start Script");
  502.             startbutton.addActionListener(new java.awt.event.ActionListener() {
  503.  
  504.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  505.                     startbuttonActionPerformed(evt);
  506.                 }
  507.             });
  508.  
  509.             javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  510.             getContentPane().setLayout(layout);
  511.             layout.setHorizontalGroup(
  512.                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE).addGroup(layout.createSequentialGroup().addGap(86, 86, 86).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(paintType, javax.swing.GroupLayout.Alignment.LEADING, 0, 218, Short.MAX_VALUE)).addGap(96, 96, 96)).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(startbutton, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE).addContainerGap()));
  513.             layout.setVerticalGroup(
  514.                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jLabel1).addGap(24, 24, 24).addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(paintType, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(startbutton, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE).addContainerGap()));
  515.  
  516.             pack();
  517.         }// </editor-fold>
  518.  
  519.         private void startbuttonActionPerformed(java.awt.event.ActionEvent evt) {
  520.             setVisible(false);
  521.             GuiIsOpen = false;
  522.  
  523.         }
  524.         // Variables declaration - do not modify
  525.         private javax.swing.JLabel jLabel1;
  526.         private javax.swing.JLabel jLabel2;
  527.         private javax.swing.JComboBox paintType;
  528.         private javax.swing.JButton startbutton;
  529.         // End of variables declaration
  530.     }
  531.     // </editor-fold>
  532.  
  533. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement