need help with java

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: need help with java

  1. #1
    Join Date
    Mar 2007

    need help with java

    JavaBeans and Bean Events.

    a) (The Clock source component) Create a JavaBeans component for displaying an analog clock. This bean allows the user to customize a clock through the properties, as shown in Figure 27.11 (Liang, 6th edition). Write a test program that displays four clocks, as shown in Figure 27.12 (Liang, 6th edition).

    b) (Creating ClockWithAlarm from Clock) Create an alarm clock, named ClockWithAlarm, which extends the Clock component built in exercise (a), as shown in Figure 27.13 (Liang, 6th edition). This component contains two new properties, alarmDate and alarmTime.

    alarmDate is a string consisting of year, month, and day, separated by commas. For example, 1998,5,13 represents the year 1998, month 5, and day 13.

    alarmTime is a string consisting of hour, minute, and second, separated by commas. For example, 10,45,2 represents 10 hours, 45 minutes, and 2 seconds. When the clock time matches alarm time, ClockWithAlarm fires an ActionEvent.

    Write a test program that displays the alert message “You have an appointment now” on a dialog box at a specified time (e.g., date: 2004,1,1 and time: 10,30,0).

    i'm using textbook : introduction to java programming by Y.Daniel Liang

  2. #2
    Join Date
    Dec 2005
    and you need help with what? we wont write entire programs for you, so post what you have done and we'll direct you in the right way

Similar Threads

  1. Java book
    By Lou in forum Java
    Replies: 9
    Last Post: 09-19-2007, 05:58 AM
  2. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  3. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  4. Re: VB vs. Visual Age for Java
    By JJ in forum Enterprise
    Replies: 1
    Last Post: 07-06-2000, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center