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









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  What is the immediate superclass of the Applet class
Applet
Applet  how to run an applet on a web browser
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  Give the class hierarchy of an Applet class
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
how to use calender in php
how to use calender in php  how to put calender in php
Applet
Applet  Draw the class hierarchy of an Applet class. Also explain how to set background and forground colors in java
Calender code
Calender code  how can i add 3 days to current date ? i am using a script from jotform which has a calender field. the system shows the current date, but i want to add 3 days to the current date for the purpose that the client
calender
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
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
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
Calender code
Calender code  hi, this is my script, where do i add your script below to? var Calendar = Class.create(); //------------------------------------------------------------------------------ // Constants
applet - Applet
.  Hi Friend, Try the following code: 1)Create an applet... extends Applet{ public void paint(Graphics g){ g.drawString("Welcome in Java Applet.",40,20); } } 2) Call this applet with html code
java awt calender
java awt calender  java awt code for calender to include beside a textfield
Applet - Applet
Applet  what is the concept of applet? what is different between the applet concept and HTML? what is mean by swing?  Hi friend, Applet Applet is java program that can be embedded into HTML pages. Java applets
Calender Reminders - JSP-Servlet
Calender Reminders  HI All, I need to create calender reminder.I need java coding for that.It must appear like microsoft outlook..Please help me regard this as this is some what urgent for me..Thank you in advance..Waiting
calender devlopment - Java Beginners
calender devlopment  Sir i need help sir. Sir how to develop calender by using JAVA SWING. Here conditions are one textbox and one small button are needed for this application.whenever i click on small button small calender
calender working in struts - Struts
calender working in struts  when i execute the following code ,that is working properly if i convert to struts html tags that code is not working please help me to rectify the problem
calender in struts - Struts
calender in struts  when i execute the following code ,that is working properly if i convert to struts html tags that code is not working please help me to rectify the problem
applet - Applet
*; import java.awt.*; public class CreateTextBox extends Applet implements.../applet/ Thanks
Calender - JSP-Servlet
Calender  hi,i am designing a web portal in that my home page should display a calender. i want a calender to be displayed on my home page as jsp... i want is the calender with events showing the description on click Thanks
calender - JSP-Servlet
calender  i created a calender using java script but when i click the icon of the calendar it popups but when i again click the icon another popup opens without closing the previous one so i need the help to close it when i click
Applet - Applet
Applet   Namaste, I want to create a Menu, the menu name is "Display... java.awt.event.*; public class menu2frame extends Applet implements WindowListener...------------------------"); g.drawString("Demo of Java Applet Window Event Program"); g.drawString("Java
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
Calender - JSP-Servlet
Calender  My answer was not that u posted... A calender should be dispalyed with the current month and every date should be clickable on click at particular date any event in the data base should be checked and display
Calender code ! HELP!!!
Calender code ! HELP!!!  how can i add 3 days to current date ? i am using a script from jotform which has a calender field. the system shows the current date, but i want to add 3 days to the current date for the purpose
applet problem - Applet
applet problem  How can I create a file in client side by a java applet . Surely it will need a signed applet .But how can a signed applet create a file in the client side
Applet codebase
Applet codebase  What is codebase in applet
embedding class in an applet - Applet
embedding class in an applet  I have an applet that has a set... java.awt.event.*; public class tesURL extends Applet implements ActionListener... a remote controller). I have the applet code for the remote controller
Servlet and Applet - Applet
Invoke and run an Applet from Servlet  How can i invoke and run an applet from servlet. Can anyone provide me the sample code
java - Applet
java  what is applet
need popup calender - Date Calendar
need popup calender  Hi, I need a pop up calender code in html, but i guess javascript would be needed for event handling . I need a code which.... The background and foreground color of the pop-calender should be able tochange Thanks
creating hyperlinks in applet - Applet
creating hyperlinks in applet  Dear sir, how can i move from one applet to another applet and how can i use previous applet input data in anotherapplet(just like session tracking) thanks
applet program code - Applet
applet program code  hello sir, i did't get the code for below problem... please help me... 1.An applet program to draw a line graph for y=2x+5.[for suitable values of x & y
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 running but no display - Applet
applet running but no display  Hai, Thanks for the post. I have... from a client, the page appears with a blank applet part (just whitescreen..., it is showing that the "Applet as1 started". Please help me to solve this issue
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
What is Applet? - Applet
What is Applet?  What is Applet?  Hi,Here is a little information about Applet.An applet is a little application. Prior to the World Wide... programming language, an applet is a small program that can be sent along with a Web

Ads