• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

want help

 
Aayush Patel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can Someone tell me how we can increase the thickness or width of line???and can someone tell me is there any special class for creating graphs...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To increase the thickness or width of a line ( without using Graphics2D... I assume you are using the normal AWT Graphics class since this is the applet forum ) is to draw the same line multiple times.

Here is a short program you can call to specify the thickness of a line...


Sorry, I don't know of any classes that ship with the JDK that let you draw graphs directly... but you may be able to find some that other people have written on the 'Net, or use methods of the Graphics class ( or Graphics2D, which looks alot better ( but is part of Java 2, so requires a plug-in to work in a browser ) ) to write your own...

HTH,
-Nate
[This message has been edited by Nathan Pruett (edited April 26, 2001).]
 
Dewang Shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you dont want to draw multiple lines, you can also use fillRect() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic