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.
posted 5 years ago
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:
thank you Steve
look! it's a bird! it's a plane! It's .... a teeny tiny ad