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

WinXP: SwingSet2 showing wrong divider size in JSplitPane demo

XMLWordPrintable

    • x86
    • windows_2000, windows_xp

      SwingSet2 using Windows L*F is showing wrong Divider Size in JSplitPane demo

      Steps to reproduce:
      1) Open SwingSet2
      2) Switch to JSplitPane demo
      3) Notice the divider size is shown 10, and this is correct for the current L&F
         i.e Java (with Ocean theme)
      4) Now go to L&F menu and change to Windows, Now the textfield value remains
         unchanged, But splitpane divider size is now 5, To prove this simply hit
         enter so that it makes divider of size 10, and on hitting enter it will double the
         divider size.

      I have attached testcase TestJSplitPane which clearly shows that switching from Java to Windows
      L&F makes splitpane divider size to 5 from 10.

      Possible solutions can be
      1) Called setDividerSize for JSplitPane, as once you call setDividerSize than dividersize don't change
         even after L&F is changed.
      2) On Changing L&F pass some event to demo panel(JSplitPane demo) so that components inside
         that update themselves to show right value.

      ###@###.### 2004-03-24

            shickeysunw Shannon Hickey (Inactive)
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: