Class ProxyMenuItem

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

public class ProxyMenuItem extends JMenuItem
Menu Item for opening a proxy-configuration dialog box. The menu item should be created before an application needs to use a proxy when this menu item is going to be used, unless org.bzdev.swing.proxyconf.ProxyComponent.setProxies is called. Otherwise, the preference database will not be read before a network connection is attempted.
See Also:
  • Constructor Details

    • ProxyMenuItem

      public ProxyMenuItem(String label, Frame frame, String title)
      Constructor.
      Parameters:
      label - the label of the menu item
      frame - the frame that owns the proxy dialog for this menu item
      title - the dialog's title
    • ProxyMenuItem

      public ProxyMenuItem(String bundleName, String labelKey, Frame frame, String titleKey)
      Constructor specifying a resource bundle. For the current locale, the keys labelKey and titleKey will be used to look up the label and title respectively, using the resource bundle.
      Parameters:
      bundleName - the name of a resource bundle
      labelKey - the key for the label of the menu item
      frame - the frame that owns the proxy dialog for this menu item
      titleKey - the key for the dialog's title
    • ProxyMenuItem

      public ProxyMenuItem(Locale locale, String bundleName, String labelKey, Frame frame, String titleKey)
      Constructor specifying a resource bundle and locale. For the specified locale, the keys labelKey and titleKey will be used to look up the label and title respectively, using the resource bundle.
      Parameters:
      locale - the locale
      bundleName - the name of a resource bundle
      labelKey - the key for the label of the menu item
      frame - the frame that owns the proxy dialog for this menu item
      titleKey - the key for the dialog's title
  • Method Details

    • setLocale

      public void setLocale(Locale locale)
      Set the locale.
      Overrides:
      setLocale in class Component
      Parameters:
      locale - the locale