PreferencesHandler (Java SE 26 & JDK 26)
Description: declaration: module: java.desktop, package: java.awt.desktop, interface: PreferencesHandler
Keywords: java.awt.desktop.PreferencesHandler interface

# Interface PreferencesHandler

public interface PreferencesHandler
An implementor is notified when the app is asked to show its preferences UI.

Since:
  9
See Also:
  - `Desktop.setPreferencesHandler(PreferencesHandler)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `handlePreferences(PreferencesEvent e)`
  Called when the app is asked to show its preferences UI.

- ## Method Details

  - ### handlePreferences

    void handlePreferences(PreferencesEvent e)
    Called when the app is asked to show its preferences UI.
    Parameters:
      `e` - the request to show preferences