The Java method javax.swing.Graphics2D.fillRect is used to draw a filled rectangle on a specified Java Swing component. This method takes in parameters specifying the x and y coordinates of the rectangle's top-left corner, as well as its width and height. The rectangle is drawn using the current color of the graphics context. This method is commonly used to create filled shapes or backgrounds in graphical user interfaces.
Java Graphics2D.fillRect - 30 examples found. These are the top rated real world Java examples of javax.swing.Graphics2D.fillRect extracted from open source projects. You can rate examples to help us improve the quality of examples.