Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to think about this Graphics problem

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to think about this Graphics problem

    I want help with this Graphics problem. I don't want a solution or code. I want to know how to think about it and how to search java documentation to find, for example, a method that draws a rectangle. So again I don't want the code to do it. I just want to know how to think about it
    assingnment.jpg


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to think about this Graphics problem

    Take a look at the tutorial: Trail: 2D Graphics (The Java™ Tutorials)
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: How to think about this Graphics problem

    Quote Originally Posted by AmrGamal View Post
    I want help with this Graphics problem. I don't want a solution or code. I want to know how to think about it and how to search java documentation to find, for example, a method that draws a rectangle. So again I don't want the code to do it. I just want to know how to think about it
    assingnment.jpg
    You're basically looking at three different elements.
    Learn to make the individual brick.
    Make the bottom row of bricks "n" wide.
    Make each consecutive row "n-1" narrower and centered.

    Chris

Similar Threads

  1. Graphics
    By TheorizedGaming in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 16th, 2013, 08:41 PM
  2. graphics acceleration
    By matiasmorant in forum Java Theory & Questions
    Replies: 2
    Last Post: January 5th, 2012, 07:05 AM
  3. how to use graphics g
    By steel55677 in forum AWT / Java Swing
    Replies: 11
    Last Post: November 21st, 2011, 06:35 PM
  4. Graphics class NullPointerException Initialize Graphics Class??
    By bglueck in forum What's Wrong With My Code?
    Replies: 7
    Last Post: May 13th, 2011, 11:13 PM
  5. Help about Graphics
    By mamech in forum What's Wrong With My Code?
    Replies: 13
    Last Post: September 9th, 2010, 03:20 PM