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

Thread: Increase thickness of the line Drawn in java applet

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Increase thickness of the line Drawn in java applet

    Hey!!
    Please help me for this problem.
    Actually i am making a java applet for Paint Application.
    I am not using any Jpanel or any other thing. it is a simple application based on Applet class only.


    So my problem is that i want to increase the thickness of linedrawn on that application, Or increase thickness of border of Rectangle,Oval, etc.
    so is there is any function available to perform this task.


    Actually, my main aim to this is increase the thickness of line drawn according to user preference.

    Thanks in advance for helping me....


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

    Default Re: Increase thickness of the line Drawn in java applet

    Look at the AffineTransform class for ways to draw lines of different thicknesses.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Increase thickness of the line Drawn in java applet

    Thread moved from What's wrong with my code. maz3r, in the future please choose the location of your posts more carefully. It helps you direct your question to the more appropriate audience.

  4. #4

    Default Re: Increase thickness of the line Drawn in java applet

    I have met the same problems. I do not know the reason. And this problem is still here. what shall i do ??

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Increase thickness of the line Drawn in java applet

    Try the same solution given to the OP.
    If that does not work start a thread with your question.

Similar Threads

  1. Increase the barcode width in Java
    By astridcollins787 in forum JavaServer Pages: JSP & JSTL
    Replies: 6
    Last Post: December 7th, 2012, 03:37 AM
  2. JAVA AWT GRAPHICS REMOVE SOMETHING THAT IS DRAWN
    By michael55131 in forum AWT / Java Swing
    Replies: 2
    Last Post: April 18th, 2012, 08:08 AM
  3. Increase Java Memory Allocation
    By aussiemcgr in forum Java Theory & Questions
    Replies: 4
    Last Post: July 15th, 2010, 02:34 PM
  4. How to Read a file line by line using BufferedReader?
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM
  5. How to Read a file line by line using BufferedReader?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 06:32 AM

Tags for this Thread