A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Using Constants
Centering Text Label
Java Board Game
Can't get label to center horizontally.
type mismatch in swing is it??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013