Welcome to the Ranch
Look up the java.awt.Point class. Or java.awt.GridBagConstraints.
Of course, it is usually regarded as poor design to have public fields, unless they are constants. Point and GridBagConstraints do not escape being bad.
Joined: Feb 22, 2013
Steve Luke wrote:The java.awt.Point class (see API) has two public data members, x and y. You can directly manipulate them like this: