java simple program

i need for scool to make a simple java program

i have to diplay a analog/digital wacht/clock and connect it to the system and on the display i have to make icons for adjusting the time and another for the settings of the wacht ex. change the font or color ordimensions

please help me i have a week for this its very important

[358 byte] By [miri_zaimia] at [2007-11-26 22:41:20]
# 1
Alright. Do you have any questions?
CaptainMorgan08a at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 2
Take a look at your jdk demo samples. You'll find a Clock applet(YOUR_JDK_DIR\demo\applets\Clock)
java_2006a at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 3
> Take a look at your jdk demo samples. You'll find a> Clock applet> > (YOUR_JDK_DIR\demo\applets\Clock)I don't expect his/her professor to not know of that demo.
qUesT_foR_knOwLeDgea at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 4

Let me help you with the code. I will start for you.

public class DigitalClock

{

public static void main(String args[])

{

}

}

qUesT_foR_knOwLeDgea at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 5
.where can i fin the *jdk demo samples*
miri_zaimia at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 6
taht would be great man thanks a lot
miri_zaimia at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 7

Download a JDK from Sun web site http://java.sun.com/javase/downloads/index.jsp

then install it and look under the jdk directory.

for example :

http://java.sun.com/javase/downloads/index.jsp

C:\dev\jdk1.4.2_04\demo\applets\Clock for me.

Here some examples:

http://www.javainthebox.net/laboratory/utils/Timer/src/Clock.java

http://www.java2s.com/Code/Java/Swing-Components/AsimpleClock.htm

hth

java_2006a at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 8
Even if the professor knows about the demos bundled with JDK, for me it's more educational to point him there than just past in the code.
goddarda at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...
# 9
thanks a lot man i got it im going home now to try it cose im in an internet caffetthanks a lot to all of you your grat man
miri_zaimia at 2007-7-10 11:56:11 > top of Java-index,Java Essentials,New To Java...