My programme is for java

Posted by Siddharth Pandey on Stack Overflow See other posts from Stack Overflow or by Siddharth Pandey
Published on 2010-05-03T06:53:31Z Indexed on 2010/05/03 6:58 UTC
Read the original article Hit count: 276

Filed under:

I wrote a codding on notepad and i was base on Candidate details i was trying to run the code like for example to say if u r in the school and we need the details for the candidate so all the details like name Id address age dateofbirth and soooo

So my exatlly problem is that i have allready created the code and i have written it on the notepad so when ever i am going the command prompt and giving its path and all the details still it always show some problem like class interfierence or expected iw will paste the codding over here and pls if u can help me correct the coding it will be pleasure thank u.

import java.swing.*;
import javac.awt.*;

public CandidateDetails extends JApplets;
{
    JPanel Panel;

    JLabel LabelStudentID;
    JLabel LabelStudentNames;
    JLabel LabelStudentAddress;
    JLabel LabelStudentAge;
    JLabel LabelStudentDateofBirth;
    JLabel LabelStudentMobile no;
    JLabel LabelStudentCrouse;

    JTextField textStudentID;
    JTextField textStudentNames;
    JTextField textStudentAddress;
    JTextField textStudentAge;
    JTextField textStudentDateofBirth;
    JTextField textStudentMobileNo;
    JTextField textStudentCrouse;
}


public void init();
{
    Label StudentID = new JLabel("Student ID");
    Label StudentNames = new JLabel("Student Names");
    Label StudentAddress = new JLabel("Student Address");
    Label StudentAge = new JLabel("Student Age");
    Label StudentDateofBirth = new JLabel("Student DateofBirth");
    Label StudentMobileNo = new JLabel("Student MobileNo");
    Label StudentCourse = new JLabel("Student Course");

    JTextField text("ID");
    JTextField text("Names");
    JTextField text("Address");
    JTextField text("Age");
    JTextField text("DateofBirth");
    JTextField text("MobileofBirth");
    JTextField text("Course");

}
{


    GridBag layourt.NORTHWEST;
    b1=1;
    b2=2;
    gbc.gridconstraint(label Student ID);
    add.panel(ID);


    GridBag layourt.NORTHWEST;
    b1=1;
    b2=3;
    gbc.gridconstraint(text Student ID);
    add.panel(ID);


    GridBag layourt.NORTHWEST;
    b1=2;
    b2=3;
    gbc.gridconstraint(label Student Names);
    add.panel(Names);


    GridBag layourt.NORTHWEST;
    b1=3;
    b2=4;
    gbc.gridconstraint(text Student Names);
    add.panel(Names);


    GridBag layourt.NORTHWEST;
    b1=3;
    b2=5;
    gbc.gridconstraint(label Student Address);
    add.panel(Address);


    GridBag layourt.NORTHWEST;
    b1=3;
    b2=4;
    gbc.gridconstraint(text Student Address);
    add.panel(Address);


    GridBag layourt.NORTHWEST;
    b1=4;
    b2=5;
    gbc.gridconstraint(label Student DateofBirth);
    add.panel(DateofBirth);


    GridBag layourt.NORTHWEST;
    b1=5;
    b2=6;
    gbc.gridconstraint(text Student DateofBirth);
    add.panel(DateofBirth);


    GridBag layourt.NORTHWEST;
    b1=5;
    b2=4;
    gbc.gridconstraint(label Student MobileNo);
    add.panel(MobileNo);


    GridBag layourt.NORTHWEST;
    b1=5;
    b2=6;
    gbc.gridconstraint(text Student MobileNo);
    add.panel(MobileNo);


    GridBag layourt.NORTHWEST;
    b1=6;
    b2=7;
    gbc.gridconstraint(label Student Course);
    add.panel(Course);


    GridBag layourt.NORTHWEST;
    b1=7;
    b2=8;
    gbc.gridconstraint(text Student Course);
    add.panel(Course);
}

© Stack Overflow or respective owner

Related posts about java