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.


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

Results 1 to 2 of 2

Thread: Filling a Shape with lines

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Thanked 0 Times in 0 Posts

    Default Filling a Shape with lines

    Is there anyway to fill a shape (Rectangle2D, Ellipse, etc.) with parallel lines (or other line-based texture) which shows what lies beneath the shape (a picture, other shape, etc.)?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,455 Times in 2,406 Posts

    Default Re: Filling a Shape with lines

    Not sure what you are doing. If you draw a shape and then draw something over the top of some of that shape, the part that was not drawn over will be visible.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Filling a 2D array with other arrays.
    By mwebb in forum Object Oriented Programming
    Replies: 4
    Last Post: March 1st, 2012, 05:11 PM
  2. Filling the frame
    By Metadeth in forum AWT / Java Swing
    Replies: 2
    Last Post: July 11th, 2011, 03:28 PM
  3. Filling Arrays
    By av8 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: June 25th, 2011, 11:41 PM
  4. filling an array with strings
    By exose in forum Collections and Generics
    Replies: 3
    Last Post: February 18th, 2011, 09:44 AM
  5. Filling an Array?
    By Bascotie in forum Collections and Generics
    Replies: 5
    Last Post: October 14th, 2009, 06:27 PM