Monday, February 6, 2012

what are the instance and class variables for as tudent class programed in Java ?

April 17, 2010 by  
Filed under class registration

I am working on a building the student registration program used by the register office. the program needs to keep track of students who are registered for the given semester. for each registered student the program needs to maintain student’s name address, ph number, number’s of classes, the student is register , and the [...]

Help me with this Java?

March 28, 2010 by  
Filed under class registration system

import java.awt.Component;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class OkTu
{
public static void main (String[] args)
{
String reply = “”;
int code = 0;
Scanner input = new Scanner(System.in);
while(true){
//enter luckydraw number
String userDraw = JOptionPane.showInputDialog(“Enter Your Lucky Number : “);
//enter user name
String userNameString = JOptionPane.showInputDialog(“Enter Your Name : “);
//enter user id
String userId = JOptionPane.showInputDialog(“Enter Your I/D No : “);
//enter user phone no
String userPhone [...]

Problem while executing java Applet?

March 4, 2010 by  
Filed under class registration system

This is my Program..
The error is “Start:Applet not Initialized” when i run the applet.
import java.io.*;
import javax.swing.*;
import java.applet.*;
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.event.*;
import java.awt.*;
import java.sql.*;
public class RecruiterRegis extends Applet implements ActionListener
{
JTextField txtId,txtName,txtContNo,txtMobNo,txtEmail,txtContPers,txtBase;
JLabel lblId,lblName,lblAdd,lblContNo,lblMobNo,lblEmail,lblContPers,lblBase;
JTextArea txtAdd;
JButton cmdSave,cmdCancel;
GridLayout grid = new GridLayout(9,2);
Connection con=null;
public void init()
{
try
{
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);
con = DriverManager.getConnection(“jdbc:odbc:crssys”);
}
catch(ClassNotFoundException e)
{
System.out.println(e.toString());
System.out.println(“Error Raised 4547″);
}
catch(SQLException e)
{
System.out.println(e.toString());
System.out.println(“Error [...]

Powered by Yahoo! Answers