/*
		A basic implementation of the JFrame class.
*/

package usda.weru.util;

import java.awt.*;

/**
 *
 * @author maxerdwien
 */
public class NotImplemented extends javax.swing.JFrame
{
    private static final long serialVersionUID = 1L;
    
	/**
	 *
	 */
	public NotImplemented()
	{
		// This code is automatically generated by Visual Cafe when you add
		// components to the visual environment. It instantiates and initializes
		// the components. To modify the code, only use code syntax that matches
		// what Visual Cafe can generate, or Visual Cafe may be unable to back
		// parse your Java file into its visual environment.
		//{{INIT_CONTROLS
		getContentPane().setLayout(null);
		setSize(405,305);
		setVisible(false);
		JLabel1.setText("Not Yet Implemented");
		getContentPane().add(JLabel1);
		JLabel1.setBounds(60,60,272,84);
		//}}

		//{{INIT_MENUS
		//}}
	}   

	/**
	 * 
	 * @param sTitle 
	 */
	public NotImplemented(String sTitle)
	{
		this();
		setTitle(sTitle);
	}

	/**
	 * 
	 * @param args 
	 */
	static public void main(String args[])
	{
		(new NotImplemented()).setVisible(true);
	}

	/**
	 *
	 */
	@Override
	public void addNotify()
	{
		// Record the size of the window prior to calling parents addNotify.
		Dimension size = getSize();

		super.addNotify();

		if (frameSizeAdjusted)
			return;
		frameSizeAdjusted = true;

		// Adjust size of frame according to the insets and menu bar
		Insets insets = getInsets();
		javax.swing.JMenuBar menuBar = getRootPane().getJMenuBar();
		int menuBarHeight = 0;
		if (menuBar != null)
			menuBarHeight = menuBar.getPreferredSize().height;
		setSize(insets.left + insets.right + size.width, insets.top + insets.bottom + size.height + menuBarHeight);
	}

	// Used by addNotify
	boolean frameSizeAdjusted = false;

	//{{DECLARE_CONTROLS
	javax.swing.JLabel JLabel1 = new javax.swing.JLabel();
	//}}

	//{{DECLARE_MENUS
	//}}

}