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 4 of 4

Thread: Beginner JAVA help 600x400 pixel three by two primary color square chart.

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Beginner JAVA help 600x400 pixel three by two primary color square chart.

    Hello everyone I am very new to this forum aswell as JAVA programming. My professor sucks he just throws us out and expects us to knw what we need to do but I have to do what the title says and create a 600x400 pixel three by two primary color square chart. So far he has given us this.

    import java.awt.Color;
    public class LineRectPainter extends Picture
    {
    public void vertLine( int x, int y, int ymax, Color color );
    {
    while y <= y max
    {
    }

    Where do I go from here all help will be appreciated.


  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: Beginner JAVA help 600x400 pixel three by two primary color square chart.

    600x400 pixel three by two primary color square chart
    Can you explain what you are looking for? I assume 600x400 is the size of something. The 3x2 part I don't understand.

    What classes and packages are you using? I don't recognize the Picture class.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    antboy250 (March 5th, 2013)

  4. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Beginner JAVA help 600x400 pixel three by two primary color square chart.

    Oo right sorry about that. So basically he wants us to make a 600 by 400 pixel with 6 boxes in it 3 by 2 and each box having a different color the top 3 red green and blue and the bottom 3 being cyan magenta and yellow

  5. #4
    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: Beginner JAVA help 600x400 pixel three by two primary color square chart.

    Where are you having problems? The first step would be to take a piece of paper, draw out the shapes and note the x,y coordinates of the corners of each of the squares.
    Then look at the methods in the Graphics class to see which one(s) could be used to draw and fill the shapes.

    If you are not using the the Java SE packages and classes, I can't recommend what classes and methods to use.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. JAVA MAGIC SQUARE
    By hiimjoey11 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: November 28th, 2012, 12:42 AM
  2. returning color of pixel in loop
    By Vergil333@gmail.com in forum Loops & Control Statements
    Replies: 2
    Last Post: March 6th, 2012, 09:14 AM
  3. Replies: 2
    Last Post: July 23rd, 2011, 03:29 PM
  4. text color changer based on words/ word classification by color
    By knoxy5467 in forum Java Theory & Questions
    Replies: 25
    Last Post: June 15th, 2011, 07:52 AM
  5. Java program Square root
    By Hey in forum Java Theory & Questions
    Replies: 5
    Last Post: August 16th, 2009, 01:14 AM

Tags for this Thread