File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
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.).
I agree. Here's the link:
subject: Using Constants
Can't get label to center horizontally.
type mismatch in swing is it??
Java Board Game
Centering Text Label
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014