PDA

View Full Version : [562] Rs2hd Divine-X GUI



Divine-X
January 18th, 2011, 23:50
Okay.. I kept getting asked on MSN "How do I fix the Give Admin, Mod, and Demote buttons?" Well now I'm going to explain how.. Well to starts off I really wasn't sure about the Imports so I just decided to add some random imports cause I was thinking of something to add for the GUI. Import these
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;

And now under
/**
*
* @author Reach
*/
public class Rs2hdGUI extends javax.swing.JFrame { Add
public int rank = 0; Replace "rank" with "rights" now it should look like
package com.rs2hd;

import javax.swing.JOptionPane;
import java.applet.*;
import java.util.Properties;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.math.BigInteger;
import java.awt.event.*;
import java.io.*;
import java.lang.*;
import javax.swing.filechooser.FileFilter;
import javax.sound.midi.*;
import javax.swing.*;
import javax.swing.event.*;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.util.EventListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;

import com.rs2hd.model.*;
import com.rs2hd.io.*;
import com.rs2hd.content.*;
import com.rs2hd.packethandler.*;
import org.apache.mina.common.IoSession;
import com.rs2hd.packetbuilder.*;
import com.rs2hd.model.Player;
import com.rs2hd.io.XStreamPlayerLoader;
import com.rs2hd.packethandler.CommandPacketHandler;
import com.rs2hd.model.Player;
import com.rs2hd.model.PlayerDetails;
import com.rs2hd.model.World;
import com.rs2hd.Constants;
import com.rs2hd.model.*;
import com.rs2hd.admin.*;
import com.rs2hd.net.Packet;
import org.apache.mina.common.IoSession;
/**
*
* @author Reach
*/
public class Rs2hdGUI extends javax.swing.JFrame {
public int rank = 0;

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Welll I've been working on a GUI and it wasn't hard or long to make XD, just forgot it existed in my Seagate hard-drive ;3. Anyways go to

src>com>rs2hd And make a new file called
Rs2hdGUI.java

Now in your new file that was created add
/*
* Rs2hdGUI.java
*
* Created on Oct 21, 2010, 1:07:51 PM
*/

package com.rs2hd;

import javax.swing.JOptionPane;
import java.applet.*;
import java.util.Properties;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.math.BigInteger;
import java.awt.event.*;
import java.io.*;
import java.lang.*;
import javax.swing.filechooser.FileFilter;
import javax.sound.midi.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.util.EventListener;
import java.util.ArrayList;
import com.rs2hd.model.*;
import com.rs2hd.io.*;
import com.rs2hd.content.*;
import com.rs2hd.packethandler.*;
import org.apache.mina.common.IoSession;
import com.rs2hd.packetbuilder.*;
import com.rs2hd.model.Player;
import com.rs2hd.io.XStreamPlayerLoader;
import com.rs2hd.packethandler.CommandPacketHandler;
import com.rs2hd.model.Player;
import com.rs2hd.model.PlayerDetails;
import com.rs2hd.model.World;
import com.rs2hd.Constants;
import com.rs2hd.model.*;
import com.rs2hd.admin.*;
import com.rs2hd.net.Packet;
import org.apache.mina.common.IoSession;
/**
*
* @author Reach/Zeck/Silenzioso
*/
public class Rs2hdGUI extends javax.swing.JFrame {

/** Handles Rs2hdGUI Form **/
public Rs2hdGUI() {
initComponents();
this.setVisible(true);

}

@SuppressWarnings("unchecked")
private void initComponents() {

parentalTabbedPane = new javax.swing.JTabbedPane();
punishmentPanel = new javax.swing.JPanel();
playernameTextField = new javax.swing.JTextField();
playerDescriptionLabel = new javax.swing.JLabel();
kickButton = new javax.swing.JButton();
banButton = new javax.swing.JButton();
muteButton = new javax.swing.JButton();
ipbanButton = new javax.swing.JButton();
unbanButton = new javax.swing.JButton();
unmuteButton = new javax.swing.JButton();
serverPanel = new javax.swing.JPanel();
yelltoserverTextField = new javax.swing.JTextField();
yellLabel = new javax.swing.JLabel();
yellButton = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
preTextField = new javax.swing.JTextField();
COPanel = new javax.swing.JPanel();
shutdownButton = new javax.swing.JButton();
chatlogButton = new javax.swing.JButton();
suggestionsButton = new javax.swing.JButton();
giveadminButton = new javax.swing.JButton();
gadminTextField = new javax.swing.JTextField();
gmodButton = new javax.swing.JButton();
gmodTextField = new javax.swing.JTextField();
demoteButton = new javax.swing.JButton();
demoteTextField = new javax.swing.JTextField();
commandButton = new javax.swing.JButton();
complayerField = new javax.swing.JTextField();
comField = new javax.swing.JTextField();
chatlogmethodLabel = new javax.swing.JLabel();
suggestionsmethodLabel = new javax.swing.JLabel();
SDPanel = new javax.swing.JPanel();
pdTextField = new javax.swing.JTextField();
gdonarButton = new javax.swing.JButton();
g5mButton = new javax.swing.JButton();
g10mButton = new javax.swing.JButton();
g20mButton = new javax.swing.JButton();
g30mButton = new javax.swing.JButton();
g40mButton = new javax.swing.JButton();
g50mButton = new javax.swing.JButton();
g60mButton = new javax.swing.JButton();
maxGPRaresButton = new javax.swing.JButton();
g70mButton = new javax.swing.JButton();
g80mButton = new javax.swing.JButton();
g90mButton = new javax.swing.JButton();
g100mButton = new javax.swing.JButton();
creditsandinformationPanel = new javax.swing.JPanel();
candfLabel = new javax.swing.JLabel();
candfLabel2 = new javax.swing.JLabel();
candfLabel3 = new javax.swing.JLabel();
candfLabel4 = new javax.swing.JLabel();
candfLabel5 = new javax.swing.JLabel();
candfLabel6 = new javax.swing.JLabel();
candfLabel7 = new javax.swing.JLabel();
candfLabel8 = new javax.swing.JLabel();
candfLabel9 = new javax.swing.JLabel();
candfLabel10 = new javax.swing.JLabel();
frameworkLabel = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
setTitle("Divine-X FrameWork");

playerDescriptionLabel.setBackground(new java.awt.Color(0, 0, 0));
playerDescriptionLabel.setText("Player Name here:");

kickButton.setText("Kick Player");
kickButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
kickButtonActionPerformed(evt);
}
});

banButton.setText("Ban Player");
banButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
banButtonActionPerformed(evt);
}
});

muteButton.setText("Mute Player");
muteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
muteButtonActionPerformed(evt);
}
});

ipbanButton.setText("IPBan Player");
ipbanButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ipbanButtonActionPerformed(evt);
}
});

unbanButton.setText("Unban Player");
unbanButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
unbanButtonActionPerformed(evt);
}
});

unmuteButton.setText("Unmute Player");
unmuteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
unmuteButtonActionPerformed(evt);
}
});

javax.swing.GroupLayout punishmentPanelLayout = new javax.swing.GroupLayout(punishmentPanel);
punishmentPanel.setLayout(punishmentPanelLayout);
punishmentPanelLayout.setHorizontalGroup(
punishmentPanelLayout.createParallelGroup(javax.sw ing.GroupLayout.Alignment.LEADING)
.addGroup(punishmentPanelLayout.createSequentialGr oup()
.addGroup(punishmentPanelLayout.createParallelGrou p(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(punishmentPanelLayout.createSequentialGr oup()
.addGap(109, 109, 109)
.addComponent(kickButton)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.UNRELATED)
.addComponent(banButton)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(muteButton)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(ipbanButton))
.addGroup(punishmentPanelLayout.createSequentialGr oup()
.addGap(201, 201, 201)
.addComponent(unbanButton)
.addGap(18, 18, 18)
.addComponent(unmuteButton))
.addGroup(punishmentPanelLayout.createSequentialGr oup()
.addGap(155, 155, 155)
.addComponent(playerDescriptionLabel)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(playernameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(252, Short.MAX_VALUE))
);
punishmentPanelLayout.setVerticalGroup(
punishmentPanelLayout.createParallelGroup(javax.sw ing.GroupLayout.Alignment.LEADING)
.addGroup(punishmentPanelLayout.createSequentialGr oup()
.addGap(61, 61, 61)
.addGroup(punishmentPanelLayout.createParallelGrou p(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(playerDescriptionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(playernameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addGroup(punishmentPanelLayout.createParallelGrou p(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(kickButton)
.addComponent(banButton)
.addComponent(muteButton)
.addComponent(ipbanButton))
.addGap(18, 18, 18)
.addGroup(punishmentPanelLayout.createParallelGrou p(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(unmuteButton)
.addComponent(unbanButton))
.addContainerGap(125, Short.MAX_VALUE))
);

parentalTabbedPane.addTab("Punishments", punishmentPanel);

yelltoserverTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
yelltoserverTextFieldActionPerformed(evt);
}
});

yellLabel.setText("Enter Message Here:");

yellButton.setText("Send Message");
yellButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
yellButtonActionPerformed(evt);
}
});

jLabel2.setText("Pre Text Field:");

preTextField.setText("Server Name Here");

javax.swing.GroupLayout serverPanelLayout = new javax.swing.GroupLayout(serverPanel);
serverPanel.setLayout(serverPanelLayout);
serverPanelLayout.setHorizontalGroup(
serverPanelLayout.createParallelGroup(javax.swing. GroupLayout.Alignment.LEADING)
.addGroup(serverPanelLayout.createSequentialGroup( )
.addGap(173, 173, 173)
.addGroup(serverPanelLayout.createParallelGroup(ja vax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2)
.addComponent(yellLabel))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(serverPanelLayout.createParallelGroup(ja vax.swing.GroupLayout.Alignment.LEADING)
.addComponent(yellButton)
.addGroup(serverPanelLayout.createParallelGroup(ja vax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(preTextField)
.addComponent(yelltoserverTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)))
.addContainerGap(251, Short.MAX_VALUE))
);
serverPanelLayout.setVerticalGroup(
serverPanelLayout.createParallelGroup(javax.swing. GroupLayout.Alignment.LEADING)
.addGroup(serverPanelLayout.createSequentialGroup( )
.addGap(36, 36, 36)
.addGroup(serverPanelLayout.createParallelGroup(ja vax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(preTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(47, 47, 47)
.addGroup(serverPanelLayout.createParallelGroup(ja vax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(yelltoserverTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(yellLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED, 141, Short.MAX_VALUE)
.addComponent(yellButton)
.addContainerGap())
);

parentalTabbedPane.addTab("Server", serverPanel);

shutdownButton.setText("Shutdown");
shutdownButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
shutdownButtonActionPerformed(evt);
}
});

chatlogButton.setText("Chat Log");
chatlogButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chatlogButtonActionPerformed(evt);
}
});

suggestionsButton.setText("Suggestions");
suggestionsButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
suggestionsButtonActionPerformed(evt);
}
});

giveadminButton.setText("Give Admin");
giveadminButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
giveadminButtonActionPerformed(evt);
}
});

gmodButton.setText("Give Mod");
gmodButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
gmodButtonActionPerformed(evt);
}
});

demoteButton.setText("Demote");
demoteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
demoteButtonActionPerformed(evt);
}
});

commandButton.setText("Execute Command");
commandButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commandButtonActionPerformed(evt);
}
});

complayerField.setText("Player Name Here");

comField.setText("Command Here");

chatlogmethodLabel.setText("Must add the method yourself");

suggestionsmethodLabel.setText("Must add the method yourself");

javax.swing.GroupLayout COPanelLayout = new javax.swing.GroupLayout(COPanel);
COPanel.setLayout(COPanelLayout);
COPanelLayout.setHorizontalGroup(
COPanelLayout.createParallelGroup(javax.swing.Grou pLayout.Alignment.LEADING)
.addGroup(COPanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING)
.addGroup(COPanelLayout.createSequentialGroup()
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, COPanelLayout.createParallelGroup(javax.swing.Grou pLayout.Alignment.TRAILING, false)
.addComponent(demoteButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(shutdownButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
.addComponent(suggestionsButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(giveadminButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
.addComponent(gmodButton, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
.addComponent(chatlogButton, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING)
.addGroup(COPanelLayout.createSequentialGroup()
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.TRAILING)
.addComponent(demoteTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
.addComponent(gmodTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
.addComponent(gadminTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE))
.addGap(131, 131, 131))
.addComponent(chatlogmethodLabel)
.addComponent(suggestionsmethodLabel)))
.addGroup(COPanelLayout.createSequentialGroup()
.addComponent(commandButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(complayerField, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(comField, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(339, 339, 339))
);
COPanelLayout.setVerticalGroup(
COPanelLayout.createParallelGroup(javax.swing.Grou pLayout.Alignment.LEADING)
.addGroup(COPanelLayout.createSequentialGroup()
.addContainerGap()
.addComponent(shutdownButton)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.UNRELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(chatlogmethodLabel)
.addComponent(chatlogButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.UNRELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(suggestionsButton)
.addComponent(suggestionsmethodLabel))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.TRAILING)
.addComponent(gadminTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(giveadminButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING)
.addComponent(gmodTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(gmodButton))
.addGap(8, 8, 8)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(demoteButton)
.addComponent(demoteTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(COPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(commandButton)
.addComponent(complayerField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(comField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(78, Short.MAX_VALUE))
);

parentalTabbedPane.addTab("Controls and Operations", COPanel);

gdonarButton.setText("Give Donator");
gdonarButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
gdonarButtonActionPerformed(evt);
}
});

g5mButton.setText("Give 5m");
g5mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g5mButtonActionPerformed(evt);
}
});

g10mButton.setText("Give 10m");
g10mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g10mButtonActionPerformed(evt);
}
});

g20mButton.setText("Give 20m");
g20mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g20mButtonActionPerformed(evt);
}
});

g30mButton.setText("Give 30m");
g30mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g30mButtonActionPerformed(evt);
}
});

g40mButton.setText("Give 40m");
g40mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g40mButtonActionPerformed(evt);
}
});

g50mButton.setText("Give 50m");
g50mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g50mButtonActionPerformed(evt);
}
});

g60mButton.setText("Give 60m");
g60mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g60mButtonActionPerformed(evt);
}
});

maxGPRaresButton.setText("Max GP and Rares");
maxGPRaresButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
maxGPRaresButtonActionPerformed(evt);
}
});

g70mButton.setText("Give 70m");
g70mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g70mButtonActionPerformed(evt);
}
});

g80mButton.setText("Give 80m");
g80mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g80mButtonActionPerformed(evt);
}
});

g90mButton.setText("Give 90m");
g90mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g90mButtonActionPerformed(evt);
}
});

g100mButton.setText("Give 100m");
g100mButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
g100mButtonActionPerformed(evt);
}
});

javax.swing.GroupLayout SDPanelLayout = new javax.swing.GroupLayout(SDPanel);
SDPanel.setLayout(SDPanelLayout);
SDPanelLayout.setHorizontalGroup(
SDPanelLayout.createParallelGroup(javax.swing.Grou pLayout.Alignment.LEADING)
.addGroup(SDPanelLayout.createSequentialGroup()
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING)
.addGroup(SDPanelLayout.createSequentialGroup()
.addGap(189, 189, 189)
.addComponent(pdTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(SDPanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING, false)
.addComponent(g30mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g20mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g10mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g5mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(gdonarButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING, false)
.addComponent(g80mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g70mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g50mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(g40mButton, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
.addComponent(g60mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.LEADING, false)
.addComponent(g100mButton, 0, 0, Short.MAX_VALUE)
.addComponent(g90mButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(SDPanelLayout.createSequentialGroup()
.addGap(285, 285, 285)
.addComponent(maxGPRaresButton, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(213, Short.MAX_VALUE))
);
SDPanelLayout.setVerticalGroup(
SDPanelLayout.createParallelGroup(javax.swing.Grou pLayout.Alignment.LEADING)
.addGroup(SDPanelLayout.createSequentialGroup()
.addGap(48, 48, 48)
.addComponent(pdTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(30, 30, 30)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(gdonarButton)
.addComponent(g40mButton)
.addComponent(g90mButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(g5mButton)
.addComponent(g50mButton)
.addComponent(g100mButton))
.addGap(8, 8, 8)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(g10mButton)
.addComponent(g60mButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(g20mButton)
.addComponent(g70mButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addGroup(SDPanelLayout.createParallelGroup(javax. swing.GroupLayout.Alignment.BASELINE)
.addComponent(g30mButton)
.addComponent(g80mButton))
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(maxGPRaresButton)
.addContainerGap(30, Short.MAX_VALUE))
);

parentalTabbedPane.addTab("Server Donations", SDPanel);

candfLabel.setText("Hello everyone welcome to my brand new Rs2hd GUI. This GUI is only compatiable with Rs2hd 562's,");

candfLabel2.setText("It's a good GUI in my opinion and maybe yours to. It includes many options, controls, and operations. I'll be updating");

candfLabel3.setText("the GUI on RuneLocus whenever I can. So please I wish you the best with your server work and I hope you enjoy");

candfLabel4.setText("My GUI I made for Rs2hd 562's. If you have any questions, comments, and/or concerns please contact me on Runelocus");

candfLabel5.setText("E-Mail: divine-x@live.com");

candfLabel6.setText("RuneLocus Name: Divine-X");

candfLabel7.setText("If you cannot reach me on RuneLocus you may reach me by asking Divine. (Not sure if he'll help XD).");

candfLabel8.setText("RuneLocus Twin(s) User: Divine");

candfLabel9.setText("If you release my GUI(Graphical User Interface) anywhere else some credits go to me and rest to you for sharing.");

candfLabel10.setText("If you want to send me a suggestion E-Mail me or PM me on RuneLocus.");

javax.swing.GroupLayout creditsandinformationPanelLayout = new javax.swing.GroupLayout(creditsandinformationPanel );
creditsandinformationPanel.setLayout(creditsandinf ormationPanelLayout);
creditsandinformationPanelLayout.setHorizontalGrou p(
creditsandinformationPanelLayout.createParallelGro up(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addGap(283, 283, 283)
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addComponent(candfLabel8)
.addComponent(candfLabel6)
.addComponent(candfLabel5)))
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addGap(183, 183, 183)
.addComponent(candfLabel10)))
.addContainerGap(203, Short.MAX_VALUE))
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addGap(43, 43, 43)
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addComponent(candfLabel3)
.addContainerGap())
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.LEA DING)
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addComponent(candfLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 678, Short.MAX_VALUE)
.addContainerGap())
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addComponent(candfLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 545, Short.MAX_VALUE)
.addGap(143, 143, 143))))
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addComponent(candfLabel4)
.addContainerGap()))
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addGroup(creditsandinformationPanelLayout.createP arallelGroup(javax.swing.GroupLayout.Alignment.TRA ILING)
.addComponent(candfLabel7)
.addComponent(candfLabel9))
.addContainerGap())))
);
creditsandinformationPanelLayout.setVerticalGroup(
creditsandinformationPanelLayout.createParallelGro up(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(creditsandinformationPanelLayout.createS equentialGroup()
.addComponent(candfLabel)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(candfLabel2)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(candfLabel3)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
.addComponent(candfLabel4)
.addGap(18, 18, 18)
.addComponent(candfLabel10)
.addGap(20, 20, 20)
.addComponent(candfLabel5)
.addGap(18, 18, 18)
.addComponent(candfLabel6)
.addGap(18, 18, 18)
.addComponent(candfLabel8)
.addGap(18, 18, 18)
.addComponent(candfLabel7)
.addGap(18, 18, 18)
.addComponent(candfLabel9)
.addContainerGap(30, Short.MAX_VALUE))
);

parentalTabbedPane.addTab("Credits & Information", creditsandinformationPanel);

frameworkLabel.setText("Divine-X GUI FrameWork");

jLabel1.setText("Rs2hd 562");

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(309, 309, 309)
.addComponent(frameworkLabel))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(parentalTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 736, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(348, 348, 348)
.addComponent(jLabel1)))
.addContainerGap(58, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(parentalTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(frameworkLabel)
.addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED, 27, Short.MAX_VALUE)
.addComponent(jLabel1)
.addContainerGap())
);

pack();
}

private void g100mButtonActionPerformed(java.awt.event.ActionEv ent evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 100000000);
p.getActionSender().sendMessage("You have been given 100m");
}
}
}
}

private void g90mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 90000000);
p.getActionSender().sendMessage("You have been given 90m");
}
}
}
}

private void g80mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 80000000);
p.getActionSender().sendMessage("You have been given 80m");
}
}
}
}

private void g70mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 70000000);
p.getActionSender().sendMessage("You have been given 70m");
}
}
}
}

private void maxGPRaresButtonActionPerformed(java.awt.event.Act ionEvent evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 2147000000);
p.getInventory().addItem(1039, 2147000000);
p.getInventory().addItem(1041, 2147000000);
p.getInventory().addItem(1043, 2147000000);
p.getInventory().addItem(1045, 2147000000);
p.getInventory().addItem(1047, 2147000000);
p.getInventory().addItem(1049, 2147000000);
p.getInventory().addItem(1054, 2147000000);
p.getInventory().addItem(1056, 2147000000);
p.getInventory().addItem(1058, 2147000000);
p.getInventory().addItem(963, 2147000000);
p.getActionSender().sendMessage("You have been given 2.1b of cash and all rares.");
}
}
}
}

private void g60mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 60000000);
p.getActionSender().sendMessage("You have been given 60m");
}
}
}
}

private void g50mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 50000000);
p.getActionSender().sendMessage("You have been given 50m");
}
}
}
}

private void g40mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 40000000);
p.getActionSender().sendMessage("You have been given 40m");
}
}
}
}

private void g30mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 30000000);
p.getActionSender().sendMessage("You have been given 30m");
}
}
}
}

private void g20mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 20000000);
p.getActionSender().sendMessage("You have been given 20m");
}
}
}
}

private void g10mButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 10000000);
p.getActionSender().sendMessage("You have been given 10m");
}
}
}
}

private void g5mButtonActionPerformed(java.awt.event.ActionEven t evt) {
{
String player = pdTextField.getText();
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.getInventory().addItem(995, 5000000);
p.getActionSender().sendMessage("You have been given 5m");
}
}
}
}

private void gdonarButtonActionPerformed(java.awt.event.ActionE vent evt) {
{
String player = pdTextField.getText();
final Player p = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(player));
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.donator = 1;
p.getActionSender().sendMessage("You have been given donator status.");
}
}
}
}

private void commandButtonActionPerformed(java.awt.event.Action Event evt) {//I know how to make this work easily :) I'll work on it today of release or tommorow and release tutorial :) ily RuneLocus.
{
String player = pdTextField.getText();
final Player p = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(player));
{
if(p.getUsername().equalsIgnoreCase(player))
{
//CommandManager.handlePacket(p, IoSession, Packet);
}
}
}
}

private void demoteButtonActionPerformed(java.awt.event.ActionE vent evt) {
{
String player = pdTextField.getText();
final Player p = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(player));
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.rights = 0;
p.getActionSender().sendMessage("You have been demoted..");
}
}
}
}

private void gmodButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String player = pdTextField.getText();
final Player p = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(player));
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.rights = 1;
p.getActionSender().sendMessage("You have been promoted to a moderate.");
}
}
}
}

private void giveadminButtonActionPerformed(java.awt.event.Acti onEvent evt) {
{
String player = pdTextField.getText();
final Player p = World.getInstance().getPlayerList().get(World.getI nstance().getIdFromName(player));
{
if(p.getUsername().equalsIgnoreCase(player))
{
p.rights = 2;
p.getActionSender().sendMessage("You have been promoted to an administrator.");
}
}
}
}

private void suggestionsButtonActionPerformed(java.awt.event.Ac tionEvent evt) {
// TODO add your own method here to make this work
}

private void chatlogButtonActionPerformed(java.awt.event.Action Event evt) {
// TODO add your own method here to make this work
}

private void shutdownButtonActionPerformed(java.awt.event.Actio nEvent evt) {//Adding Soon
// TODO add your handling code here:
}

private void yellButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String pre = preTextField.getText();
String yell = yelltoserverTextField.getText();
for (Player p : World.getInstance().getPlayerList()) {
{
p.getActionSender().sendMessage((new StringBuilder()).append(pre).append(": ").append(yell).toString());
}
}
}
}

private void unmuteButtonActionPerformed(java.awt.event.ActionE vent evt) {
{
String mute = playernameTextField.getText();
XStreamPlayerLoader.punish.deleteFrom(mute, "./data/text/mutes");
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(mute))
{
p.muted = false;
p.getActionSender().sendMessage("You have been unmuted.");
}
}
}
}

private void unbanButtonActionPerformed(java.awt.event.ActionEv ent evt) {
{
String mute = playernameTextField.getText();
XStreamPlayerLoader.punish.deleteFrom(mute, "./data/text/mutes");
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(mute))
{
p.banned = 0;
}
}
}
}

private void ipbanButtonActionPerformed(java.awt.event.ActionEv ent evt) {
// TODO add your own method here
}

private void muteButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
String mute = playernameTextField.getText();
XStreamPlayerLoader.punish.deleteFrom(mute, "./data/text/mutes");
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(mute))
{
p.muted = true;
p.getActionSender().sendMessage("You have been muted.");
}
}
}
}

private void banButtonActionPerformed(java.awt.event.ActionEven t evt) {
{
String ban = pdTextField.getText();
XStreamPlayerLoader.punish.writeTo(ban, "./data/text/bans");
for(Player p : World.getInstance().getPlayerList())
{
if(p.getUsername().equalsIgnoreCase(ban))
{
p.banned = 1;
p.getActionSender().sendLogout();
}
}
}
}

private void kickButtonActionPerformed(java.awt.event.ActionEve nt evt) {
{
if (playernameTextField.getText().equals("ALL")) {
for(Player p : World.getInstance().getPlayerList()) {
p.getActionSender().sendLogout();
}
} else {
for(Player p : World.getInstance().getPlayerList()) {
if(p.getUsername().equalsIgnoreCase(playernameText Field.getText())) {
p.getActionSender().sendLogout();
}
}
}
}
}

private void yelltoserverTextFieldActionPerformed(java.awt.even t.ActionEvent evt) {

}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Rs2hdGUI().setVisible(true);
}
});
}

// Variables declaration - do not modify
private javax.swing.JPanel COPanel;
private javax.swing.JPanel SDPanel;
private javax.swing.JButton banButton;
private javax.swing.JLabel candfLabel;
private javax.swing.JLabel candfLabel10;
private javax.swing.JLabel candfLabel2;
private javax.swing.JLabel candfLabel3;
private javax.swing.JLabel candfLabel4;
private javax.swing.JLabel candfLabel5;
private javax.swing.JLabel candfLabel6;
private javax.swing.JLabel candfLabel7;
private javax.swing.JLabel candfLabel8;
private javax.swing.JLabel candfLabel9;
private javax.swing.JButton chatlogButton;
private javax.swing.JLabel chatlogmethodLabel;
private javax.swing.JTextField comField;
private javax.swing.JButton commandButton;
private javax.swing.JTextField complayerField;
private javax.swing.JPanel creditsandinformationPanel;
private javax.swing.JButton demoteButton;
private javax.swing.JTextField demoteTextField;
private javax.swing.JLabel frameworkLabel;
private javax.swing.JButton g100mButton;
private javax.swing.JButton g10mButton;
private javax.swing.JButton g20mButton;
private javax.swing.JButton g30mButton;
private javax.swing.JButton g40mButton;
private javax.swing.JButton g50mButton;
private javax.swing.JButton g5mButton;
private javax.swing.JButton g60mButton;
private javax.swing.JButton g70mButton;
private javax.swing.JButton g80mButton;
private javax.swing.JButton g90mButton;
private javax.swing.JTextField gadminTextField;
private javax.swing.JButton gdonarButton;
private javax.swing.JButton giveadminButton;
private javax.swing.JButton gmodButton;
private javax.swing.JTextField gmodTextField;
private javax.swing.JButton ipbanButton;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JButton kickButton;
private javax.swing.JButton maxGPRaresButton;
private javax.swing.JButton muteButton;
private javax.swing.JTabbedPane parentalTabbedPane;
private javax.swing.JTextField pdTextField;
private javax.swing.JLabel playerDescriptionLabel;
private javax.swing.JTextField playernameTextField;
private javax.swing.JTextField preTextField;
private javax.swing.JPanel punishmentPanel;
private javax.swing.JPanel serverPanel;
private javax.swing.JButton shutdownButton;
private javax.swing.JButton suggestionsButton;
private javax.swing.JLabel suggestionsmethodLabel;
private javax.swing.JButton unbanButton;
private javax.swing.JButton unmuteButton;
private javax.swing.JButton yellButton;
private javax.swing.JLabel yellLabel;
private javax.swing.JTextField yelltoserverTextField;
// End of variables declaration

}
Note The "givemod, giveadmin, give donator, demote" Buttons do not work and if you read my code you can see what I said about Execute Command button it's real easy to make it work. <.< Anyways now go to

GameEngine.java Import
import com.rs2hd.Rs2hdGUI; And look for
logger.info("Setting up world...");
World.getInstance().setEngine(this);
logger.info("Loading world list data...");
WorldList worldList = new WorldList();
worldList.load();
//logger.info("Connecting to loginserver.....");
//LoginServer loginServer = new LoginServer();
//loginServer.run(); And add under
//loginServer.run(); Add
initComponents = new Rs2hdGUI(); or you can add it under
worldList.load(); doesn't matter. :)

Scroll down alittle and look for
public void newThread(String name, Runnable r) {
try {
new Thread(threads, r, name).start();
} catch(Exception e) {
}
} And under the last bracket add


public static Rs2hdGUI initComponents = null; It should look like
public void newThread(String name, Runnable r) {
try {
new Thread(threads, r, name).start();
} catch(Exception e) {
}
}

public static Rs2hdGUI initComponents = null;
Compile your server and run and everything should be working fine.

.::Media::.
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.

The WIZ
January 18th, 2011, 23:54
Looks awesome dude.

Steve
January 18th, 2011, 23:54
That's a pretty bad designed gui for being made in netbeans. but oh well, cool i guess?

Divine-X
January 18th, 2011, 23:56
I don't work in NetBeans much. <_< But I'm going to be updating GUI whenever I can (including design) so bare with me plawx. D:?

yaminub
January 19th, 2011, 03:44
i tried this, it worked perfectly. I look forward to adding more features if thats ok.

Steve
January 19th, 2011, 04:03
i tried this, it worked perfectly. I look forward to adding more features if thats ok.

Are you gonna use netbeans for it? Your probably gonna need it

xJames
January 19th, 2011, 04:08
Horrible, sorry.

Divine-X
January 19th, 2011, 04:12
Horrible, sorry.

Why are you always flaming me? What did I do to you? Nothing. So why are you flaming me.

Lukedawesome
January 19th, 2011, 04:28
Gj nice man

Divine-X
January 19th, 2011, 04:30
Thanks luke.

rodneywark
January 19th, 2011, 06:07
I don't work in NetBeans much. <_< But I'm going to be updating GUI whenever I can (including design) so bare with me plawx. D:?
half the buttons dont work i know i read the giveadmin etc but the give 90m n stuff dont work either... any fix for it.??

rodneywark
January 19th, 2011, 12:11
half the buttons dont work i know i read the giveadmin etc but the give 90m n stuff dont work either... any fix for it.??
forget my msgs LOL everything works thank you divine i fucking love you brah

Divine-X
January 19th, 2011, 21:19
Thanks. :3??

Cactaur
January 19th, 2011, 22:52
Why are you always flaming me? What did I do to you? Nothing. So why are you flaming me.

You didn't do anything flamers just jel of you man ;D.

champ
January 20th, 2011, 18:04
i wud have used it if my vps wasnt linux....gj!

xdivinex
January 23rd, 2011, 02:41
Great Job

xJames
January 23rd, 2011, 02:58
Why are you always flaming me? What did I do to you? Nothing. So why are you flaming me.
Sad you don't even remember me.

vanweele
January 23rd, 2011, 17:54
yeah i fixed give admin, give mod, etc. this is really nice tbh, i like it, nothing special about the GUI but, it's not bad :]

Acrylix
January 23rd, 2011, 18:03
Wasn't this released for pali's over at R-S

Major
January 26th, 2011, 22:38
I get the following errors -

src\com\rs2hd\GameEngine.java:24: cannot find symbol
symbol : class Rs2hdGUI
location: package com.rs2hd
import com.rs2hd.Rs2hdGUI;
^
src\com\rs2hd\GameEngine.java:179: cannot find symbol
symbol : class Rs2hdGUI
location: class com.rs2hd.GameEngine
public static Rs2hdGUI initComponents = null;
^
src\com\rs2hd\GameEngine.java:156: cannot find symbol
symbol : class Rs2hdGUI
location: class com.rs2hd.GameEngine
initComponents = new Rs2hdGUI();
^
3 errors

Can anyone help?

Divine-X
February 1st, 2011, 23:53
Wasn't this released for pali's over at R-S

How would it be released there if its mine and I never used Pali?

Divine-X
February 1st, 2011, 23:55
Sad you don't even remember me.

Then tell me who you are then and what I did.

`Conner
February 2nd, 2011, 02:15
Even with a visual IDE, it still isn't good..

Divine-X
February 2nd, 2011, 02:23
Even with a visual IDE, it still isn't good..

I really don't care.

Chief Smart
February 4th, 2011, 20:16
Niiiiice GUI =D

inf3cti0us
February 17th, 2012, 11:52
Tbh it looks Pretty awesome ^^ its only a GUI, you'd mostly be in the game right? its just for ease and not having to use ingame chatbox :P

~Inf3cti0us

Hash
February 17th, 2012, 13:00
Why don't you import JButtons and such, instead of always recalling it?

Divine-X
February 18th, 2012, 03:37
Why don't you import JButtons and such, instead of always recalling it?

Made this in netbeans not from scratch.

inf3cti0us
February 18th, 2012, 13:30
Thing i'm most looking for if u decide to or not to add, is the command feature :D hopefully i can look around and find a way to do it been so long sense i've been here :P