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

Scrollbar policy in JFileChooser is unlike native mercury file dialog

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      x86
    • OS:
      linux_sun

      Description

      JScrollbar policy in JFileChooser is unlike native mercury file dialog policy. In native vertical scrollbars are always present i.e there presence is independent of list item count or size of file dialog whereas in Java implementation scrollbars appears only if they are needed i.e. VERTICAL_SCROLLBAR_AS_NEEDED.

      Steps to Reproduce:
      -------------------
      1) Run SwingSet2 on Mercury with -Dswing.gtkthemefile=<Your .gtkrc File>. Change the Look And Feel to GTK.
      2) Go to FileChooser Demo.
      3) Click on button 'Show Plain JFileChooser' and resize(reduce) it till you get vertical scrollbar, Now increase the size of file dialog by resizing again and notice the vertical scrollbars will disappear.
      4) Now open Gedit.
      5) Click Open and try resizing it by reducing size or increasing size, Scrollbar will never go. It is different than java implementation of the same.

        Attachments

          Activity

            People

            Assignee:
            moasunw Moa Moa (Inactive)
            Reporter:
            mjoshisunw Mayank Joshi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: