Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package maintenance;
- import java.awt.Color;
- import java.awt.Desktop;
- import java.io.IOException;
- import java.net.URI;
- import java.net.URISyntaxException;
- import javax.swing.JOptionPane;
- import javax.swing.SwingWorker;
- /**
- *
- * @author Tim
- */
- public final class Maintenance extends javax.swing.JFrame {
- /**
- * @access private
- * The thread
- */
- private SwingWorker<Integer, Integer> worker;
- /**
- * @access private
- * Whether S4 is online or not
- */
- private boolean s4 = false;
- /**
- * @access private
- * Whether LOCO is online or not
- */
- private boolean loco = false;
- /**
- * @access private
- * If a first check has been done or not.
- */
- private boolean firstCheck = false;
- /**
- * @access private
- * The amount of miliseconds, needed to check if a maintenance check is needed.
- */
- private int timer = 999999;
- /**
- * @access private
- * Initialize checker class
- */
- private Checker check = new Checker();
- /**
- * @access private
- * The delay between each check
- */
- private int globalcheckTime = 10;
- /**
- * @access private
- * Desktop variable, to open browser
- */
- private Desktop desktop;
- /**
- * @access private
- * URI variabe, needed for the browser
- */
- private URI uri = null;
- /** Creates new form download and launches it */
- public Maintenance() {
- initComponents(); //initialize components
- setVisible(true); //show GUI
- launch(); //launch the real application
- }
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
- title = new javax.swing.JLabel();
- jSeparator1 = new javax.swing.JSeparator();
- jLabel1 = new javax.swing.JLabel();
- jPanel1 = new javax.swing.JPanel();
- s4_status = new javax.swing.JLabel();
- s4chat = new javax.swing.JButton();
- jPanel2 = new javax.swing.JPanel();
- loco_status = new javax.swing.JLabel();
- locochat = new javax.swing.JButton();
- jPanel3 = new javax.swing.JPanel();
- top = new javax.swing.JCheckBox();
- checks4 = new javax.swing.JCheckBox();
- checkloco = new javax.swing.JCheckBox();
- checktime = new javax.swing.JSpinner();
- jLabel3 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- load = new javax.swing.JProgressBar();
- chat = new javax.swing.JButton();
- alachat = new javax.swing.JButton();
- alaflash = new javax.swing.JButton();
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- setTitle("GameSig Online Maintenance Checker");
- setBackground(new java.awt.Color(255, 255, 255));
- setForeground(new java.awt.Color(255, 255, 255));
- setName("frame"); // NOI18N
- setResizable(false);
- title.setFont(new java.awt.Font("Myriad Pro", 0, 36)); // NOI18N
- title.setIcon(new javax.swing.ImageIcon("C:\\Users\\Tim\\Documents\\GameSig\\images\\logo.png")); // NOI18N
- title.setText("GameSig");
- title.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
- title.setDoubleBuffered(true);
- title.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- titleMouseClicked(evt);
- }
- });
- jLabel1.setFont(new java.awt.Font("Kokila", 0, 18));
- jLabel1.setText("The Online Maintenance Checker");
- jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "S4 League", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 14), new java.awt.Color(0, 0, 0))); // NOI18N
- s4_status.setFont(new java.awt.Font("Tahoma", 0, 18));
- s4_status.setForeground(new java.awt.Color(255, 0, 0));
- s4_status.setText("S4 is offline!");
- s4chat.setText("S4 Chat");
- s4chat.setEnabled(false);
- s4chat.setMaximumSize(new java.awt.Dimension(87, 23));
- s4chat.setMinimumSize(new java.awt.Dimension(87, 23));
- s4chat.setPreferredSize(new java.awt.Dimension(87, 23));
- s4chat.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- s4chatActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(s4_status)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)
- .addComponent(s4chat, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(s4_status)
- .addComponent(s4chat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "LOCO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 14), new java.awt.Color(0, 0, 0))); // NOI18N
- loco_status.setFont(new java.awt.Font("Tahoma", 0, 18));
- loco_status.setForeground(new java.awt.Color(255, 0, 0));
- loco_status.setText("LOCO is offline!");
- locochat.setText("LOCO Chat");
- locochat.setEnabled(false);
- locochat.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- locochatActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(loco_status)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
- .addComponent(locochat)
- .addContainerGap())
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(loco_status)
- .addComponent(locochat))
- );
- jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Settings", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 14))); // NOI18N
- top.setText("Always on top");
- top.addChangeListener(new javax.swing.event.ChangeListener() {
- public void stateChanged(javax.swing.event.ChangeEvent evt) {
- topStateChanged(evt);
- }
- });
- checks4.setSelected(true);
- checks4.setText("Check S4 League");
- checkloco.setSelected(true);
- checkloco.setText("Check LOCO");
- checktime.setModel(new javax.swing.SpinnerNumberModel(30, 10, 60, 10));
- checktime.setToolTipText("");
- jLabel3.setText("Check every:");
- javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
- jPanel3.setLayout(jPanel3Layout);
- jPanel3Layout.setHorizontalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
- .addComponent(checktime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(top)
- .addComponent(checks4)
- .addComponent(checkloco))
- .addContainerGap())
- );
- jPanel3Layout.setVerticalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addComponent(top)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(checks4)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(checkloco)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(checktime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel3))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- jLabel2.setText("Next check in:");
- load.setToolTipText("");
- load.setString("0 seconds");
- load.setStringPainted(true);
- chat.setText("GameSig Chat");
- chat.setEnabled(false);
- chat.setMaximumSize(new java.awt.Dimension(125, 23));
- chat.setMinimumSize(new java.awt.Dimension(125, 23));
- chat.setPreferredSize(new java.awt.Dimension(125, 23));
- chat.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- chatActionPerformed(evt);
- }
- });
- alachat.setText("alaplaya Chat");
- alachat.setEnabled(false);
- alachat.setMinimumSize(new java.awt.Dimension(125, 23));
- alachat.setPreferredSize(new java.awt.Dimension(125, 23));
- alachat.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- alachatActionPerformed(evt);
- }
- });
- alaflash.setText("alaplaya flash Chat");
- alaflash.setEnabled(false);
- alaflash.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- alaflashActionPerformed(evt);
- }
- });
- 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.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGap(105, 105, 105)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(title)
- .addGroup(layout.createSequentialGroup()
- .addGap(20, 20, 20)
- .addComponent(jLabel1))))
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 438, Short.MAX_VALUE))
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(load, javax.swing.GroupLayout.DEFAULT_SIZE, 438, Short.MAX_VALUE)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jLabel2)
- .addGap(260, 260, 260))
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addComponent(chat, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(alachat, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(alaflash))))))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(title)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel1)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(10, 10, 10)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
- .addComponent(chat, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(alachat, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(alaflash, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel2))
- .addGroup(layout.createSequentialGroup()
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(load, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- );
- pack();
- }// </editor-fold>//GEN-END:initComponents
- /**
- * @return void
- * @param evt
- * This will be executed when the "stay on top" checkbox changes. It will place the application or it will disable it.
- */
- private void topStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_topStateChanged
- boolean state = top.isSelected(); //if selected, true, otherwise false.
- if (state) {
- setAlwaysOnTop(true); //if selected, always on top
- } else {
- setAlwaysOnTop(false); //if not selected, not always on top
- }
- }//GEN-LAST:event_topStateChanged
- /**
- * @return void
- * @param evt
- * This will be executed when the GameSig chat button is clicked. Will open a browser and the chat page.
- */
- private void chatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chatActionPerformed
- browse("http://webchat.euirc.net/?nick=GameSig..&channels=GameSig"); //open this page
- }//GEN-LAST:event_chatActionPerformed
- /**
- * @return void
- * @param evt
- * This will be executed when the s4 chat button is clicked. Will open a browser and the chat page.
- */
- private void s4chatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_s4chatActionPerformed
- browse("http://webchat.euirc.net/?nick=GameSig..&channels=s4league"); //open this page
- }//GEN-LAST:event_s4chatActionPerformed
- /**
- * @return void
- * @param evt
- * This will be executed when the loco chat button is clicked. Will open a browser and the chat page.
- */
- private void locochatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_locochatActionPerformed
- browse("http://webchat.euirc.net/?nick=loco..&channels=GameSig"); //open this page
- }//GEN-LAST:event_locochatActionPerformed
- /**
- * @return void
- * @param evt
- * This will be executed when the alaplaya chat button is clicked. Will open a browser and the chat page.
- */
- private void alachatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_alachatActionPerformed
- browse("http://webchat.euirc.net/?nick=GameSig..&channels=alaplaya"); //open this page
- }//GEN-LAST:event_alachatActionPerformed
- /**
- * @return void
- * @param evt
- * This will be executed when the alaplaya flash chat button is clicked. Will open a browser and the chat page.
- */
- private void alaflashActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_alaflashActionPerformed
- browse("http://alaplaya.net/chat"); //open this page
- }//GEN-LAST:event_alaflashActionPerformed
- private void titleMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_titleMouseClicked
- browse("http://www.gamesig.net"); //open this page
- }//GEN-LAST:event_titleMouseClicked
- /**
- * @param args the command line arguments
- * @return void
- * Will start the application
- */
- public static void main(String args[]) {
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- Maintenance maint = new Maintenance(); //start application
- }
- });
- }
- /**
- * @return void
- * First it will check if the browser can be opened. Then it will do a check for LOCO and S4. After that it will create a Thread to keep checking S4 and LOCO if neccesary
- */
- public void launch() {
- if (Desktop.isDesktopSupported()) { //check if Desktop is supported
- desktop = Desktop.getDesktop(); //create desktop
- if (desktop.isSupported(Desktop.Action.BROWSE)) { //check if browser is supported
- enableButtons();
- } else {
- changeTextButtons();
- }
- }
- worker = new SwingWorker<Integer, Integer>() { //create Thread
- /**
- * @return int nothing of any value
- * Will do a check and update the loadbar as long as LOCO and S4 are both offline
- */
- @Override
- protected Integer doInBackground() {
- while (!s4 && !loco) { //while both games are offline
- doCheck();
- updateBar();
- try {
- Thread.sleep(100);
- firstCheck = true;
- } catch (InterruptedException ex) {
- }
- }
- load.setString("All games are online!"); //change the text in the progressbar
- worker.cancel(true); //stop the Thread
- return 100;
- }
- /**
- * @return void
- * Changes the global time. Adds 1 to the timer. Calculates if needed to check, if so, do a check.
- */
- private void doCheck() {
- globalcheckTime = Integer.valueOf(checktime.getValue().toString()).intValue(); //get value from the spinner
- timer++;
- boolean[] array;
- if (timer >= globalcheckTime * 10) {
- timer = 0;
- array = check.checkGames(); //get array of the status of GameSig and the games
- if (!array[0]) { //GameSig is offline
- JOptionPane.showMessageDialog(rootPane, "Oops, it appears that GameSig is offline! Try again later!");
- } else {
- doS4(array[1]);
- doLoco(array[2]);
- }
- }
- }
- };
- worker.execute(); //run Thread
- }
- /**
- * @return void
- * Will update the progress bar
- */
- private void updateBar() {
- load.setString(globalcheckTime - timer / 10 + " seconds");
- load.setValue(timer * 10 / globalcheckTime);
- }
- /**
- *
- * @param result boolean if S4 is online or not.
- * @return void
- * Will give a warning is S4 was offline and turns online. Will set text to offline if S4 is offline.
- */
- private void doS4(boolean result) {
- if (!s4 && checks4.isSelected()) {
- if (result) {
- s4_status.setText("S4 is online!");
- s4_status.setForeground(Color.GREEN);
- s4 = true;
- if (firstCheck) {
- setAlwaysOnTop(true); //make sure popup gets th attention
- JOptionPane.showMessageDialog(rootPane, "S4 is back online!!!");
- if (!top.isSelected()) {
- setAlwaysOnTop(false); //disable it again
- }
- }
- }
- }
- }
- /**
- *
- * @param result boolean if LOCO is online or not.
- * @return void
- * Will give a warning is LOCO was offline and turns online. Will set text to offline if LOCO is offline.
- */
- private void doLoco(boolean result) {
- if (!loco && checkloco.isSelected()) {
- if (result) {
- loco_status.setText("LOCO is online!");
- loco_status.setForeground(Color.GREEN);
- loco = true;
- if (firstCheck) {
- setAlwaysOnTop(true); //make sure popup gets th attention
- JOptionPane.showMessageDialog(rootPane, "LOCO is back online!!!");
- if (!top.isSelected()) {
- setAlwaysOnTop(false); //disable it again
- }
- }
- }
- }
- }
- /**
- *
- * @param link the url of the page that needs to be opened
- * @return void
- * Will open the link in the browser
- */
- private void browse(String link) {
- try {
- uri = new URI(link); //create new URI
- desktop.browse(uri); //open browser and page
- } catch (IOException ioe) {
- } catch (URISyntaxException use) {
- }
- }
- /*
- * @return void
- * Will set the buttons to N/A in case a browser can't be opened.
- */
- private void changeTextButtons() {
- alachat.setText("N/A");
- alaflash.setText("N/A");
- chat.setText("N/A");
- s4chat.setText("N/A");
- locochat.setText("N/A");
- }
- /*
- * @return void
- * Will enable the butons in case a browser can be opened.
- */
- private void enableButtons() {
- alachat.setEnabled(true);
- alaflash.setEnabled(true);
- chat.setEnabled(true);
- s4chat.setEnabled(true);
- locochat.setEnabled(true);
- }
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton alachat;
- private javax.swing.JButton alaflash;
- private javax.swing.JButton chat;
- private javax.swing.JCheckBox checkloco;
- private javax.swing.JCheckBox checks4;
- private javax.swing.JSpinner checktime;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JSeparator jSeparator1;
- private javax.swing.JProgressBar load;
- private javax.swing.JLabel loco_status;
- private javax.swing.JButton locochat;
- private javax.swing.JLabel s4_status;
- private javax.swing.JButton s4chat;
- private javax.swing.JLabel title;
- private javax.swing.JCheckBox top;
- // End of variables declaration//GEN-END:variables
- }
Advertisement
Add Comment
Please, Sign In to add comment