Results 1 to 7 of 7
- 01-19-2013, 10:26 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 1
- Rep Power
- 0
- 01-20-2013, 02:22 AM #2
Re: Java Basics: How to draw a house?
Take a piece of grid paper and draw the house. Then figure out the coordinates of the end points of all the lines.
Given those points you should be able to call the drawLine() method to draw the house.If you don't understand my response, don't ignore it, ask a question.
- 01-20-2013, 08:40 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,406
- Blog Entries
- 7
- Rep Power
- 17
Re: Java Basics: How to draw a house?
The Graphics.fillRect( ... ) method can draw an appartment building; no doors and no windows though ... it's more like a prison building, no matter what Color you're using.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-20-2013, 03:07 PM #4
Re: Java Basics: How to draw a house?
I've never seen a shocking pink prison building ...
Why do they call it rush hour when nothing moves? - Robin Williams
- 01-20-2013, 03:41 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,406
- Blog Entries
- 7
- Rep Power
- 17
Re: Java Basics: How to draw a house?
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-20-2013, 04:43 PM #6
Re: Java Basics: How to draw a house?
Light blue and orange ain't neither shocking nor pink ;)
You could use Graphics.drawOval(...) for the politicians' headsWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-20-2013, 05:15 PM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,406
- Blog Entries
- 7
- Rep Power
- 17
Re: Java Basics: How to draw a house?
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
java basics
By rachushetty in forum New To JavaReplies: 6Last Post: 11-13-2012, 12:43 PM -
Drawing a house using Java Applet. Who can help? Even simple house output :(
By churrp in forum Java AppletsReplies: 6Last Post: 08-18-2012, 09:54 AM -
I need help with java basics, a little confused thats all
By bluecognit in forum New To JavaReplies: 1Last Post: 06-29-2012, 12:32 AM -
basics of java
By kmd prasadNaidu in forum New To JavaReplies: 5Last Post: 12-27-2011, 03:42 PM -
Anyone willing to help me with Java basics?
By Rocketz in forum New To JavaReplies: 7Last Post: 02-23-2011, 04:30 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks