// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@

package example;

import javax.swing.*;

public final class AuxiliaryWindowsLookAndFeel extends LookAndFeel {
  @Override public String getName() {
    return "AuxiliaryWindows";
  }

  @Override public String getID() {
    return "Not well known";
  }

  @Override public String getDescription() {
    return "Auxiliary Windows Look and Feel";
  }

  @Override public boolean isSupportedLookAndFeel() {
    return true;
  }

  @Override public boolean isNativeLookAndFeel() {
    return false;
  }

  @Override public UIDefaults getDefaults() {
    UIDefaults table = new UIDefaults() {
      @Override protected void getUIError(String msg) {
        /* not needed */
      }
    };
    // String packageName = "example.AuxiliaryWindows";
    Object[] uiDefaults = {
        "ComboBoxUI", "example.AuxiliaryWindowsComboBoxUI"
    };
    table.putDefaults(uiDefaults);
    return table;
  }
}
