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 intcompareLocales(Locale l1, Locale l2) Compares two locals.static Panelstatic voidProvides easy way to use basic functions of GridBagLayout, without the complications.private static final intstatic Locale[]Get the G7 locale list for demos.static voidProvides easy way to change the spacing around an object in a GridBagLayout.static voidsetText(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.
-