Optimization for jar compiling
Some things won't work without compiling anymore (like creating a profiles file). Downloading jars is finished.
This commit is contained in:
@ -540,7 +540,7 @@ public class GUI implements ActionListener {
|
||||
String serverName = JOptionPane.showInputDialog("Name of server: ");
|
||||
Profile.getCurrent().addCollection(serverName);
|
||||
this.update();
|
||||
ServerConsoles.update();
|
||||
Profile.getCurrent().updateConsoles();
|
||||
} else if (e.getSource() == backup) {
|
||||
backup();
|
||||
} else if (e.getSource() == addProfile) {
|
||||
@ -591,12 +591,12 @@ public class GUI implements ActionListener {
|
||||
*/
|
||||
private void changeProfile() {
|
||||
Profile.getCurrent().save();
|
||||
Object current = profiles.getSelectedItem();
|
||||
Object current = this.profiles.getSelectedItem();
|
||||
if (current != null) {
|
||||
Profile.setCurrent(current.toString());
|
||||
}
|
||||
update();
|
||||
ServerConsoles.update();
|
||||
this.update();
|
||||
Profile.getCurrent().updateConsoles();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -614,6 +614,7 @@ public class GUI implements ActionListener {
|
||||
"Error",
|
||||
JOptionPane.ERROR_MESSAGE
|
||||
);
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,10 +36,8 @@ public class ServerConsoles {
|
||||
public static void show() {
|
||||
frame.setVisible(true);
|
||||
}
|
||||
public static void update() {
|
||||
consolesTab.removeAll();
|
||||
for (Collection collection : Profile.getCurrent().getCollections()) {
|
||||
consolesTab.add(collection.getName(), collection.getServerConsole().getPanel());
|
||||
}
|
||||
|
||||
public static JTabbedPane getTab() {
|
||||
return consolesTab;
|
||||
}
|
||||
}
|
@ -172,7 +172,7 @@ public class ServerTab implements ActionListener {
|
||||
private void remove() {
|
||||
Profile.getCurrent().removeCollection(name);
|
||||
Main.gui().update();
|
||||
ServerConsoles.update();
|
||||
Profile.getCurrent().updateConsoles();
|
||||
}
|
||||
|
||||
private void browse() {
|
||||
|
Reference in New Issue
Block a user