net.chunkyhosting.Roe.computer.CHGManager.gui.panels.Server.java Source code

Java tutorial

Introduction

Here is the source code for net.chunkyhosting.Roe.computer.CHGManager.gui.panels.Server.java

Source

/*
 * CHGManager Computer Edition
 * Copyright (C) 2013 Chunky Hosting LLC
 * Made by: ImThatPedoBear
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.chunkyhosting.Roe.computer.CHGManager.gui.panels;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.json.JSONObject;

/**
 * @author ImThatPedoBear
 *
 */
public class Server extends JPanel {

    private static final long serialVersionUID = -8201806782982833633L;
    private int index;
    private JSONObject info;

    public Server() {

        setLayout(new BorderLayout(0, 0));
        JTabbedPane serverFunctions = new JTabbedPane(JTabbedPane.LEFT);

        serverFunctions.setBackground(Color.WHITE);
        this.setBackground(Color.WHITE);
        serverFunctions.addTab("Display", null, null, null);
        serverFunctions.addTab("File Manager", null, null, null);
        serverFunctions.addTab("Console", null, null, null);

        add(serverFunctions, BorderLayout.CENTER);

    }

    public int getIndex() {

        return this.index;

    }

    public void setIndex(int index) {

        this.index = index;

    }

}