A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 15, 2004
Oct 22, 2004 08:08:00
I'm looking for some help with the use of constants. For example, in the following statement we are setting the horizontal text position of a
object to CENTER.
Is "JLabel.CENTER" a method call, or simply a way to reference the CENTER constant of the
Joined: Oct 20, 2004
Oct 22, 2004 08:17:00
If it was a method call then it would have parenthesis (). But I dont see that , so CENTER is a constant.
inherits this constant from the javax.swing.SwingConstants class.
public static final int CENTER
The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).
rocket mass heater
subject: Using Constants
Java Board Game
Can't get label to center horizontally.
type mismatch in swing is it??
Centering Text Label
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015