Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [albireo-dev] AwtEnvironment vs. LookAndFeelHandler

Bruno Haible wrote:

I propose to

  - Move the font propagation methods from AwtEnvironment to LookAndFeelHandler
    (but they will continue to be _invoked_ from AwtEnvironment),

  - Copy the setComponentForeground, setComponentBackground methods from
    SwingControl to LookAndFeelHandler, and change the implementation of
    these methods in SwingControl so that they reference the LookAndFeelHandler.
    This way, the user can customize it either globally (by customizing the
    LookAndFeelHandler) or locally (in the SwingControl subclass).

Does that sound okay?


Sounds fine to me. The font/color code has some dependencies on a Display instance. Will there now be one LookAndFeelHandler per Display (like AwtEnvironment)? Or will a display instance be passed in as a parameter, as necessary?



Back to the top