calender applet

calender applet

here is my code im getting errors in 23,37,49lines like cant find symbols constructor,methods e.tc is it the code for calender beside textfield in a java awt.... import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; /* */

/** An Applet to display a "Cal" calendar component */ public class Cal extends Applet implements ActionListener { int yy, mm, dd; Cal cal; Panel p; TextField yyText, mmText, ddText;

public void init() { setLayout(new BorderLayout());

  Calendar d = new GregorianCalendar();
  yy = d.get(Calendar.YEAR);
  mm = d.get(Calendar.MONTH);
  dd = d.get(Calendar.DAY_OF_MONTH);

  add(cal  = new Cal(yy, mm, dd), BorderLayout.NORTH);
  p = new Panel();
  p.setLayout(new FlowLayout());

  // The action for changing yy or mm draws a new calendar
  p.add(yyText = new TextField(""+yy));
  yyText.addActionListener(this);
  p.add(mmText = new TextField(""+(mm+1)));
  mmText.addActionListener(this);

  // The action for changing the day just highlights that day.
  p.add(ddText = new TextField(""+dd));
  ddText.addActionListener(new ActionListener() {
     public void actionPerformed(ActionEvent e) {
        cal.setDayActive(Integer.parseInt(ddText.getText()));
     }
  });
  add(p, BorderLayout.SOUTH);

}

public void actionPerformed(ActionEvent e) { System.out.println("Cal::ActionPerformed"); yy = Integer.parseInt(yyText.getText()); mm = Integer.parseInt(mmText.getText()); dd = Integer.parseInt(ddText.getText());

  cal.setDate(yy, mm-1, dd);

} }

View Answers

Ads









Related Tutorials/Questions & Answers:
calender applet
calender applet  here is my code im getting errors in 23,37,49lines like cant find symbols constructor,methods e.tc is it the code for calender... java.awt.event.*; import java.util.*; /* */ /** An Applet to display a "Cal
calender control
calender control  plz tell me about calender type control in java
Advertisements
Calender in JSP
Calender in JSP  How can i use calender in my text box in JSP file
Calender in JSP
Calender in JSP  How can i use calender in my text box in JSP file
calender event
calender event  hi, how we can set an alarm in calender through j2me and sending that reminder to another mobile? thanks in advance
Applet
Applet  Write an applet to display a string in an applet. String should be passed as a parameter to an applet
Applet
Applet  how to run an applet on a web browser
Applet
Applet  Give the class hierarchy of an Applet class
applet
applet  Explain different stages in the lifecycle of an applet with figure.   Stages of Applet: Life cycle of an Applet: init(): This method is called to initialized an applet start(): This method is called after
Applet
Applet  Write a ava applet that sets blue color foreground and yellow color background at the start of an applet
Applet
Applet  Explain the start() and stop() methods of applet life cycle.   Start and Start method of Applet Life Cycle Start () method: The start method of an applet is called after the initialization method init
Applet
Applet  Write a short note on applet life cycle
Applet
Applet  I have a java applet that has a button. On clicking the button it should disappear and another applet should appear. How to write this code???? Also in login applet after successful login it should display admin applet
Applet
Applet  Draw the class hierarchy of an Applet class. Also explain how to set background and forground colors in java
applet
applet  what is applet in java   An applet is a small program that can be sent along with a Web page to a user. Java applets can perform... the following link: Applet Tutorials
how to use calender in php
how to use calender in php  how to put calender in php
Applet
Applet  Write a Java applet that drwas a line between 2 points. The co-ordinates of 2 points should be passed as parametrs from html file. The color of the line should be red
calender
applet
applet  applet to open new tab not working.here's my code import java.applet.*; import java.awt.*; import java.net.*; import java.awt.event.*; public class NewURL extends Applet implements ActionListener{ public void init
java awt calender
java awt calender  java awt code for calender to include beside a textfield
ModuleNotFoundError: No module named 'calender_merger'
ModuleNotFoundError: No module named 'calender_merger'  Hi, My... named 'calender_merger' How to remove the ModuleNotFoundError: No module named 'calender_merger' error? Thanks   Hi, In your python
Applet JSP communication - Applet
Applet JSP communication  Hi.. I've an application where i need to get the data from the applet to JSP... How can i do this..?? can anyone explain with a sample code
applet Question
applet Question  Write a java applet to display a circle in a rectangle
applet question
applet question  Write a java applet to display a rectangle inside a circle
applet question
applet question  Write a java applet to display atriangle inside a circle
java applet - Applet
java applet  I want to close applet window which is open by another button of applet program. plz tell me!   Hi Friend, Try... java.awt.event.*; public class CloseWindow extends Applet implements ActionListener
Java Applet
Java Applet   How to add Image in Java Applet? what is getDocumentBase
applet program
applet program  applet to simulates a traffic signal light with short delay between states
want the code for calender in php+htmal page
want the code for calender in php+htmal page   i have to select a calendra for some textbox in an table
applet dought
applet dought  life cycle of an applet is init start and destroy but applets are executed by java enabled browsers like iexpl,so with out an object how these methods of an applet are executed
applet question
applet question  sir please tell me that how can i call an event on clicking on applet window without using any component

Ads