Package com.ibm.icu.dev.demo.impl
Class DemoUtility
java.lang.Object
com.ibm.icu.dev.demo.impl.DemoUtility
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareLocales
(Locale l1, Locale l2) Compares two locals.static Panel
static void
Provides easy way to use basic functions of GridBagLayout, without the complications.private static final int
static Locale[]
Get the G7 locale list for demos.static void
Provides easy way to change the spacing around an object in a GridBagLayout.static void
setText
(TextComponent area, String newText)
-
Field Details
-
titleFont
-
labelFont
-
choiceFont
-
editFont
-
creditFont
-
numberFont
-
bgColor
-
choiceColor
-
copyright1
-
localeList
-
-
Constructor Details
-
DemoUtility
public DemoUtility()
-
-
Method Details
-
getCurrentYear
private static final int getCurrentYear() -
fixGrid
Provides easy way to use basic functions of GridBagLayout, without the complications. After building a panel, and inserting all the subcomponents, call this to lay it out in the desired number of columns. -
setInsets
Provides easy way to change the spacing around an object in a GridBagLayout. Call AFTER fixGridBag, passing in the container, the component, and the new insets. -
createSpacer
-
setText
-
compareLocales
Compares two locals. Return value is negative if they're different, and more positive the more fields that match. -
getG7Locales
Get the G7 locale list for demos.
-