Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

creating clock face with current time


  • Please log in to reply

#1
ankush patel

ankush patel

    Member

  • Member
  • PipPipPip
  • 236 posts
hey,
im a novice at programming
for my college class i have to design a clock face with the current time.


It says to Design a class clock and supply a method to draw(graphics2d g2) that draws the clock

i need some help with this and where to begin.


I would greatly appreciate the help

thanks


Ankush
  • 0

Advertisements


#2
Hai Mac

Hai Mac

    Member

  • Member
  • PipPipPip
  • 260 posts
Which language? Anyways, get your maths skills ready, trigonometry will be handy :whistling:
  • 0

#3
ankush patel

ankush patel

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 236 posts
this will be done in java
  • 0

#4
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
If it was C++ Or VB I could have helped you, but Java...no sorry :whistling:

Anyway, a tip: Draw a clock without the hands, then put that as a background, after, draw 2 or 3 seperate hands (minute, second, hour) and code them to move after a certain time...

Can't help you on the code though, don't know java..

try google...it answers all questions
  • 0

#5
ankush patel

ankush patel

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 236 posts
i appreciate the help though

thanks alot!!

ill try google

thanks again
  • 0

#6
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
Your welcome :whistling: Sorry you didn't find what you were looking for
  • 0

#7
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 875 posts
are you still working on your clock face? we won't do your homework, but if you attach your code we can try to answers any questions you have.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP