classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Made some components opaque


From: Roman Kennke
Subject: [cp-patches] FYI: Made some components opaque
Date: Fri, 01 Jul 2005 12:17:39 +0200

I noticed that several components that should be opaque (they are in the
JDK), are not flagged as beeing opaque in Classpath. I fixed this with
the attached patch. At the moment this only affects the drawing in that
the opaque flag decides if the ComponentUI draws the components
background or not. I am working on an improved RepaintManager that also
uses the opaque flag to optimize drawing. It would not be necessary to
step back up to the RootPane and draw everything if the opaque property
is correctly respected.

2005-06-30  Roman Kennke  <address@hidden>

        * javax/swing/plaf/basic/BasicMenuBarUI.java
        (installDefaults): Made JMenuBar opaque.
        * javax/swing/plaf/basic/BasicOptionPaneUI.java
        (installDefaults): Made JOptionPane opaque.
        * javax/swing/plaf/basic/BasicPanelUI.java
        (installUI): Also call installDefaults().
        (installDefaults): New method. Made JPanel opaque.
        * javax/swing/plaf/basic/BasicRootPaneUI.java
        (installDefaults): Made JRootPane opaque.
        * javax/swing/plaf/basic/BasicSeparatorUI.java
        (installDefaults): Made JSeparator opaque.
        * javax/swing/plaf/basic/BasicSpinnerUI.java
        (installDefaults): Made JSpinner opaque.
        * javax/swing/plaf/basic/BasicSplitPaneUI.java
        (installDefaults): Made JSplitPane opaque.
        * javax/swing/plaf/basic/BasicTabbedPaneUI.java
        (installDefaults): Made JSplitPane opaque.

/Roman

Attachment: opaque.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]