Class DemoUtility

java.lang.Object
com.ibm.icu.dev.demo.impl.DemoUtility

public class DemoUtility extends Object
  • Field Details

    • titleFont

      public static final Font titleFont
    • labelFont

      public static final Font labelFont
    • choiceFont

      public static final Font choiceFont
    • editFont

      public static final Font editFont
    • creditFont

      public static final Font creditFont
    • numberFont

      public static final Font numberFont
    • bgColor

      public static final Color bgColor
    • choiceColor

      public static final Color choiceColor
    • copyright1

      public static final String copyright1
    • localeList

      private static Locale[] localeList
  • Constructor Details

    • DemoUtility

      public DemoUtility()
  • Method Details

    • getCurrentYear

      private static final int getCurrentYear()
    • fixGrid

      public static void fixGrid(Container cont, int columns)
      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

      public static void setInsets(Container cont, Component comp, Insets insets)
      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

      public static Panel createSpacer()
    • setText

      public static void setText(TextComponent area, String newText)
    • compareLocales

      public static int compareLocales(Locale l1, Locale l2)
      Compares two locals. Return value is negative if they're different, and more positive the more fields that match.
    • getG7Locales

      public static Locale[] getG7Locales()
      Get the G7 locale list for demos.