Adds more javadoc
This commit is contained in:
@ -3,6 +3,14 @@ package net.knarcraft.serverlauncher.userinterface;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* Acts as a single writable/readable tab
|
||||
* Has a box for user input, and a textArea for server output.
|
||||
*
|
||||
* @author Kristian Knarvik <kristian.knarvik@knett.no>
|
||||
* @version 0.0.0.1
|
||||
* @since 0.0.0.1
|
||||
*/
|
||||
class Console {
|
||||
private JTextField textInput;
|
||||
private JTextArea textOutput;
|
||||
|
@ -3,10 +3,20 @@ package net.knarcraft.serverlauncher.userinterface;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JTabbedPane;
|
||||
import java.awt.BorderLayout;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* A parent window for server consoles
|
||||
* Should be toggled with the "View server consoles" button
|
||||
* Keeps track of all consoles
|
||||
*
|
||||
* @author Kristian Knarvik <kristian.knarvik@knett.no>
|
||||
* @version 0.0.0.1
|
||||
* @since 0.0.0.1
|
||||
*/
|
||||
public class ServerConsoles {
|
||||
|
||||
private static ServerConsoles serverConsoles;
|
||||
private static ArrayList<Console> consoles = new ArrayList<>();
|
||||
private JFrame frame;
|
||||
private JTabbedPane consolesTab;
|
||||
|
||||
|
@ -7,13 +7,18 @@ import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
/**
|
||||
* Contains all buttons for configuring a server
|
||||
* Does some visual stuff by itself, but otherwise reads boxes and stuff
|
||||
*
|
||||
* @author Kristian Knarvik <kristian.knarvik@knett.no>
|
||||
* @version 0.0.0.1
|
||||
* @since 0.0.0.1
|
||||
*/
|
||||
public class ServerTab implements ActionListener {
|
||||
private final JComboBox<String> serverTypes;
|
||||
private final JComboBox<String> serverVersions;
|
||||
private final JComboBox<String> maxRam;
|
||||
private final JComboBox<String> serverTypes, serverVersions, maxRam;
|
||||
private final JCheckBox chckbxEnabled;
|
||||
private final JButton btnRemoveServer;
|
||||
private final JButton btnBrowse;
|
||||
private final JButton btnRemoveServer, btnBrowse;
|
||||
private final JTextField directory;
|
||||
|
||||
public ServerTab(String name) {
|
||||
|
Reference in New Issue
Block a user