/*****************************************************************\
* Copyright (C) 1997 Vasile CALMATUI (vasile@club-internet.fr) *
* *
* Permission is granted to use, copy, modify and distriubte this *
* software for personal and educational use. However, if you find *
* this software useful and would like to see further development, *
* you are encouraged to send a small donation, a book, a CD or *
* even a postcard to the author. Commercial users must purchase a *
* USD 25 (FF 150) licence. *
*******************************************************************
* Feel free to contact me for help, informations, bugs, comments, *
* contributions, job offers. The author is not liable for damages *
* resulting from the use of this software or its derivates. *
*******************************************************************
* Vasile CALMATUI *
* appt. A338, Resid. Jean Zay *
* 92160 ANTONY (FRANCE) *
* e-mail: vasile@club-internet.fr *
* web : http://www.chez.com/vasile/ *
\*****************************************************************/
//Sample Applet of VasTabs
import VasTabs;
import java.applet.Applet;
import java.awt.*;
public class VasTabsApplet extends Applet {
VasTabs tabs;
Panel mPan0,mPan1,mPan2,mPan3,mPan4,mPan5;
//constructor
public VasTabsApplet() {
this.setLayout(null);
this.resize(400,400);
setBackground(Color.lightGray);
//where is the left upper corner of tabs=(25,25)
//the dimension of tabs=(350,350)
tabs = new VasTabs(25,25,350,350);
mPan0=new Panel();
mPan1=new Panel();
mPan2=new Panel();
mPan3=new Panel();
mPan4=new Panel();
mPan5=new Panel();
tabs.addTab("VasTab 0", mPan0);
tabs.addTab("First1", mPan1);
tabs.addTab("Tab2", mPan2);
tabs.addTab("The Third", mPan3);
tabs.addTab("4", mPan4);
tabs.addTab("the 5th avenue", mPan5);
add(tabs);
}//end constructor
}//end class VasTabsApplet
© 1997, made with VasJava2HTML