Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.rarebot.script.*;
- import com.rarebot.script.wrappers.*;
- import com.rarebot.event.listeners.MessageListener;
- import com.rarebot.event.listeners.PaintListener;
- import com.rarebot.event.events.*;
- import com.rarebot.script.methods.*;
- import java.awt.*;
- import java.awt.event.MouseEvent;
- import java.awt.event.MouseListener;
- import java.awt.event.MouseMotionListener;
- import java.awt.image.BufferedImage;
- import java.io.IOException;
- import java.net.MalformedURLException;
- import java.net.URL;
- import java.util.LinkedList;
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import javax.imageio.ImageIO;
- @ScriptManifest(authors = {"eShade"}, keywords = {"thieving"}, name = "FuserBanditStealer", description = "Pickpockets bandits for 100k+ profit and 120k+ exp/hour!", version = 0.15)
- public class FuserBanditStealer extends Script implements PaintListener, MessageListener, MouseListener, MouseMotionListener {
- public long startTime = 0;
- public long timeMilliSeconds = 0;
- public long timeHours = 0;
- public long timeMinutes = 0;
- public long timeSeconds = 0;
- public int expHour;
- public int startExp;
- public int glovesID = 10075;
- public int expGained;
- boolean check;
- public Double ver = FuserBanditStealer.class.getAnnotation(ScriptManifest.class)
- .version();
- private boolean guiWait = true;
- gui g = new gui();
- public boolean fiveleft;
- public long millis = 0;
- public long hours = 0;
- public long minutes = 0;
- public long seconds = 0;
- public boolean usingGloves = true;
- public boolean stuck = false;
- public int foodID;
- public int untilDegrade;
- public int[] banditID = {1879};
- public boolean showhide = true;
- private String status = "Loading...";
- public int bankerID = 3046;
- public int bankTrips;
- public boolean haveGloves;
- public boolean onstartequip = true;
- RSTile nardahGypsie = new RSTile(3401, 2917, 0);
- RSTile banditGypsie = new RSTile(3349, 2942, 0);
- RSTile nardahBank = new RSTile(3428, 2891, 0);
- RSTile banditTile = new RSTile(3351, 2998, 0);
- //Mouse
- private final LinkedList<MousePathPoint1> mousePath = new LinkedList<MousePathPoint1>();
- BufferedImage normal = null;
- public boolean showPaint = true ;
- BufferedImage clicked = null;
- RSArea banditLocation = new RSArea(new RSTile[] {
- new RSTile(3344, 3011), new RSTile(3360, 3011),
- new RSTile(3369, 3010), new RSTile(3374, 3009),
- new RSTile(3375, 3004), new RSTile(3376, 2990),
- new RSTile(3371, 2992), new RSTile(3366, 2992),
- new RSTile(3361, 2992), new RSTile(3356, 2992),
- new RSTile(3351, 2993), new RSTile(3346, 2993)
- });
- RSArea banditGypoGuy = new RSArea(new RSTile[] {
- new RSTile(3340, 2950), new RSTile(3351, 2950),
- new RSTile(3356, 2948), new RSTile(3356, 2941),
- new RSTile(3353, 2937), new RSTile(3348, 2937),
- new RSTile(3342, 2937)
- });
- RSArea bankArea = new RSArea(new RSTile[] {
- new RSTile(3421, 2898), new RSTile(3431, 2898),
- new RSTile(3435, 2895), new RSTile(3432, 2886),
- new RSTile(3427, 2885), new RSTile(3422, 2885)
- });
- RSArea nardah = new RSArea(new RSTile[] {
- new RSTile(3393, 2944), new RSTile(3398, 2945),
- new RSTile(3403, 2945), new RSTile(3408, 2945),
- new RSTile(3417, 2945), new RSTile(3422, 2945),
- new RSTile(3427, 2945), new RSTile(3432, 2945),
- new RSTile(3440, 2945), new RSTile(3445, 2943),
- new RSTile(3450, 2943), new RSTile(3453, 2938),
- new RSTile(3453, 2931), new RSTile(3453, 2926),
- new RSTile(3453, 2921), new RSTile(3453, 2916),
- new RSTile(3453, 2909), new RSTile(3452, 2904),
- new RSTile(3449, 2896), new RSTile(3448, 2891),
- new RSTile(3446, 2886), new RSTile(3442, 2879),
- new RSTile(3437, 2877), new RSTile(3426, 2877),
- new RSTile(3421, 2877), new RSTile(3412, 2878),
- new RSTile(3405, 2882), new RSTile(3400, 2883),
- new RSTile(3392, 2887), new RSTile(3386, 2889)
- });
- RSArea nardahGypoGuy = new RSArea(new RSTile[] {
- new RSTile(3391, 2925), new RSTile(3396, 2925),
- new RSTile(3401, 2925), new RSTile(3406, 2925),
- new RSTile(3410, 2922), new RSTile(3410, 2917),
- new RSTile(3407, 2913), new RSTile(3402, 2913),
- new RSTile(3397, 2913), new RSTile(3392, 2913)
- });
- //your script variable section
- Point m = new Point(-1,-1);
- @Override
- public boolean onStart() {
- g.setVisible(true);
- while(guiWait) sleep(500);
- startExp = skills.getCurrentExp(Skills.THIEVING);
- startTime = System.currentTimeMillis();
- try {
- final URL cursorURL = new URL("http://i48.tinypic.com/313623n.png");
- final URL cursor80URL = new URL("http://i46.tinypic.com/9prjnt.png");
- normal = ImageIO.read(cursorURL);
- clicked = ImageIO.read(cursor80URL);
- } catch (MalformedURLException e) {
- log("Unable to buffer cursor.");
- } catch (IOException e) {
- log("Unable to open cursor image.");
- }
- return true;
- }
- public boolean atBandits(){
- RSArea area = banditLocation;
- return area.contains(getMyPlayer().getLocation());
- }
- public boolean atGypoToBandits(){
- RSArea area = nardahGypoGuy;
- return area.contains(getMyPlayer().getLocation());
- }
- public boolean atGypoToNardah(){
- RSArea area = banditGypoGuy;
- return area.contains(getMyPlayer().getLocation());
- }
- public boolean atNardah(){
- RSArea area = nardah;
- return area.contains(getMyPlayer().getLocation());
- }
- public boolean atBank(){
- RSArea area = bankArea;
- return area.contains(getMyPlayer().getLocation());
- }
- public void messageReceived(MessageEvent arg0) {
- final String serverString = arg0.getMessage();
- if (serverString.toLowerCase().contains("reach")) {
- stuck = true;
- }
- if(usingGloves = true){
- if (serverString.toLowerCase().contains("going to fall")) {
- fiveleft = true;
- } if (serverString.toLowerCase().contains("been stun")) {
- if(fiveleft = true){
- untilDegrade++;
- }
- }
- }
- }
- public void openCurtain(){
- RSObject curtain = objects.getNearest(1528);
- if(curtain != null){
- if(curtain.isOnScreen()){
- status = ("Opening curtain...");
- curtain.interact("Open");
- sleep(random(2000,3000));
- stuck = false;
- } else {
- walking.walkTileMM(curtain.getLocation());
- }
- }
- }
- public void checkRun() {
- if(!walking.isRunEnabled()) {
- if(walking.getEnergy() < 25) {
- walking.rest();
- status = "Resting...";
- } else
- walking.setRun(true);
- }
- }
- private void antiBan() {
- int random = Methods.random(1, 9);
- while (game.getClientState() == 10) {
- switch (random) {
- case 1:
- status = "Antiban...";
- if (Methods.random(1, 17) != 1) {
- return;
- }
- mouse.move(random(10, 750), random(10, 495));
- if (Methods.random(1, 7) == 1) {
- mouse.move(random(10, 750), random(10, 495));
- }
- return;
- case 2:
- status = "Antiban...";
- if (Methods.random(1, 12) != 1) {
- return;
- }
- mouse.moveSlightly();
- return;
- case 3:
- status = "Antiban...";
- if (Methods.random(1, 18) != 1) {
- return;
- }
- if (Methods.random(1, 11) == 1) {
- camera.setPitch(true);
- }
- int angle = camera.getAngle() + Methods.random(-45, 45);
- if (angle < 0) {
- angle = Methods.random(0, 10);
- }
- if (angle > 359) {
- angle = Methods.random(0, 10);
- }
- char whichDir = 37;
- if (Methods.random(0, 100) < 50) {
- whichDir = 39;
- }
- keyboard.pressKey(whichDir);
- Methods.sleep(Methods.random(100, 700));
- keyboard.releaseKey(whichDir);
- return;
- default:
- return;
- }
- }
- }
- public void steal(){
- RSNPC bandit = npcs.getNearest(banditID);
- if(atBandits()){
- if(bandit != null){
- if(bandit.isOnScreen()){
- if(!getMyPlayer().isInCombat()){
- if(banditLocation.contains(bandit.getLocation())){
- status = ("Pickpocketing...");
- bandit.interact("Pickpocket");
- sleep(random(400,600));
- }
- }
- } else if(!bandit.isOnScreen()){
- if (calc.distanceTo(bandit) <= 5) {
- camera.turnTo(bandit.getLocation());
- } else if (calc.distanceTo(bandit) >= 5) {
- walking.walkTileMM(bandit.getLocation());
- }
- }
- }
- } else if(!atBandits()){
- walkToBandits();
- }
- }
- private void eat(){
- RSItem y = inventory.getItem(foodID);
- if(combat.getHealth() <= 60){
- if(inventory.containsOneOf(foodID)){
- if(y != null){
- status = "Eating...";
- y.interact("Eat");
- sleep(50, 60);
- }
- } else if(!inventory.containsOneOf(foodID)){
- doBank();
- }
- }
- }
- public void travelToBandits(){
- RSNPC nardahGypo = npcs.getNearest(3020);
- if(nardahGypo != null){
- if(nardahGypo.isOnScreen()){
- status = ("Going to bandits...");
- nardahGypo.interact("Travel");
- sleep(random(1750,2000));
- interfaces.getComponent(236, 1).doClick();
- sleep(random(1050,1200));
- if(interfaces.canContinue()){
- interfaces.clickContinue();
- }
- } else {
- walking.walkTileMM(nardahGypo.getLocation());
- }
- sleep(random(1000,2000));
- }
- }
- public void walkToBandits(){
- status = ("Walking to bandits...");
- RSWeb walkToGypo = web.getWeb(getMyPlayer().getLocation(), nardahGypsie);
- RSNPC nardahGypo = npcs.getNearest(3020);
- if(atNardah()){
- if(inventory.containsOneOf(foodID)){
- if(atGypoToBandits()){
- if(nardahGypo != null){
- if(nardahGypo.isOnScreen()){
- travelToBandits();
- }
- }
- } else {
- walkToGypo.step();
- }
- } else if(!inventory.containsOneOf(foodID)){
- doBank();
- }
- } else if(!atNardah()){
- RSWeb walkToBandits = web.getWeb(getMyPlayer().getLocation(), banditTile);
- walkToBandits.step();
- }
- }
- public void walkToNardah(){
- status = ("Walking to bank...");
- RSWeb walkToGypo = web.getWeb(getMyPlayer().getLocation(), banditGypsie);
- RSWeb walkToBank = web.getWeb(getMyPlayer().getLocation(), nardahBank);
- RSNPC banditGypo = npcs.getNearest(2293);
- if(!atNardah()){
- if(atGypoToNardah()){
- if(banditGypo != null){
- if(banditGypo.isOnScreen()){
- banditGypo.interact("Travel");
- sleep(random(1750,2000));
- interfaces.getComponent(237, 1).doClick();
- sleep(random(1050,1200));
- if(interfaces.canContinue()){
- interfaces.clickContinue();
- sleep(1000);
- }
- }
- }
- } else {
- walkToGypo.step();
- }
- } else if(atNardah() && !atBank()){
- walkToBank.step();
- }
- }
- private void bankOpen(){
- RSNPC banker = npcs.getNearest(bankerID);
- if(banker.isOnScreen()){
- banker.interact("Bank Nardah Banker");
- sleep(random(750, 1000));
- } else if(!banker.isOnScreen()){
- banker.getLocation();
- camera.turnTo(banker);
- if(calc.distanceTo(banker) >= 7){
- walking.walkTileMM(banker.getLocation());
- }
- }
- }
- public void doBank(){
- status = ("Banking...");
- RSNPC banker = npcs.getNearest(bankerID);
- if(atBank()){
- if(banker != null){
- bankOpen();
- withdraw();
- }
- } else {
- walkToNardah();
- }
- }
- public void checkInterfaces(){
- if(interfaces.getComponent(620, 18).isValid()){
- interfaces.getComponent(620, 18).doClick();
- sleep(random(100,200));
- }
- }
- private void withdraw() {
- RSItem gloves = bank.getItem(glovesID);
- RSItem food = bank.getItem(foodID);
- if (bank.isOpen()) {
- status = "Banking...";
- if(usingGloves = true){
- if(inventory.contains(glovesID)){
- bank.deposit(glovesID, 10);
- sleep(random(300,500));
- }
- if(gloves != null){
- bank.withdraw(glovesID, 5);
- sleep(random(300,500));
- } else {
- log.severe("Out of gloves of silence, stopping script...");
- bank.close();
- stopScript();
- }
- }
- if(food != null){
- bank.withdraw(foodID, 20);
- sleep(random(300,500));
- bankTrips++;
- } else {
- log.severe("No more food, stopping script...");
- bank.close();
- stopScript();
- }
- } else {
- bankOpen();
- sleep(1800, 2200);
- }
- }
- public void equipGloves() {
- if(usingGloves == true){
- if(inventory.containsOneOf(glovesID)){
- RSItem gloves = inventory.getItem(glovesID);
- gloves.interact("Wear");
- onstartequip = false;
- sleep(random(500,700));
- } else {
- doBank();
- }
- }
- }
- public int loop() {
- mouse.setSpeed(random(4,6));
- checkInterfaces();
- if(random(1,9) == 3){
- antiBan();
- }
- if(onstartequip == true){
- equipGloves();
- }
- if(untilDegrade == 5){
- equipGloves();
- untilDegrade = 0;
- }
- while(getMyPlayer().isInCombat()){
- sleep(random(25,50));
- }
- if(atBandits()){
- while(getMyPlayer().isMoving()){
- sleep(50);
- }
- }
- if(stuck == true){
- openCurtain();
- }
- while(getMyPlayer().getAnimation() == 330){
- sleep(random(50,100));
- }
- checkRun();
- eat();
- if(inventory.containsOneOf(foodID) && inventory.containsOneOf(glovesID)){
- steal();
- } else {
- doBank();
- }
- return 1;
- }
- @Override
- public void onFinish() {
- }
- @SuppressWarnings("serial")
- private class MousePathPoint1 extends Point {
- private long finishTime;
- private double lastingTime;
- private int toColor(double d) {
- return Math.min(255, Math.max(0, (int) d));
- }
- public MousePathPoint1(int x, int y, int lastingTime) {
- super(x, y);
- this.lastingTime = lastingTime;
- finishTime = System.currentTimeMillis() + lastingTime;
- }
- public boolean isUp() {
- return System.currentTimeMillis() > finishTime;
- }
- public Color getColor() {
- return new Color(255, 255, 255, toColor(256 * ((finishTime - System // first
- // 3
- // numbers
- // are
- // the
- // colour
- .currentTimeMillis()) / lastingTime)));
- }
- }
- private final RenderingHints antialiasing = new RenderingHints(
- RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
- ///////////////////////////////////PAINT\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- private Image getImage(String url) {
- try {
- return ImageIO.read(new URL(url));
- } catch(IOException e) {
- return null;
- }
- }
- public String outputTTL() {
- long runTime = System.currentTimeMillis() - startTime;
- int xptl = skills.getExpToNextLevel(Skills.THIEVING);
- long ttl = (long) (xptl * ((double) runTime / expGained));
- int ttlH = (int) (ttl / 3600000D);
- int ttlM = (int) ((ttl % 3600000D) / 60000D);
- int ttlS = (int) (((ttl % 3600000D) % 60000D) / 1000D);
- return (ttlH + ":" + ttlM + ":" + ttlS);
- }
- private final Color color1 = new Color(204, 204, 204);
- private final Font font1 = new Font("Arial", 0, 14);
- private final Image img1 = getImage("http://i1143.photobucket.com/albums/n630/TiSgOeGeWiSt/Private/Right_eShade_Thief_Paint.png");
- private final Image img2 = getImage("http://i1143.photobucket.com/albums/n630/TiSgOeGeWiSt/Private/SHOW_Right_eShade_Thief_Paint.png");
- private final Rectangle TAB1_BOX = new Rectangle(712, 177, 26, 27); ////MAIN TAB
- ////////////The location of the g.drawString can be different, depending on what you modified in the Images.\\\\\\\\\\\\\\\\\
- public void onRepaint(Graphics g1) {
- Graphics2D g = (Graphics2D)g1;
- g.setRenderingHints(antialiasing);
- millis = System.currentTimeMillis() - startTime;
- hours = millis / (1000 * 60 * 60);
- millis -= hours * (1000 * 60 * 60);
- minutes = millis / (1000 * 60);
- millis -= minutes * (1000 * 60);
- seconds = millis / 1000;
- expGained = skills.getCurrentExp(Skills.THIEVING) - startExp;
- expHour = (int) ((expGained) * 3600000D / (System.currentTimeMillis() - startTime));
- if(showPaint){
- g.drawImage(img1, 546, 167, null);
- g.setFont(font1);
- g.setColor(color1);
- g.drawString(hours + ":" + minutes + ":" + seconds, 632, 273); //// runtime
- g.drawString("" + status, 625, 290); //// status
- g.drawString("" + ver, 628, 306); //// version
- g.drawString("" + expGained, 648, 335); //// exp gained
- g.drawString("" + expHour, 648, 355); //// exp per hour
- g.drawString("" + skills.getExpToNextLevel(Skills.THIEVING), 648, 373); //// Exp to level
- g.drawString("" + outputTTL(), 603, 389); //// TTL
- g.drawString("" + bankTrips, 662, 419); //// banktrips
- } else {
- g.drawImage(img2, 546, 167, null);
- }
- while (!mousePath.isEmpty() && mousePath.peek().isUp())
- mousePath.remove();
- Point clientCursor = mouse.getLocation();
- MousePathPoint1 mpp = new MousePathPoint1(clientCursor.x,
- clientCursor.y, 2500); // 1000 = lasting time/MS
- if (mousePath.isEmpty() || !mousePath.getLast().equals(mpp))
- mousePath.add(mpp);
- MousePathPoint1 lastPoint = null;
- for (MousePathPoint1 a : mousePath) {
- if (lastPoint != null) {
- g.setColor(a.getColor());
- g.drawLine(a.x, a.y, lastPoint.x, lastPoint.y);
- }
- lastPoint = a;
- }
- final Point p1 = mouse.getLocation();
- final Point c = mouse.getPressLocation();
- final long mpt = System.currentTimeMillis() - mouse.getPressTime();
- if (mouse.getPressTime() == -1 || mpt >= 1000) {
- g.drawImage(normal, p1.x - 8, p1.y - 8, null); // this
- }
- if (mpt < 2050) {
- g.drawImage(normal, p1.x - 8, p1.y - 8, null);
- g.drawImage(clicked, c.x - 8, c.y - 8, null);
- }
- }
- @Override
- public void mouseClicked(MouseEvent e) {
- if (TAB1_BOX.contains(e.getPoint())) {
- showPaint = !showPaint;
- }
- }
- @Override
- public void mouseEntered(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mouseExited(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mousePressed(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mouseReleased(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mouseDragged(MouseEvent arg0) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mouseMoved(MouseEvent arg0) {
- // TODO Auto-generated method stub
- }
- class gui extends JFrame {
- public gui() {
- initComponents();
- }
- private void button1ActionPerformed(ActionEvent e) {
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("trout")){
- foodID = 333;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("salmon")){
- foodID = 329;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("tuna")){
- foodID = 361;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("lobster")){
- foodID = 379;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("swordfish")){
- foodID = 373;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("monkfish")){
- foodID = 7946;
- } else
- if(comboBox1.getSelectedItem().toString().equalsIgnoreCase("shark")){
- foodID = 385;
- }
- guiWait = false;
- g.dispose();
- }
- private void initComponents() {
- // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
- // Generated using JFormDesigner Evaluation license - Jack Daniel
- panel1 = new JPanel();
- label1 = new JLabel();
- comboBox1 = new JComboBox();
- scrollPane1 = new JScrollPane();
- textPane1 = new JTextPane();
- button1 = new JButton();
- //======== this ========
- Container contentPane = getContentPane();
- //======== panel1 ========
- {
- panel1.setBackground(Color.black);
- //---- label1 ----
- label1.setText("Select your food:");
- label1.setForeground(Color.green);
- //---- comboBox1 ----
- comboBox1.setModel(new DefaultComboBoxModel(new String[] {
- "Trout",
- "Salmon",
- "Tuna",
- "Lobster",
- "Swordfish",
- "Monkfish",
- "Shark"
- }));
- comboBox1.setBackground(Color.black);
- //======== scrollPane1 ========
- {
- //---- textPane1 ----
- textPane1.setText("Please ensure you have\nGloves of Silence and \nfood in your inventory \nand in your bank.");
- textPane1.setBackground(Color.black);
- textPane1.setForeground(Color.green);
- textPane1.setEditable(false);
- scrollPane1.setViewportView(textPane1);
- }
- //---- button1 ----
- button1.setText("Start");
- button1.setBackground(Color.black);
- button1.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- button1ActionPerformed(e);
- }
- });
- GroupLayout panel1Layout = new GroupLayout(panel1);
- panel1.setLayout(panel1Layout);
- panel1Layout.setHorizontalGroup(
- panel1Layout.createParallelGroup()
- .addGroup(panel1Layout.createSequentialGroup()
- .addGroup(panel1Layout.createParallelGroup()
- .addGroup(panel1Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(panel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
- .addComponent(label1)
- .addComponent(comboBox1, 0, 143, Short.MAX_VALUE)))
- .addGroup(panel1Layout.createSequentialGroup()
- .addGap(20, 20, 20)
- .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(22, Short.MAX_VALUE))
- .addGroup(GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
- .addContainerGap(91, Short.MAX_VALUE)
- .addComponent(button1, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
- panel1Layout.setVerticalGroup(
- panel1Layout.createParallelGroup()
- .addGroup(panel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(label1)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(comboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
- .addComponent(button1, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
- }
- GroupLayout contentPaneLayout = new GroupLayout(contentPane);
- contentPane.setLayout(contentPaneLayout);
- contentPaneLayout.setHorizontalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addComponent(panel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- contentPaneLayout.setVerticalGroup(
- contentPaneLayout.createParallelGroup()
- .addComponent(panel1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, 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 - Jack Daniel
- private JPanel panel1;
- private JLabel label1;
- private JComboBox comboBox1;
- private JScrollPane scrollPane1;
- private JTextPane textPane1;
- private JButton button1;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment