Inline Attachment Follows

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 39

Inline Attachment Follows: Style.

css
BODY {
    FONT-WEIGHT: normal; FONT-SIZE: 0.8em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-FAMILY: Arial; LETTER-SPACING: normal; BACKGROUND-
COLOR: white
}
H1 {
    COLOR: #003366
}
H2 {
    COLOR: #003366
}
H3 {
    COLOR: #003366
}
H4 {
    COLOR: #003366
}
H5 {
    COLOR: #003366
}
TH {
    COLOR: #003366
}
THEAD {
    COLOR: #003366
}
TFOOT {
    COLOR: #003366
}
H1 {
    FONT-WEIGHT: 700; FONT-SIZE: 8pt; WORD-SPACING: normal; TEXT-TRANSFORM:
none; FONT-STYLE: normal; FONT-FAMILY: Arial; LETTER-SPACING: normal; TEXT-
DECORATION: none
}
H2 {
    FONT-WEIGHT: 700; FONT-SIZE: 1.75em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif; LETTER-SPACING: normal; TEXT-DECORATION: none
}
H3 {
    FONT-WEIGHT: 500; FONT-SIZE: 1.58em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica,
sans-serif; LETTER-SPACING: normal; TEXT-DECORATION: none
}
H4 {
    FONT-WEIGHT: 500; FONT-SIZE: 1.33em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-FAMILY: Arial; LETTER-SPACING: normal; TEXT-
DECORATION: none
}
H5 {
    FONT-WEIGHT: 700; FONT-SIZE: 1em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-STYLE: normal; FONT-FAMILY: Arial; LETTER-SPACING:
normal; TEXT-DECORATION: none
}
DT {
    FONT-WEIGHT: 700; FONT-SIZE: 1em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-STYLE: normal; FONT-FAMILY: Arial; LETTER-SPACING:
normal; TEXT-DECORATION: none
}
H6 {
    FONT-WEIGHT: 700; FONT-SIZE: 0.8em; WORD-SPACING: normal; TEXT-
TRANSFORM: none; FONT-STYLE: normal; FONT-FAMILY: Arial; LETTER-SPACING:
normal; TEXT-DECORATION: none
}
TFOOT {
    FONT-SIZE: 1em; WORD-SPACING: normal; TEXT-TRANSFORM: none; FONT-
FAMILY: Arial, Helvetica, sans-serif; LETTER-SPACING: normal
}
THEAD {
    FONT-SIZE: 1em; WORD-SPACING: normal; TEXT-TRANSFORM: none; FONT-
FAMILY: Arial, Helvetica, sans-serif; LETTER-SPACING: normal
}
TH {
    FONT-WEIGHT: bold; FONT-SIZE: 10pt; WORD-SPACING: normal; VERTICAL-ALIGN:
top; TEXT-TRANSFORM: none; FONT-FAMILY: Verdana; LETTER-SPACING: normal
}
TD {
    FONT-WEIGHT: 200; FONT-SIZE: 8pt; WORD-SPACING: normal; VERTICAL-ALIGN:
middle; TEXT-TRANSFORM: none; FONT-FAMILY: @Arial Unicode MS; LETTER-
SPACING: normal
}
LABEL {
    FONT-WEIGHT: 400; FONT-SIZE: 8pt; VERTICAL-ALIGN: baseline; FONT-FAMILY:
Arial
}
A:link {
    FONT-SIZE: 11px; COLOR: #3333cc; TEXT-DECORATION: none
}
A:visited {
    FONT-SIZE: 11px; COLOR: #333399; TEXT-DECORATION: none
}
A:active {
    COLOR: #333399; TEXT-DECORATION: none
}
A:hover {
    COLOR: red; TEXT-DECORATION: underline
}
SMALL {
    FONT-SIZE: 0.7em
}
BIG {
    FONT-SIZE: 1.1em
}
BLOCKQUOTE {
    FONT-FAMILY: Courier New, monospace
}
PRE {
    FONT-FAMILY: Courier New, monospace
}
UL LI {
    LIST-STYLE-TYPE: square
}
UL LI LI {
    LIST-STYLE-TYPE: disc
}
UL LI LI LI {
    LIST-STYLE-TYPE: circle
}
OL LI {
    LIST-STYLE-TYPE: decimal
}
OL OL LI {
    LIST-STYLE-TYPE: lower-alpha
}
OL OL OL LI {
    LIST-STYLE-TYPE: lower-roman
}
IMG {
    MARGIN-TOP: 5px; MARGIN-LEFT: 10px; MARGIN-RIGHT: 10px
}
.DataGridHeader {
    FONT-WEIGHT: bold; FONT-SIZE: 9pt; VERTICAL-ALIGN: top; COLOR: #3d3d3d;
FONT-FAMILY: MS Sans Serif; HEIGHT: 16px; BACKGROUND-COLOR: #fceac0
}
.DataGridItem {
    FONT-WEIGHT: normal; FONT-SIZE: 8pt; VERTICAL-ALIGN: top; COLOR: black;
FONT-FAMILY: MS Sans Serif
}
.DatagridAlternatingStyle {
    FONT-SIZE: 8pt; VERTICAL-ALIGN: top; FONT-FAMILY: MS Sans Serif;
BACKGROUND-COLOR: #f5f5f5
}
.DatagridPagerstyle {
    FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #3d3d3d; FONT-FAMILY: MS Sans
Serif; HEIGHT: 16px; BACKGROUND-COLOR: #e1e1e1
}
.DatagridTitle {
    HEIGHT: 16px; BACKGROUND-COLOR: #e1e1e1
}
.ABC {
    VERTICAL-ALIGN: top
}
Inline Attachment Follows: BudgetPlanning.java
import javax.swing.*;
import java.awt.*;

class BudgetPlanning
{
    public static void main(String[] ar)
    {

        JFrame framewindow=new JFrame();


        framewindow.setSize(800,800);
        framewindow.setVisible(true);
        framewindow.setTitle("BUDGET Planning");
//Label
        JLabel bh =new JLabel("BUDGET Planning");
                
        String[] occasions={"Birthday","College Fest","Marriage","Business Party","Formal        
Dinner"};
        String[] event={"Birthday Cake","welcome Drinks"};
        

        JLabel Oc =new JLabel("Occasion");


        
        JComboBox GenderCombo=new JComboBox(occasions);

        

        JLabel GATHERING =new JLabel("GATHERING");


        JTextField GATH=new JTextField(15);

        
        JLabel BUDGET=new JLabel("BUDGET");
        JTextField BUG =new JTextField(9);

        JLabel events =new JLabel("EVENTS");


        JComboBox eventCombo=new JComboBox(event);

        

        
        JButton AddBtn=new JButton("Add");

        
        JButton Submit =new JButton("Submit");

        JPanel panelwindow=new JPanel();


        framewindow.getContentPane().add(panelwindow);

        GridBagLayout gbl=new GridBagLayout();


        GridBagConstraints gbc=new GridBagConstraints();
        panelwindow.setLayout(gbl);

        gbc.gridx=0;


        gbc.gridy=1;
        gbc.fill = gbc.BOTH;
        gbl.setConstraints(bh,gbc);
        panelwindow.add(bh);

        gbc.gridx=1;


        gbc.gridy=2;
        gbl.setConstraints(Oc,gbc);
        panelwindow.add(Oc);

        gbc.gridx=2;


        gbc.gridy=2;
        gbl.setConstraints(GenderCombo,gbc);
        panelwindow.add(GenderCombo);

        gbc.gridx=1;


        gbc.gridy=3;
        gbl.setConstraints(GATHERING,gbc);
        panelwindow.add(GATHERING);

        gbc.gridx=2;


        gbc.gridy=3;
        gbl.setConstraints(GATH,gbc);
        panelwindow.add(GATH);

        gbc.gridx=1;


        gbc.gridy=4;
        gbl.setConstraints(BUDGET,gbc);
        panelwindow.add(BUDGET);

        gbc.gridx=2;


        gbc.gridy=4;
        gbl.setConstraints(BUG,gbc);
        panelwindow.add(BUG);

        gbc.gridx=1;


        gbc.gridy=5;
        gbl.setConstraints(events,gbc);
        panelwindow.add(events);

        gbc.gridx=2;


        gbc.gridy=5;
        gbl.setConstraints(eventCombo,gbc);
        panelwindow.add(eventCombo);

        gbc.gridx=3;


        gbc.gridy=5;
        gbl.setConstraints(AddBtn,gbc);
        panelwindow.add(AddBtn);

        gbc.gridx=2;


        gbc.gridy=6;
        gbl.setConstraints(Submit,gbc);
        panelwindow.add(Submit);

        

        framewindow.pack();


        framewindow.setDefaultCloseOperation                       
(WindowConstants.EXIT_ON_CLOSE);
    }
}
Inline Attachment Follows: CustomerRegPg.java
import javax.swing.*;
import java.awt.*;

class CustomerRegPg
{
    public static void main(String[] ar)
    {

        JFrame framewindow=new JFrame();


        framewindow.setSize(800,800);
        framewindow.setVisible(true);
        framewindow.setTitle("Event Management");
//Label
        JLabel Mgmt=new JLabel("Event Management");
        JRadioButton Yes,No;
        ButtonGroup Existing_Customer;
        String[] strGender={"Male","Female"};
        JRadioButton yes=new JRadioButton("Yes");
        JRadioButton Noo=new JRadioButton("No");
        JLabel tellus=new JLabel("Existing Customer");

        JLabel Myname=new JLabel("MyName");


        JTextField MynameTf=new JTextField(10);
        JTextField MysurnameTf=new JTextField(10);

        JLabel Gender=new JLabel("Gender");


        JComboBox GenderCombo=new JComboBox(strGender);

        

        JLabel Address=new JLabel("Address");


        JTextField address=new JTextField(15);

        
        JLabel Contact=new JLabel("Contact");
        JTextField FillContact=new JTextField(9);

        JLabel id=new JLabel("Customer Id");


        JTextField Id_TF=new JTextField(15);

        JLabel Date=new JLabel("Date");


        JTextField Fill_Date=new JTextField(15);

        
        JButton OkBtn=new JButton("Submit");

        
        JButton Cancel=new JButton("Cancel");

        JPanel panelwindow=new JPanel();


        framewindow.getContentPane().add(panelwindow);

        GridBagLayout gbl=new GridBagLayout();


        GridBagConstraints gbc=new GridBagConstraints();
        panelwindow.setLayout(gbl);

        gbc.gridx=2;


        gbc.gridy=1;
        gbc.fill=gbc.BOTH;
        gbc.insets=new Insets(2,2,2,2);
        gbl.setConstraints(Mgmt,gbc);
        panelwindow.add(Mgmt);

        gbc.gridx=1;


        gbc.gridy=2;
        gbl.setConstraints(tellus,gbc);
        panelwindow.add(tellus);

        gbc.gridx=1;


        gbc.gridy=3;
        gbl.setConstraints(yes,gbc);
        panelwindow.add(yes);

        gbc.gridx=2;


        gbc.gridy=3;
        gbl.setConstraints(Noo,gbc);
        panelwindow.add(Noo);

        gbc.gridx=1;


        gbc.gridy=4;
        gbl.setConstraints(Myname,gbc);
        panelwindow.add(Myname);

        gbc.gridx=2;


        gbc.gridy=4;
        gbl.setConstraints(MynameTf,gbc);
        panelwindow.add(MynameTf);

        gbc.gridx=3;


        gbc.gridy=4;
        gbl.setConstraints(MysurnameTf,gbc);
        panelwindow.add(MysurnameTf);

        gbc.gridx=1;


        gbc.gridy=5;
        gbl.setConstraints(Gender,gbc);
        panelwindow.add(Gender);

        gbc.gridx=2;


        gbc.gridy=5;
        gbl.setConstraints(GenderCombo,gbc);
        panelwindow.add(GenderCombo);

        gbc.gridx=1;


        gbc.gridy=6;
        gbl.setConstraints(Address,gbc);
        panelwindow.add(Address);

        gbc.gridx=2;


        gbc.gridy=6;
        gbl.setConstraints(address,gbc);
        panelwindow.add(address);

        gbc.gridx=1;


        gbc.gridy=7;
        gbl.setConstraints(Contact,gbc);
        panelwindow.add(Contact);

        gbc.gridx=2;


        gbc.gridy=7;
        gbl.setConstraints(FillContact,gbc);
        panelwindow.add(FillContact);

        gbc.gridx=1;


        gbc.gridy=8;
        gbl.setConstraints(id,gbc);
        panelwindow.add(id);

        gbc.gridx=2;


        gbc.gridy=8;
        gbl.setConstraints(Id_TF,gbc);
        panelwindow.add(Id_TF);

        gbc.gridx=1;


        gbc.gridy=9;
        gbl.setConstraints(Date,gbc);
        panelwindow.add(Date);

        gbc.gridx=2;


        gbc.gridy=9;
        gbl.setConstraints(Fill_Date,gbc);
        panelwindow.add(Fill_Date);

        gbc.gridx=3;


        gbc.gridy=10;
        gbl.setConstraints(OkBtn,gbc);
        panelwindow.add(OkBtn);

        gbc.gridx=4;


        gbc.gridy=10;
        gbl.setConstraints(Cancel,gbc);
        panelwindow.add(Cancel);

        framewindow.pack();


        framewindow.setDefaultCloseOperation                       
(WindowConstants.EXIT_ON_CLOSE);
    }
}
Inline Attachment Follows: DemoTableClass.java
import javax.swing.*;
import java.awt.*;
import javax.swing.table.*;

public class DemoTableClass


{
    JFrame frame;
    JPanel panel;
    JTable table;
    MyTableModel tm;    
    JScrollPane jsp;
    public DemoTableClass()
    {
        frame=new JFrame("Demo Table");
        panel=new JPanel();
        tm=new MyTableModel();    
        table=new JTable(tm);
        jsp=new JScrollPane(table);
        Dimension d=new Dimension(400,400);
        jsp.setPreferredSize(d);

        panel.add(jsp);


        frame.getContentPane().add(panel);
        frame.setSize(300,300);
        frame.setVisible(true);
    }    
    public static void main(String arg[])
    {
        DemoTableClass dtc=new DemoTableClass();
    }

    class MyTableModel extends AbstractTableModel 


    {
            String [] col={"A","B","C"};
        Object [][] row={{new Boolean(true),"",""},{new Boolean(true),"",""}};
            public int getColumnCount() 
        {
                return col.length;
            }
            public int getRowCount() 
        {
                    return row.length;
            }
            public String getColumnName(int cols) 
        {
                return col[cols];
            }
            public Object getValueAt(int rows, int cols) 
        {
                    return row[rows][cols];
            }

            public boolean isCellEditable(int rows, int cols) 


        {
            if(cols > 2)
            {
                        return false;
                    } 
            else 
            {
                        return true;
                    }
            }
            public Class getColumnClass(int c) 
            {
                        return getValueAt(0, c).getClass();
                }
            public void setValueAt(Object value, int rows, int cols) 
        {
                    row[rows][cols] = value;
                    fireTableCellUpdated(rows, cols);
            }        
    }
}

   
Inline Attachment Follows: first.java
class first
{
public static void main(String args[])
{
System.out.println("Hello");
}
}
Inline Attachment Follows: Frame1.java
import java.awt.*;
import javax.swing.*;

class Frame1
{
    JFrame frame;
    JPanel panel;
    JLabel name,occ,event;
    JButton bok,bcancel;
    JTextField tf1;
    JTextArea ta;
    JComboBox b1;
    GridBagLayout gbl;
    GridBagConstraints gbc;
    JComboBox cb;

    
    public Frame1()
    {
        frame = new JFrame("EVENTS");

        frame.setSize(400,500);


        frame.setVisible(true);
        panel =new JPanel();
        gbl = new GridBagLayout();
        gbc = new GridBagConstraints();
        panel.setLayout(gbl);

        
    name = new JLabel("Name");
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(5,5,5,5);
    gbl.setConstraints(name,gbc);
    panel.add(name);
    
    tf1 = new JTextField(10);
    gbc.gridx = 0;
    gbc.gridy = 1;
    gbl.setConstraints(tf1,gbc);
    panel.add(tf1);

    occ = new JLabel("Occasion");


    gbc.gridx = 0;
    gbc.gridy = 2;
    gbl.setConstraints(occ,gbc);
    panel.add(occ);

    String[] str = {" "," "," "};


    cb = new JComboBox(str);
    gbc.gridx = 0;
    gbc.gridy = 3;
    gbl.setConstraints(cb,gbc);
    panel.add(cb);

    
    

    
    event = new JLabel("Event");
    gbc.gridx = 0;
    gbc.gridy = 4;
    gbl.setConstraints(event,gbc);
    panel.add(event);
    ta = new JTextArea(10,20);
    gbc.gridx = 0;
    gbc.gridy = 5;
    gbl.setConstraints(ta,gbc);
    panel.add(ta);

    
    bok = new JButton("OK");
    gbc.gridx = 1;
    gbc.gridy = 6;
    gbl.setConstraints(bok,gbc);
    panel.add(bok);

    bcancel = new JButton("CANCEL");


    gbc.gridx = 2;
    gbc.gridy = 6;
    gbl.setConstraints(bcancel,gbc);
    panel.add(bcancel);

    frame.getContentPane().add(panel);
    

    }

    public static void main(String args[])


    {
        new Frame1();
    }
}
Inline Attachment Follows: Frame2.java
import java.awt.*;
import javax.swing.*;

class Frame2
{
    JFrame frame;
    JPanel panel,primarypanel;
    JLabel     name,evntnme,evntstatus,strtdte,nddte,budget,frstnme,lstname,add,   
state,country,title;
    JTextField tf1,tf2,tf3,tf4,tf5,tf6,tf7,tf8,tf9,tf10;
    JComboBox cb,cb1;
    GridBagLayout gbl,gbl1;
    GridBagConstraints gbc,gbc1;
    JTabbedPane tabs;

    
    public Frame2()
    {
        frame = new JFrame("ADDING PROSPECTIVE CLIENTS");
        frame.setSize(400,500);
        frame.setVisible(true);
        frame.setResizable(true);
        
        panel = new JPanel();

        primarypanel = new JPanel();

        tabs = new JTabbedPane();

        gbl = new GridBagLayout();


        gbc = new GridBagConstraints();
        panel.setLayout(gbl);

        name = new JLabel("NAME");


        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.insets = new Insets(5,5,5,5);
        gbl.setConstraints(name,gbc);
        panel.add(name);
        
        tf1 = new JTextField(20);
        gbc.gridx = 1;
        gbc.gridy = 0;
        gbl.setConstraints(tf1,gbc);
        panel.add(tf1);

        evntnme = new JLabel(" EVENT NAME");


        gbc.gridx = 0;
        gbc.gridy = 1;
        gbl.setConstraints(evntnme,gbc);
        panel.add(evntnme);

        
        tf2 = new JTextField(20);
        gbc.gridx = 1;
        gbc.gridy = 1;
        gbl.setConstraints(tf2,gbc);
        panel.add(tf2);

        
        evntstatus = new JLabel(" EVENT STATUS");
        gbc.gridx = 0;
        gbc.gridy = 2;
        gbl.setConstraints(evntstatus,gbc);
        panel.add(evntstatus);

        String[] str = {"ACTIVE","PROSPECT","DONE"};


        cb = new JComboBox(str);
        gbc.gridx = 1;
        gbc.gridy = 2;
        gbl.setConstraints(cb,gbc);
        panel.add(cb);

        strtdte = new JLabel(" START DATE");


        gbc.gridx = 0;
        gbc.gridy = 3;
        gbl.setConstraints(strtdte,gbc);
        panel.add(strtdte);
        
        tf3 = new JTextField(20);
        gbc.gridx = 1;
        gbc.gridy = 3;
        gbl.setConstraints(tf3,gbc);
        panel.add(tf3);

        
        nddte = new JLabel(" START DATE");
        gbc.gridx = 0;
        gbc.gridy = 4;
        gbl.setConstraints(nddte,gbc);
        panel.add(nddte);

        tf4 = new JTextField(20);


        gbc.gridx = 1;
        gbc.gridy = 4;
        gbl.setConstraints(tf4,gbc);
        panel.add(tf4);

        budget = new JLabel(" START DATE");


        gbc.gridx = 0;
        gbc.gridy = 5;
        gbl.setConstraints(budget,gbc);
        panel.add(budget);

        tf5 = new JTextField(20);


        gbc.gridx = 1;
        gbc.gridy = 5;
        gbl.setConstraints(tf5,gbc);
        panel.add(tf5);

        gbl1 = new GridBagLayout();


        gbc1 = new GridBagConstraints();
        primarypanel.setLayout(gbl1);

        title = new JLabel("TITLE");


        gbc1.gridx = 0;
        gbc1.gridy = 0;
        gbc1.fill = GridBagConstraints.HORIZONTAL;
        gbc1.insets = new Insets(5,5,5,5);
        gbl1.setConstraints(title,gbc1);
        primarypanel.add(title);

        
        String[] str1 = {"MR","MISS","DR","ER"};
        cb1 = new JComboBox(str1);
        gbc1.gridx = 0;
        gbc1.gridy = 1;
        gbl1.setConstraints(cb1,gbc1);
        primarypanel.add(cb1);

        frstnme = new JLabel("FIRST NAME");


        gbc1.gridx = 2;
        gbc1.gridy = 0;
        gbl1.setConstraints(frstnme,gbc1);
        primarypanel.add(frstnme);
        
        
        tf6 = new JTextField(20);
        gbc1.gridx = 2;
        gbc1.gridy = 1;
        gbl1.setConstraints(tf6,gbc1);
        primarypanel.add(tf6);

        lstname = new JLabel("LAST NAME");


        gbc1.gridx = 4;
        gbc1.gridy = 0;
        gbl1.setConstraints(lstname,gbc1);
        primarypanel.add(lstname);

        tf7 = new JTextField(20);


        gbc1.gridx = 4;
        gbc1.gridy = 1;
        gbl1.setConstraints(tf7,gbc1);
        primarypanel.add(tf7);

        add = new JLabel("ADD");


        gbc1.gridx = 0;
        gbc1.gridy = 2;
        gbl1.setConstraints(add,gbc1);
        primarypanel.add(lstname);

        tf8 = new JTextField(20);


        gbc1.gridx = 0;
        gbc1.gridy = 3;
        gbl1.setConstraints(tf8,gbc1);
        primarypanel.add(tf8);

        state = new JLabel("STATE");


        gbc1.gridx = 2;
        gbc1.gridy = 2;
        gbl1.setConstraints(state,gbc1);
        primarypanel.add(state);

        tf9 = new JTextField(20);


        gbc1.gridx = 2;
        gbc1.gridy = 3;
        gbl1.setConstraints(tf9,gbc1);
        primarypanel.add(tf9);

        
        country = new JLabel("COUNTRY");
        gbc1.gridx = 4;
        gbc1.gridy = 2;
        gbl1.setConstraints(country,gbc1);
        primarypanel.add(country);

        tf10 = new JTextField(20);


        gbc1.gridx = 4;
        gbc1.gridy = 3;
        gbl1.setConstraints(tf10,gbc1);
        primarypanel.add(tf10);

        tabs.addTab("PRIMARY CONTENT",primarypanel);


        panel.add(tabs);

        frame.getContentPane().add(panel);

        }

    public static void main(String args[])


    {
        new Frame2();
    }
}            

Inline Attachment Follows: Frame3.java


//tab 1 tatz subevnt details..

import java.awt.*;
import javax.swing.*;

class Frame3 extends JPanel


{
    JFrame frame;
    JLabel sub,loc,city,state,country,style,theme,colors,notes,estmd;
    JTextField tf11,tf12,tf13,tf14,tf15,tf16;
    JTextArea ta,ta1;
    JComboBox cb2;
    GridBagLayout gbl2;
    GridBagConstraints gbc2;

    public Frame3()


    {

    
        gbl2= new GridBagLayout();
        gbc2 = new GridBagConstraints();
        setLayout(gbl2);

        sub = new JLabel("SUB EVENT");


        gbc2.gridx = 0;
        gbc2.gridy = 0;
        gbc2.fill = GridBagConstraints.HORIZONTAL;
        gbc2.insets = new Insets(5,5,5,5);
        gbl2.setConstraints(sub,gbc2);
        add(sub);

        tf11 = new JTextField(10);


        gbc2.gridx = 0;
        gbc2.gridy = 1;
        gbl2.setConstraints(tf11,gbc);
        add(tf11);
        loc = new JLabel("LOCATION  /  VENUE");
        gbc2.gridx = 0;
        gbc2.gridy = 2;
        gbl2.setConstraints(loc ,gbc2);
        add(loc );

        ta = new JTextArea(10,20);


        gbc2.gridx = 0;
        gbc2.gridy = 3;
        gbl2.setConstraints(ta,gbc2);
        add(ta);

        city = new JLabel("CITY");


        gbc2.gridx = 0;
        gbc2.gridy = 4;
        gbl2.setConstraints(city ,gbc2);
        add(city );

        tf12 = new JTextField(10);


        gbc2.gridx = 1;
        gbc2.gridy = 4;
        gbl2.setConstraints(tf12,gbc2);
        add(tf12);

        
        state = new JLabel("STATE");
        gbc2.gridx = 0;
        gbc2.gridy = 5;
        gbl2.setConstraints(state ,gbc2);
        add(state );

        tf13 = new JTextField(10);


        gbc2.gridx = 1;
        gbc2.gridy = 5;
        gbl2.setConstraints(tf13,gbc2);
        add(tf13);

        
        country = new JLabel("COUNTRY");
        gbc2.gridx = 0;
        gbc2.gridy = 6;
        gbl2.setConstraints(country ,gbc2);
        add(country );

        tf14 = new JTextField(10);


        gbc2.gridx = 1;
        gbc2.gridy = 6;
        gbl2.setConstraints(tf14,gbc2);
        add(tf14);

        style= new JLabel("STYLE");


        gbc2.gridx = 0;
        gbc2.gridy = 7;
        gbl2.setConstraints(style,gbc2);
        add(style );

        String[] str = {"FORMAL","SEMI_FORMAL","CASUAL","MILITARY"};


        cb2= new JComboBox(str);
        gbc2.gridx = 1;
        gbc2.gridy = 7;
        gbl.setConstraints(cb2,gbc2);
        add(cb2);

        theme = new JLabel("THEME");


        gbc2.gridx = 0;
        gbc2.gridy = 8;
        gbl2.setConstraints(theme ,gbc2);
        add(theme);

        tf15 = new JTextField(10);


        gbc2.gridx = 0;
        gbc2.gridy = 9;
        gbl2.setConstraints(tf15,gbc2);
        add(tf15);

        colors = new JLabel("COLORS");


        gbc2.gridx = 0;
        gbc2.gridy = 10;
        gbl2.setConstraints(colors ,gbc2);
        add(colors);

        tf15 = new JTextField(10);


        gbc2.gridx = 0;
        gbc2.gridy = 11;
        gbl2.setConstraints(tf15,gbc2);
        add(tf15);

        estmd = new JLabel("ESTIMATED # GUESTS");


        gbc2.gridx = 0;
        gbc2.gridy = 12;
        gbl2.setConstraints(estmd ,gbc2);
        add(estmd);

        tf16 = new JTextField(10);


        gbc2.gridx = 0;
        gbc2.gridy = 13;
        gbl.setConstraints(tf16,gbc2);
        add(tf6);

        notes = new JLabel("NOTES");


        gbc2.gridx = 0;
        gbc2.gridy = 14;
        gbl2.setConstraints(notes ,gbc2);
        add(notes);

        ta1 = new JTextArea(10,20);


        gbc2.gridx = 0;
        gbc2.gridy = 15;
        gbl2.setConstraints(ta1,gbc2);
        add(ta1);

    }
}

Inline Attachment Follows: G2N.java


class sample2{
void display( int x, int y)
{
      if(x<y)
  
        System.out.println("x is less then y");
  else
        System.out.println("y is less then x");
   }
}
class G2N
{
        public static void main(String args[])
    {
        sample2 obj1;
        obj1=new sample2();
        obj1.display(10,20);
    }
}
Inline Attachment Follows: G7N.java
class series{
void display(boolean a)
{
        if(a=1)
        System.out.println("Sunday");
        if(a=2)
        System.out.println("Mon");

        if(a=3)
        System.out.println("Tue");
        if(a=4)
        System.out.println("Wed");
        if(a=5)
        System.out.println("thu");
        if(a=6)
        System.out.println("Fri");

        if(a=7)
        System.out.println("sat");
    }
}
        class G7N
    {
        public static void main(String args[])
    {
          obj1=new series();
          obj1.display();
    }
    }
Inline Attachment Follows: Home.java
import java.awt.*;
import java.awt.color.*;
import javax.swing.border.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.table.*;

class Home implements ActionListener

{
    JFrame frame;
    JPanel mainPanel,westPanel,toolPanel,southpanel,centerpanel,proPanel,activePanel,datePanel,
leftToolPanel, rightToolPanel, EastPanel, MainPanel;
    JLabel lname, ProClients, ActiveClients ;
    JButton bproview,bhelp,bexit, bhome, addBtn, deleteBtn, deleteBtnAct, searchBtn,
evtProffesionalBtn, CalendarBtn;
    BorderLayout br, bLCenterpanel;
    GridLayout glEast ;
    GridBagLayout gbl1, gbl2, gblPro, gblAct;
    GridBagConstraints gbc1,gbc2,gbcPro, gbcAct ;
    SouthPanel sp;
    FlowLayout leftToolLayout, rightToolLayout;
    
    JTable table, tableAct;
    MyTableModel tmodel, tm;    
    JScrollPane jsp, jspA;
    
    public Home()
    {
        frame=new JFrame("EVENT MGMT");
        
        mainPanel=new JPanel();
        br=new BorderLayout();
        mainPanel.setLayout(br);
        mainPanel.setBackground(new Color(174, 0, 131));

        toolPanel=new JPanel();        


        southpanel=new JPanel();
        centerpanel=new JPanel();
        EastPanel=new JPanel();
        westPanel=new JPanel();
        sp = new SouthPanel();
        MainPanel = new JPanel();
//TOOLBAR PANEL

    
    //proPanel
        proPanel=new JPanel();
        gbl1=new GridBagLayout();
        gbc1=new GridBagConstraints();
        toolPanel.setLayout(gbl1);
        
    //Proview Btn     
        ImageIcon icon=new ImageIcon("C:\\urz\\project images\\wn_eclcommunity48_hov.GIF");
        bproview=new JButton("ProView", icon);
        bproview.setForeground(new Color(174, 0, 131));
        gbc1.insets=new Insets(10,10,20,20);
        gbc1.fill=GridBagConstraints.BOTH;
        //gbc1.weightx=0.2;
        gbc1.gridx=1;
        gbc1.gridy=0;
        gbl1.setConstraints(bproview,gbc1);
    
    //Home Btn
        ImageIcon icon3=new ImageIcon("C:\\urz\\project images\\but1_up.GIF");
        bhome=new JButton("Home", icon3);
        bhome.setForeground(new Color(174, 0, 131));
        gbc1.gridx=2;
        gbc1.gridy=0;
        gbl1.setConstraints(bhome,gbc1);
        gbc1.weightx=0.0;
    
    //Help Btn
        ImageIcon icon1=new ImageIcon("C:\\urz\\project images\\qmark.GIF");
        bhelp=new JButton("Help", icon1);
        bhelp.setForeground(new Color(174, 0, 131));
        gbc1.gridx=6;
        gbc1.gridy=0;
        //gbc1.insets=new Insets(6,6,6,6);
        gbl1.setConstraints(bhelp,gbc1);
    
    //Exit Btn    
        ImageIcon icon2=new ImageIcon("C:\\urz\\project images\\smallfail.GIF");
        bexit=new JButton("Exit", icon2);
        bexit.setForeground(new Color(174, 0, 131));
        bexit.addActionListener(this);
        gbc1.gridx=7;
        gbc1.gridy=0;
        gbl1.setConstraints(bexit,gbc1);

        toolPanel.add(bproview);


        toolPanel.add(bhome);
        toolPanel.add(bhelp);
        toolPanel.add(bexit);
        toolPanel.setBackground(new Color(254, 152, 223));        
        toolPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED,new
Color(174, 0, 131), new Color(174, 0, 131)));

//EAST PANEL
        glEast = new GridLayout(3, 3);
        
        EastPanel.setLayout(glEast);

        searchBtn = new JButton("SEARCH");


        searchBtn.setForeground(new Color(174, 0, 131));
        EastPanel.add(searchBtn);

        evtProffesionalBtn = new JButton("EVENT PROFFESIONAL");


        evtProffesionalBtn .setForeground(new Color(174, 0, 131));
        EastPanel.add(evtProffesionalBtn);

        CalendarBtn = new JButton("CALENDAR");


        CalendarBtn .setForeground(new Color(174, 0, 131));
        EastPanel.add(CalendarBtn);

//CENTRAL PANEL

        bLCenterpanel=new BorderLayout();


        centerpanel.setLayout(bLCenterpanel);

    //Panel for current date and time

        datePanel = new JPanel();


        datePanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, new
Color(254, 152, 223),new Color(254, 152, 223)));
        
    //Panel for prospective clients table

        gblPro = new GridBagLayout();


        gbcPro = new GridBagConstraints();          
        proPanel.setLayout(gblPro);
        proPanel.setBackground(new Color(174, 0, 131));

        ProClients=new JLabel("Prospective Clients");


        gbcPro.gridx = 0;
        gbcPro.gridy = 0;
        gblPro.setConstraints(ProClients, gbcPro);
        ProClients.setForeground(new Color(254, 152, 223)); 
        gbcPro.fill=gbcPro.HORIZONTAL;
        gbcPro.insets=new Insets(2,2,2,2);
        proPanel.add(ProClients);        

    //Add btn


        addBtn=new JButton("ADD");
        gbcPro.gridx = 3;
        gbcPro.gridy = 0;
        gblPro.setConstraints(addBtn, gbcPro);
        addBtn.setForeground(new Color(254, 152, 223)); 
        proPanel.add(addBtn);

    //Delete btn


        deleteBtn=new JButton("DELETE"); 
        gbcPro.gridx = 4;
        gbcPro.gridy = 0;
        gblPro.setConstraints(deleteBtn, gbcPro);
        deleteBtn.setForeground(new Color(254, 152, 223)); 
        proPanel.add(deleteBtn);

    //table for Prospective Clients        

        tmodel=new MyTableModel();    


        table=new JTable(tmodel);
        jsp=new JScrollPane(table);
        Dimension d=new Dimension(500,100);
        
        gbcPro.gridx = 0;
        gbcPro.gridy = 2;
        gblPro.setConstraints(jsp, gbcPro);

        jsp.setPreferredSize(d);

        proPanel.add(jsp);


        proPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, new
Color(254, 152, 223),new Color(254, 152, 223)));

    //Panel for Active Clients

        activePanel=new JPanel();    


        activePanel.setBackground(new Color(174, 0, 131));
        
        gblAct=new GridBagLayout();
        gbcAct=new GridBagConstraints();
        activePanel.setLayout(gblAct);

        ActiveClients=new JLabel("Active Clients");


        gbcAct.gridx = 0;
        gbcAct.gridy = 0;
        gblAct.setConstraints(ActiveClients, gbcAct);
        ActiveClients.setForeground(new Color(254, 152, 223)); 
        gbcAct.fill=gbcAct.HORIZONTAL;
        gbcAct.insets=new Insets(2,2,2,2);
        activePanel.add(ActiveClients);    

    //Delete btn for Active Panel    


        
        deleteBtnAct=new JButton("DELETE"); 
        gbcAct.gridx = 4;
        gbcAct.gridy = 0;
        gblAct.setConstraints(deleteBtnAct, gbcAct);
        deleteBtnAct.setForeground(new Color(254, 152, 223)); 
        activePanel.add(deleteBtnAct);
        
    //Table for Active Clients

        tm=new MyTableModel();    


        tableAct=new JTable(tm);
        jspA=new JScrollPane(tableAct);
        Dimension dA=new Dimension(500,100);
        jspA.setPreferredSize(dA);

        gbcAct.gridx = 0;


        gbcAct.gridy = 2;
        gblAct.setConstraints(jspA, gbcAct);
        activePanel.add(jspA);
        activePanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));

        centerpanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));


        centerpanel.add("North", datePanel);
        centerpanel.add("Center", proPanel);
        centerpanel.add("South", activePanel);

//SOUTH PANEL
        southpanel.add(sp.MainPanel);
        southpanel.setBackground(new Color(254, 152, 223));        
        southpanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, new
Color(174, 0, 131), new Color(174, 0, 131)));

        EastPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));


        westPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED,new
Color(254, 152, 223), new Color(254, 152, 223)));
        mainPanel.add(toolPanel, BorderLayout.NORTH);    
        mainPanel.add(centerpanel, BorderLayout.CENTER);
        mainPanel.add(EastPanel, BorderLayout.EAST);    
        mainPanel.add(westPanel, BorderLayout.WEST);
        mainPanel.add(southpanel, BorderLayout.SOUTH);                
        
        
        //panel.setLocation(0,0);    
        frame.getContentPane().add(mainPanel);
        //frame.setToolBar(toolbar);
        frame.setSize(600,400);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        
        
    
    }
    public void actionPerformed(ActionEvent ae)
    {
        System.out.println("Exit pressed");
        Object obj = ae.getSource();
        if(obj == bexit)
        {
            System.exit(0);
        }
    }

    public static void main(String args[])


    {
        new Home();
    }
class MyTableModel extends AbstractTableModel 
    {
            String [] col={"Occasion Name","Occasion type","Occasion Status","Date","Time"};
        Object [][] row={};
            public int getColumnCount() 
        {
                return col.length;
            }
            public int getRowCount() 
        {
                    return row.length;
            }
            public String getColumnName(int cols) 
        {
                return col[cols];
            }
            public Object getValueAt(int rows, int cols) 
        {
                    return row[rows][cols];
            }

            public boolean isCellEditable(int rows, int cols) 


        {
            if(cols > 5)
            {
                        return false;
                    } 
            else 
            {
                        return true;
                    }
            }
            public Class getColumnClass(int c) 
            {
                        return getValueAt(0, c).getClass();
                }
            public void setValueAt(Object value, int rows, int cols) 
        {
                    row[rows][cols] = value;
                    fireTableCellUpdated(rows, cols);
            }        
    }
class MyTable extends AbstractTableModel 
    {
            String [] col={"Occasion Name","Occasion type","Occasion Status","Event Name",
"Date","Time"};
        Object [][] row={};
            public int getColumnCount() 
        {
                return col.length;
            }
            public int getRowCount() 
        {
                    return row.length;
            }
            public String getColumnName(int cols) 
        {
                return col[cols];
            }
            public Object getValueAt(int rows, int cols) 
        {
                    return row[rows][cols];
            }

            public boolean isCellEditable(int rows, int cols) 


        {
            if(cols > 6)
            {
                        return false;
                    } 
            else 
            {
                        return true;
                    }
            }
            public Class getColumnClass(int c) 
            {
                        return getValueAt(0, c).getClass();
                }
            public void setValueAt(Object value, int rows, int cols) 
        {
                    row[rows][cols] = value;
                    fireTableCellUpdated(rows, cols);
            }        
    }
}

Inline Attachment Follows: MenuExp.java


import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class MenuExp implements ActionListener


{    JMenuBar mb;
    JFrame Window;
    BorderLayout border;
    JMenu mdetails;
    JMenu moccasion;
    JMenu mcustomer;
    JMenu msearch;
    JMenuItem mivenue,mivendor,mioccasion,mievent,mibook,mibudget,
    minew,miold,misc,miso,mise,miscbp,miscbfp,miscba,miscbo,miscbday;
    JPanel panel;
    
    public MenuExp()
    {
        
        mb=new JMenuBar();
        Window=new JFrame("Master Window");
        panel=new JPanel();
        border=new BorderLayout();
        mdetails=new JMenu("Details");
        moccasion=new JMenu("Occasion");
        mcustomer=new JMenu("Customer");
        msearch=new JMenu("Search");
        
        panel.setLayout(border);
        
        mivenue=new JMenuItem("Update venue");
        
        mivendor=new JMenuItem("Update vendor");
        mioccasion=new JMenuItem("Occasion");
        mievent=new JMenuItem("Events");
        mibook=new JMenuItem("Book an occasion");
        misc=new JMenuItem("Search Customer");
        miso=new JMenuItem("Search Occasion");
        mibudget=new JMenuItem("Budget Planning");
        minew=new JMenuItem("New Registration");
        miold=new JMenuItem("Already Registerd");
        mise=new JMenuItem("Search Event");
        miscbp=new JMenuItem("Search Cutomer by Payment");
        miscbfp=new JMenuItem("Search Cutomer by full payment");
        miscba=new JMenuItem("Search Cutomer by Advance");
        miscbo=new JMenuItem("Search Cutomer by Occasion");
        miscbday=new JMenuItem("Search Cutomer by Day of Occasion");    
        mivendor.addActionListener(this);
        

        mb.add(mdetails);


        mb.add(moccasion);
        mb.add(mcustomer);
        mb.add(msearch);
        
        mdetails.add(mivenue);
        mdetails.add(mivendor);
        mdetails.add(mievent);
        mdetails.add(mioccasion);
        
        mcustomer.add(minew);
        mcustomer.add(miold);

        moccasion.add(mibudget);


        moccasion.add(mibook);

        msearch.add(misc);


        msearch.add(miso);
        msearch.add(mise);
        msearch.add(miscbp);
        msearch.add(miscbday);
        msearch.add(miscbfp);
        msearch.add(miscba);

        panel.add("North",mb);


        
            
        Window.setSize(400,350);
        Window.setVisible(true);
        Window.getContentPane().add(panel);

        
    }

    public void actionPerformed(ActionEvent ae)


    {
        if(ae.getSource() == mivendor)
        {
            new Frame1();
    
        }
    }

    public static void main(String args[])


    {
        new MenuExp();
    }
}    

        
Inline Attachment Follows: simple.java
class intrest
{
void display(double p, int r, int t)
    {
        double si;
        si=p*r*t/100;
        System.out.println("SI="+si);
    }
}
class simple
    {
                public static void main(String args[])
        {
                        intrest obj1;
                        obj1=new intrest();
                        obj1.display(10000,10,5);
        }
    }
Inline Attachment Follows: SouthPanel.java
import java.awt.*;
import javax.swing.border.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.table.*;

class SouthPanel 
{
    //JInternalFrame intfr;
    JPanel MainPanel, RemainderPanel, TabsPanel, TaskPanel, PaySchPanel;
    //frame.setToolBar(toolbar);
    BorderLayout blSouth;
    JTabbedPane tabs;
    JLabel RemLabel;
    //GridBagLayout gblTask, gblPay;
    //GridBagConstraints gbcTask, gbcPay;
    JTable tableTask, tablePay;
    MyTableModel tmodelTask;
    MyTableModel4 tmPay;    
    JScrollPane jspTask, jspPay;

    public SouthPanel()


    {
        //intfr=new JInternalFrame();
        MainPanel = new JPanel();
        RemainderPanel = new JPanel();
        blSouth = new BorderLayout();
        MainPanel.setLayout(blSouth); 
        
        TabsPanel= new JPanel();
        TaskPanel = new JPanel();
        PaySchPanel = new JPanel();

        tabs=new JTabbedPane();


        RemLabel=new JLabel("REMAINDERS");
        
        RemLabel.setForeground(new Color(174, 0, 131));
        RemainderPanel.setBackground(new Color(254, 152, 223));        
        RemainderPanel.add(RemLabel);
        MainPanel.add("North", RemainderPanel);

    //Tab for Tasks


        
        

        tmodelTask=new MyTableModel();    


        tableTask=new JTable(tmodelTask);
        jspTask=new JScrollPane(tableTask);
        Dimension dT=new Dimension(500,100);
        jspTask.setPreferredSize(dT);

        TaskPanel.add(jspTask);


        TaskPanel.setForeground(new Color(174, 0, 131));
        tabs.addTab("TASKS", TaskPanel);
        
    //Tab for Payschedule
        
        tmPay=new MyTableModel4();    
        tablePay=new JTable(tmPay);
        jspPay=new JScrollPane(tablePay);
        Dimension dTP=new Dimension(1100,100);
        jspPay.setPreferredSize(dTP);

        PaySchPanel.add(jspPay);


        tabs.addTab("PAYSCHEDULE", PaySchPanel);
        TabsPanel.setBackground(new Color(254, 152, 223));        

                                                                                                                    
        TabsPanel.add(tabs);        
        MainPanel.add("Center", TabsPanel);
        //MainPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED,new
Color(254, 152, 223), new Color(254, 152, 223)));

        //intfr.add(MainPanel);


        //intfr.getContentPane().add(MainPanel);
        //intfr.setSize(600,400);
        //intfr.setVisible(true);
        //intfr.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    }
class MyTableModel extends AbstractTableModel 
    {
            String [] col={"Occasion Name","Occasion type","Due Date","Time", "Assigned To"};
        Object [][] row={};
            public int getColumnCount() 
        {
                return col.length;
            }
            public int getRowCount() 
        {
                    return row.length;
            }
            public String getColumnName(int cols) 
        {
                return col[cols];
            }
            public Object getValueAt(int rows, int cols) 
        {
                    return row[rows][cols];
            }

            public boolean isCellEditable(int rows, int cols) 


        {
            if(cols > 5)
            {
                        return false;
                    } 
            else 
            {
                        return true;
                    }
            }
            public Class getColumnClass(int c) 
            {
                        return getValueAt(0, c).getClass();
                }
            public void setValueAt(Object value, int rows, int cols) 
        {
                    row[rows][cols] = value;
                    fireTableCellUpdated(rows, cols);
            }        
    }
class MyTableModel4 extends AbstractTableModel 
    {
            String [] col={"Occasion Name","Company Name","Expense Category","Payment
Type","Amount", "Due Date", "Invoice No.", "Paid", "Date of Payment", "Payment Method"};
        Object [][] row={};
            public int getColumnCount() 
        {
                return col.length;
            }
            public int getRowCount() 
        {
                    return row.length;
            }
            public String getColumnName(int cols) 
        {
                return col[cols];
            }
            public Object getValueAt(int rows, int cols) 
        {
                    return row[rows][cols];
            }

            public boolean isCellEditable(int rows, int cols) 


        {
            if(cols > 4)
            {
                        return false;
                    }
            else    
            {
                        return true;
                    }
            }
            public Class getColumnClass(int c) 
            {
                        return getValueAt(0, c).getClass();
                }
            public void setValueAt(Object value, int rows, int cols) 
        {
                    row[rows][cols] = value;
                    fireTableCellUpdated(rows, cols);
            }        
    }
    /*public static void main(String args[])
    {
        new SouthPanel();
    }*/
}
Inline Attachment Follows: tmult.java
class table
{
        void mult( int ivalue)
    {
                for( int i=1;i<10;i++)
                System.out.println(ivalue +"*"+ icounter +"="+ + ivalue*icounter);

    }
}

class tmult
{
        public static void main(String arg[]);
    {
        table t;
        t= new table();
        t.mult(2);
    }
}

You might also like