Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336947

BasicSplitPaneDivider:oneTouchExpandableChanged() should mention that implementation depends on SplitPane.supportsOneTouchButtons property

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 24
    • client-libs
    • None
    • behavioral
    • minimal
    • Only javadoc clarification, no implementation change..
    • Java API
    • SE

      Summary

      BasicSplitPaneDivider:oneTouchExpandableChanged specification should mention that it creates left/right arrow buttons only for a Swing Look & Feel which supports the SplitPane.supportsOneTouchButtons property

      Problem

      BasicSplitPaneDivider:oneTouchExpandableChanged does not mention about the support needed for SplitPane.supportsOneTouchButtons property

      Solution

      BasicSplitPaneDivider:oneTouchExpandableChanged javadoc clarified to mention the function supports left/right buttons only if the Look and Feel supports the SplitPane.supportsOneTouchButtons

      Specification

      javax.swing.plaf.basic.BasicSplitPaneDivider

         /**
            * Messaged when the oneTouchExpandable value of the JSplitPane the
      -     * divider is contained in changes. Will create the
      +     * divider is contained in changes.
      +     * If a particular L&F supports this Swing 
      +     * "SplitPane.supportsOneTouchButtons" property
      +     * it will create the
            * <code>leftButton</code> and <code>rightButton</code> if they are null
            * and corresponding JSplitPane supports oneTouchExpandable property.
            * Invalidates the corresponding JSplitPane as well.
            */
           protected void oneTouchExpandableChanged() {

            psadhukhan Prasanta Sadhukhan
            dbessono Dmitry Bessonov
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: