Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners calender applet
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


saidarshan alluri
calender applet
0 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners


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);

} }


Advertisement
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 in JSP
Calender in JSP  How can i use calender in my text box in JSP file
Advertisements
calender control
calender control  plz tell me about calender type control in java
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
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
how to use calender in php
how to use calender in php  how to put calender in php
Calender code
Calender code  hi, this is my script, where do i add your script below to? var Calendar = Class.create(); //------------------------------------------------------------------------------ // Constants
java awt calender
java awt calender  java awt code for calender to include beside a textfield
Applet
Applet  Write an applet to display a string in an applet. String should be passed as a parameter to an applet
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
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  how to run an applet on a web browser
applet
applet  What is the immediate superclass of the Applet class
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
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
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  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  Write a short note on applet life cycle
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  Draw the class hierarchy of an Applet class. Also explain how to set background and forground colors in java
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
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 ! 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
Advertisements
 

 

 

DMCA.com