Code Search for Developers
 
 
  

EmptyPerspective.java from Magellan-Client at Krugle


Show EmptyPerspective.java syntax highlighted

/*
 *  Copyright (C) 2000-2004 Roger Butenuth, Andreas Gampe,
 *                          Stefan Goetz, Sebastian Pappert,
 *                          Klaas Prause, Enno Rehling,
 *                          Sebastian Tusk, Ulrich Kuester,
 *                          Ilja Pavkovic
 *
 * This file is part of the Eressea Java Code Base, see the
 * file LICENSING for the licensing information applying to
 * this file.
 *
 */

package com.eressea.swing.desktop;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

import com.eressea.swing.ui.InternalFrame;

/**
 * TODO: DOCUMENT ME!
 *
 * @author $author$
 * @version $Revision: 271 $
 */
public class EmptyPerspective implements Perspective {
	/*
	 * A Perspective holds informations about the desktop view
	 */
	public JPanel getJPanel() {
		int border = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT).getDividerSize();
		JPanel ret = new JPanel();
		ret.setBorder(BorderFactory.createEmptyBorder(border, border, border, border));

		ret.setLayout(new BorderLayout());
		ret.add(new JLabel("This is an empty perspective"), BorderLayout.NORTH);

		InternalFrame ifs = new InternalFrame("Empty perspective");
		ifs.setContent(ret);

		return ifs;
	}
}




See more files for this project here

Magellan-Client

The Magellan Client is basicly a GUI for the pbem game eressea but can be used for other pbems based on \"atlantis\" too.

Project homepage: http://sourceforge.net/projects/magellan-client
Programming language(s): Java
License: other

  EmptyPerspective.java
  Perspective.java
  View.java
  WorkSpace.java