serverinternalframe.java

来自「Java mulitplayer strategy game. Adaptati」· Java 代码 · 共 65 行

JAVA
65
字号
/*
 * ServerInternalFrame.java
 *
 * Created on 9 pa焏ziernik 2005, 14:45
 */

package net.sf.jawp.game.server.gui;

/**
 *
 * @author  jarek
 */
public class ServerInternalFrame extends javax.swing.JInternalFrame
{
	private static final long serialVersionUID = 1L;
	
	private final ServerDataManager dataManager;
	
	private final ServerPanel serverStatusPanel;
	/** Creates new form ServerInternalFrame */
	public ServerInternalFrame(final ServerDataManager dm)
	{
		this.dataManager = dm;
		this.serverStatusPanel = new ServerPanel(dm);
		initComponents();
		updateState();
	}

	
	
	/** 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.
	 */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents()
    {
        serverStatusPanelField = this.serverStatusPanel;

        getContentPane().setLayout(new java.awt.FlowLayout());

        setTitle("Server status");
        getContentPane().add(serverStatusPanelField);

        pack();
    }
    // </editor-fold>//GEN-END:initComponents
	
	
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel serverStatusPanelField;
    // End of variables declaration//GEN-END:variables
	
	public final void updateState()
	{
		this.serverStatusPanel.updateState();
	}
	
	private ServerDataManager getDataManager()
	{
		return dataManager;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?