Get your CodeRanch badge!*
The moose likes Beginning Java and the fly likes Help me print out a triangle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help me print out a triangle" Watch "Help me print out a triangle" New topic
Author

Help me print out a triangle

Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 7
so here is my code, i have to draw an entire scene but i figure if someone can show me how to add a triangle so that it prints out WITH the code provided, then i will be able to continue from there:

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Rob, welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.javaprogrammingforums.com/object-oriented-programming/5763-help-me-draw-triangle.html

Any more?


luck, db
There are no new questions, but there may be new answers.
Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 7


Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 1


well so far ive had 2 replys to this post on this website and neither have not been helpful... 1 being a private message and then you. does this website receive help or criticism?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Hi Rob, Welcome to the ranch

Darryl's comment is not critism, but a reminder of one of our many rules. You're surely not aware of BeForthrightWhenCrossPostingToOtherSites, so please have a look at it. And don't forget the golden rule of the ranch : BeNice


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Can you tell us what this ACM library is ?
Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 7
Christophe Verré wrote:Can you tell us what this ACM library is ?


this was the link they gave me:

http://jtf.acm.org/acm.jar

i dont know exactly what it is but apparently it helps to animate the code
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

There's an example of triangle drawing here.
Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 7
Christophe Verré wrote:There's an example of triangle drawing here.


thanks for that. what im trying to get is though is that i just want to be able to add code to my existing code and have it print out... weither it be a triangle or circle i dont care, i just need to understand how to add a shape to what i already have
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Sorry Rob, I don't understand your problem. You've already made a body and wheels. So I can't understand why you cannot make other shapes as well. What is blocking you from progressing ?
Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 7
Christophe Verré wrote:Sorry Rob, I don't understand your problem. You've already made a body and wheels. So I can't understand why you cannot make other shapes as well. What is blocking you from progressing ?


i didnt understand how to implement other shapes into that code. i finished it though. its not pretty but it runs:



thanks for the help everyone
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help me print out a triangle
 
Similar Threads
About JButton
AWT and Threads
Moving an object such as an arc.
How do I flip/translate a GObject?
how to implement non rectangular components e.g.Circle