hi my name is hiroshi.. im new with java programming.. my prof gave us an assignment to make a calendar.. i don't know what to do.. my head going crazy i dont know what is wrong with my code..
please help me T_T your big help is much appreciated..
import java.awt.*;
import java.applet.Applet;
import javax.swing.*;
import java.awt.event.*;
public class ClsCalendar extends Applet implements ActionListener
{
JLabel lblInput= new JLabel("Input year:");
JTextField txtInput= new JTextField(10);
JLabel lbl1= new JLabel("");
//TextField txt1= new JTextField(100);
JButton btnOk=new JButton("OK");
JButton btnClr=new JButton("Clear");
public void init()
{
//setLayout(new GridLayout(28,15));
add(lblInput);
add(txtInput);
add(btnOk);
btnOk.addActionListener(this);
add(btnClr);
btnClr.addActionListener(this);
//setLayout(new FlowLayout());
//add(txt1);
add(lbl1);
//lbl1.setVisible(false);
// txt1.setLayout(new GridLayout(28,15));
//lbl1.setBackground(Color.YELLOW);
//lbl1.setPreferredSize(new Dimension(500,500));
//lbl1.setEditable(false);