Put links into the right class

This commit is contained in:
JKetelaar
2014-07-20 18:44:03 +02:00
parent 0ef2408b92
commit 8259a71d57
2 changed files with 10 additions and 18 deletions
@@ -14,6 +14,7 @@ public class Configuration {
public static final String GET_SERVER_PROVIDER = "http://sdn.parabot.org/providers/provider.php?id=";
public static final String GET_SERVER_PROVIDER_INFO = "http://sdn.parabot.org/providers/getInformation.php?id=";
public static final String GET_BOT_VERSION = "http://bot.parabot.org/version.txt";
public static final String REGISTRATION_PAGE = "http://www.parabot.org/community/index.php?app=core&module=global&section=register";
public static final double BOT_VERSION = 2.09;
+9 -18
View File
@@ -1,10 +1,13 @@
package org.parabot.core.ui;
import java.awt.BorderLayout;
import java.awt.Desktop;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import org.parabot.core.Configuration;
import org.parabot.core.Core;
import org.parabot.core.forum.AccountManager;
import org.parabot.core.ui.images.Images;
import org.parabot.core.ui.utils.SwingUtil;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
@@ -12,18 +15,6 @@ import java.awt.event.KeyEvent;
import java.io.IOException;
import java.net.URI;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import org.parabot.core.Core;
import org.parabot.core.forum.AccountManager;
import org.parabot.core.ui.images.Images;
import org.parabot.core.ui.utils.SwingUtil;
/**
*
* Users must login with their parabot account through this LoginUI class
@@ -143,7 +134,7 @@ public class LoginUI extends JFrame {
@Override
public void actionPerformed(ActionEvent arg0) {
URI uri = URI
.create("http://www.parabot.org/community/index.php?app=core&module=global&section=register");
.create(Configuration.REGISTRATION_PAGE);
try {
Desktop.getDesktop().browse(uri);
} catch (IOException e1) {