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

Thread: WHAT IS WRONG WITH MY CODE

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

    Default WHAT IS WRONG WITH MY CODE

     public static void drawLetter(DrawingGrid grid, char letter, Color color) {
    	public static void	drawSideBar(DrawingGrid grid, Color Color) {
    		for (int row=0; row < grid.getScale(); row++){
    			grid.setColor(row, 0, Color);
    			grid.setColor(row, 1, Color);
    			grid.setColor(row, 2, Color);
    		}
    		}
     
    		public static void drawLowerBar(DrawingGrid grid, Color Color) {
    			int endspace=grid.getScale()-grid.getScale()/4;
    			for (int col=0; col < endspace; col++ ) {
    				grid.setColor(grid.getScale()-1, col, Color);
    				grid.setColor(grid.getScale()-2, col, Color);
    				grid.setColor(grid.getScale()-3, col, Color);
    		}
    		}
     
    		public static void drawL(DrawingGrid grid, Color theColor) {
    			drawSideBar(grid, theColor);
    			drawLowerBar(grid, theColor);
    		}
     
     
     
     
     
     
    	}
     
    }


  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: WHAT IS WRONG WITH MY CODE

    Do you have a question?

    Please edit your post and wrap your code with
    [code=java]
    <YOUR CODE HERE>
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. what is wrong with my code? please help
    By black.angel in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 13th, 2012, 02:34 PM
  2. What is wrong with this code?
    By dannyboi in forum What's Wrong With My Code?
    Replies: 7
    Last Post: July 24th, 2012, 12:31 AM
  3. What is wrong with my code?
    By dannyboi in forum What's Wrong With My Code?
    Replies: 5
    Last Post: July 23rd, 2012, 02:40 PM
  4. What is wrong with my code?
    By unleashed-my-freedom in forum What's Wrong With My Code?
    Replies: 5
    Last Post: July 3rd, 2012, 12:41 AM
  5. what is wrong with my code? need help
    By balmung123 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 1st, 2012, 04:12 AM