This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes I'm trying to draw something, but it doesn't show up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "I Watch "I New topic
Author

I'm trying to draw something, but it doesn't show up

Andrew McCarthy
Greenhorn

Joined: Jun 20, 2012
Posts: 22
I'm in a java class at my college, and for the lab I had to come up with a code that would make a spirograph (technically an epicycloid). But the code I came up with just opens a blank screen. Can anyone tell me what it needs in order to show the lines? (If you go to Wikipedia and look up epicycloid, there will be an example of what I'm trying to do)

Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19739
    
  10

That entirely depends on how your StdDraw class works. It isn't part of the standard Java API, so you can't really expect people to know about it.
Andrew McCarthy
Greenhorn

Joined: Jun 20, 2012
Posts: 22
Ah, I see. Alright, thank you very much.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19739
    
  10

Not that you shouldn't post a question about it... I meant that you should post the code for that class, or if you don't have that then you should post the specs for the methods, or something like that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'm trying to draw something, but it doesn't show up
 
It's not a secret anymore!