Kiran,
    Your programm, there are 100 of errors but it shows only one error in 
init() method, coz all other errors inside that method.
the error u got it's coz of  this "Public Static Void init()" in here "Public 
Static Void" must start with simple letters like this "public static void 
init()". and all othe errors are same type.  remember JAVA is a case sensitive 
Language.
 
if u want to see inside of a java api use this command. "javap"
for an example 
C:\javap javax.swing.JButton
 
from this u can see what methods and constants inside that JButton class
 
here is ur coding with correction. i don't know for what reason u wrote this 
coding if it is for lerning purpose let me give u a simple and verry helpfull 
advice Start with Simple things then understand the java basics then go for big 
things.
 
if u have any prob send to this group
 
GOOD LUCK FOR UR JAVA FUTURE.
 
cry4rock
 
 
import javax.swing.*;
import java.awt.*;
public class Candidate extends JApplet{
 //Variables for panel
    public JPanel panel;
    //Variable for the Layout
    GridBagLayout g1;
    GridBagConstraints gbc;
    //Variable for the Labels
    JLabel labelconID;
    JLabel labelemplyID;
    JLabel labelintName;
    JLabel labeltestDate;
    JLabel labeltestScore;
    JLabel labelintDate;
    JLabel labelComm;
    JLabel labelRate;
    JLabel labelStatus;
    JLabel labelAccept;
    JLabel labelCancel;
    //Variable for the Data Entry Controls
    JTextField TextfieldconID;
    JTextField TextfieldemplyID;
    JTextField TextfieldintName;
    JTextField TextfieldtestDate;
    JTextField TextfieldtestScore;
    JTextField TextfieldintDate;
    JTextField TextfieldComm;
    JComboBox  ComboRate;
    JComboBox  ComboStatus;
    
    public void init(){
    //Initialise the Layout Variables
      g1=new GridBagLayout();
      gbc=new GridBagConstraints();
      panel=new JPanel();//.getContentPane();
      panel.setLayout(g1);
    //Initialize the labels Controls
      labelconID=new JLabel("Candidate ID");
      labelemplyID=new JLabel("Employee ID");
      labelintName=new JLabel("Interviewer Name");
      labeltestDate=new JLabel("Test Date");
      labeltestScore=new JLabel("Test Score");
      labelintDate=new JLabel("Interview Date");
      labelComm=new JLabel("Comments");
      labelRate=new JLabel("Rating");
      labelStatus=new JLabel("Status");
      labelAccept=new JLabel("Accept");
      labelCancel=new JLabel("Cancel");
    //Initialize the Data Entry Controls
      TextfieldconID=new JTextField(10);
      TextfieldemplyID=new JTextField(10);
      TextfieldintName=new JTextField(20);
      TextfieldtestDate=new JTextField(10);
      TextfieldtestScore=new JTextField(5);
      TextfieldintDate=new JTextField(10);
      TextfieldComm=new JTextField(10);
      JButton Accept=new JButton("Accept");
      JButton Cancel=new JButton("Cancel");
      String Rate[]={"1","2"};
      ComboRate=new JComboBox(Rate);//Rating);
      String Status[]={"YES,NO"};
      ComboStatus=new JComboBox(Status);
    //Add Controls For Candidate Id
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=5;
      g1.setConstraints(labelconID,gbc);
      panel.add(labelconID);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=5;
      g1.setConstraints(TextfieldconID,gbc);
      panel.add(TextfieldconID);
    //Add Controls to Employee Id
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=8;
      g1.setConstraints(labelemplyID,gbc);
      panel.add(labelemplyID);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=8;
      g1.setConstraints(TextfieldemplyID,gbc);
      panel.add(TextfieldemplyID);
    //Add Controls For Interviewer Name
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=11;
      g1.setConstraints(labelintName,gbc);
      panel.add(labelintName);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=11;
      g1.setConstraints(TextfieldintName,gbc);
      panel.add(TextfieldintName);
    //Add Controls For Test Date
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=14;
      g1.setConstraints(labeltestDate,gbc);
      panel.add(labeltestDate);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=14;
      g1.setConstraints(TextfieldtestDate,gbc);
      panel.add(TextfieldtestDate);
    //Add Controls to TestScore
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=17;
      g1.setConstraints(labeltestScore,gbc);
      panel.add(labeltestScore);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=17;
      g1.setConstraints(TextfieldtestScore,gbc);
      panel.add(TextfieldtestScore);
    //Add Controls to Interview Date
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=20;
      g1.setConstraints(labelintDate,gbc);
      panel.add(labelintDate);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=20;
      g1.setConstraints(TextfieldintDate,gbc);
      panel.add(TextfieldintDate);
    //Add Controls to Comments
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=23;
      g1.setConstraints(labelComm,gbc);
      panel.add(labelComm);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=23;
      g1.setConstraints(TextfieldComm,gbc);
      panel.add(TextfieldComm);
    //Add Controls to Rating
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=26;
      g1.setConstraints(labelRate,gbc);
      panel.add(labelRate);
/*      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=26;
      gbc.setConstraints(ComboRate,gbc);
      panel.add(ComboRate);*/
    //Add Controls to Status
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=1;
      gbc.gridy=30;
      g1.setConstraints(labelStatus,gbc);
      panel.add(labelStatus);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=4;
      gbc.gridy=30;
      g1.setConstraints(ComboStatus,gbc);
      panel.add(ComboStatus);
    //Add Buttons Accept,Cancel
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=10;
      gbc.gridy=30;
      g1.setConstraints(Accept,gbc);
      panel.add(Accept);
      gbc.anchor=GridBagConstraints.NORTHWEST;
      gbc.gridx=20;
      gbc.gridy=30;
      g1.setConstraints(Cancel,gbc);
      panel.add(Cancel);
      //JButton.getContentPane().add(Accept);
      //JButton.getContentPane().add(Cancel);
      }
 }


                        
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page. www.yahoo.com

[Non-text portions of this message have been removed]






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~-> 

If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be 
made it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted. 
Yahoo! Groups Links

<*> To reply to this message, go to:
    http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17389
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/java_official/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to