Advertisement
Guest User

Untitled

a guest
May 4th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. package KES_Woodcutter;
  2.  
  3. import java.awt.Graphics;
  4.  
  5. import impsoft.bots.ColorBot;
  6. import impsoft.scripting.ibot.interfaces.AutoPaint;
  7. import impsoft.scripting.types.ColorScript;
  8.  
  9. public class KES_Woodcutter extends ColorScript implements AutoPaint {
  10.  
  11. public KES_Woodcutter(ColorBot arg0) {
  12. super(arg0);
  13. // TODO Auto-generated constructor stub
  14. }
  15.  
  16. String password;
  17. String name;
  18.  
  19. @Override
  20. public void paint(Graphics arg0) {
  21. // TODO Auto-generated method stub
  22.  
  23. }
  24.  
  25. public void script() throws InterruptedException, Exception {
  26.  
  27. }
  28.  
  29. /*
  30. * To change this template, choose Tools | Templates
  31. * and open the template in the editor.
  32. */
  33.  
  34. /*
  35. * Test.java
  36. *
  37. * Created on Jan 18, 2010, 1:42:52 AM
  38. */
  39.  
  40. /**
  41. *
  42. * @author Byron
  43. */
  44. public class Test extends javax.swing.JFrame {
  45.  
  46. /**
  47. *
  48. */
  49. private static final long serialVersionUID = 1L;
  50. /** Creates new form Test */
  51. public Test() {
  52. initComponents();
  53. }
  54.  
  55. /** This method is called from within the constructor to
  56. * initialize the form.
  57. * WARNING: Do NOT modify this code. The content of this method is
  58. * always regenerated by the Form Editor.
  59. */
  60. private void initComponents() {
  61.  
  62. jPanel1 = new javax.swing.JPanel();
  63. jLabel1 = new javax.swing.JLabel();
  64. jLabel2 = new javax.swing.JLabel();
  65. jTextField1 = new javax.swing.JTextField();
  66. jPasswordField1 = new javax.swing.JPasswordField();
  67. jButton1 = new javax.swing.JButton();
  68.  
  69. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  70.  
  71. jPanel1.setBackground(new java.awt.Color(0, 0, 0));
  72.  
  73. jLabel1.setForeground(new java.awt.Color(0, 255, 255));
  74. jLabel1.setText("Username:");
  75.  
  76. jLabel2.setForeground(new java.awt.Color(0, 255, 255));
  77. jLabel2.setText("Password:");
  78.  
  79. jButton1.setText("Test");
  80. jButton1.addActionListener(new java.awt.event.ActionListener() {
  81. public void actionPerformed(java.awt.event.ActionEvent evt) {
  82. jButton1ComboActionPerformed(evt);
  83. }
  84. });
  85.  
  86. javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  87. jPanel1.setLayout(jPanel1Layout);
  88. jPanel1Layout.setHorizontalGroup(
  89. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  90. .addGroup(jPanel1Layout.createSequentialGroup()
  91. .addContainerGap()
  92. .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  93. .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
  94. .addGroup(jPanel1Layout.createSequentialGroup()
  95. .addComponent(jLabel1)
  96. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  97. .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
  98. .addGroup(jPanel1Layout.createSequentialGroup()
  99. .addComponent(jLabel2)
  100. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  101. .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)))
  102. .addContainerGap())
  103. );
  104. jPanel1Layout.setVerticalGroup(
  105. jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  106. .addGroup(jPanel1Layout.createSequentialGroup()
  107. .addGap(6, 6, 6)
  108. .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  109. .addComponent(jLabel1)
  110. .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  111. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  112. .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  113. .addComponent(jLabel2)
  114. .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  115. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  116. .addComponent(jButton1)
  117. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  118. );
  119.  
  120. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  121. getContentPane().setLayout(layout);
  122. layout.setHorizontalGroup(
  123. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  124. .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  125. );
  126. layout.setVerticalGroup(
  127. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  128. .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  129. );
  130.  
  131. pack();
  132. }// </editor-fold>
  133.  
  134. private void jButton1ComboActionPerformed(java.awt.event.ActionEvent evt)
  135. {
  136. name = jTextField1.getText();
  137. password = jPasswordField1.getText();
  138. }
  139.  
  140. /**
  141. * @param args the command line arguments
  142. */
  143. public void main(String args[]) {
  144. java.awt.EventQueue.invokeLater(new Runnable() {
  145. public void run() {
  146. new Test().setVisible(true);
  147. }
  148. });
  149. }
  150.  
  151. // Variables declaration - do not modify
  152. private javax.swing.JButton jButton1;
  153. private javax.swing.JLabel jLabel1;
  154. private javax.swing.JLabel jLabel2;
  155. private javax.swing.JPanel jPanel1;
  156. private javax.swing.JPasswordField jPasswordField1;
  157. private javax.swing.JTextField jTextField1;
  158. // End of variables declaration
  159.  
  160. }
  161.  
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement