/* 	V_Rack.java	Title:			Virtual Control Surface	Author:			root	Description:	Copyright © 2001 Jason LamportAll Rights ReservedThe "virtual rack" object. (I.e. a document.)*/package com.strangelight.v4control;import com.strangelight.*;import com.strangelight.salsa.*;import java.awt.*;import java.awt.event.*;import java.net.*;public class V_Rack 	extends J_Frame 	implements J_Cancellable{	public V_Rack( String title ) {		super( title );		setBackground( Color.black );		setLayout(null);		setSize( new Dimension(350, 460) );		setLocation( new Point(10, 10) );		setVisible( true );				input_settings = new J_InputSettings(this, "Input Settings for " + title);		if ( input_settings.was_cancelled() ) {			this.hide();			this.cancelled = true;			--untitled_num;			J_Main.remove_me(this);		} else {			v4c_list.addElement( new V_4Control(this) );		}	}		public V_Rack() {		this( get_untitle() );	}		public boolean was_cancelled() {		return cancelled;	}		protected static int untitled_num = 0;	protected static String get_untitle() {		++untitled_num;		if ( untitled_num > 1 ) {			return ("Untitled Rack " + untitled_num);		} else {			return "Untitled Rack";		}	}		protected J_InputSettings input_settings;	protected boolean cancelled = false;	protected java.util.Vector v4c_list = new java.util.Vector();}