Where can I find the source code for javax.swing.BorderLayout
class, please?
A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center. Each region may contain no more than one component, and is identified by a corresponding constant: NORTH , SOUTH , EAST , WEST , and CENTER .
BorderLayout is the default layout for the window objects such as JFrame, JWindow, JDialog, JInternalFrame etc. BorderLayout arranges the components in the five regions. Four sides are referred to as north, south, east, and west. The middle part is called the center.
The BorderLayout is used to arrange the components in five regions: north, south, east, west, and center. Each region (area) may contain one component only. It is the default layout of a frame or window.
Provides interfaces that enable the development of input methods that can be used with any Java runtime environment. javax.swing. Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
In the JDK that you dowloaded, in the src.zip file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With