JavaScript is disabled on your browser.
 
Contains all of the classes for creating user interfaces and for painting
 graphics and images.
 
 
class 
The 
BasicStroke class defines a basic set of rendering
 attributes for the outlines of graphics primitives, which are rendered
 with a 
Graphics2D object that has its Stroke attribute set to
 this 
BasicStroke.
 
 
Returns the current Stroke in the
 Graphics2D context.
 
 
abstract void
Sets the Stroke for the Graphics2D context.
 
 
 
 
 
 
Report a bug or suggest an enhancement Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Copyright  © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.license terms  and the documentation redistribution policy .