Wrox Programmer Forums
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 26th, 2003, 11:38 AM
Authorized User
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default drawLine()

    How can you change the thickness of a line ? What method would you need to use ?

Old June 28th, 2003, 08:16 AM
Registered User
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


I think you could use the drawLine() method to either increase or decrease the thickness of your line. Just reduce the values of the arguments in the method.

I would use something like this

g.drawLine(50,75,200,25) reduce to (50,74,200,24).

I hope this helps. Please let me know if you have any more problems.
you can email me: onyxtic at hotmail dot com

Happy programming.

Evans Anyokwu

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.