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

[Button] support for smaller buttons relative to the size of the icon

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 8u60
    • javafx
    • x86
    • windows_8

      A DESCRIPTION OF THE REQUEST :
      Under both the old Caspian and new Modena stylesheets buttons have disproportionate sizes relative to their icon. Under both stylesheets the buttons appear to have a much wider aspect ratio than would be expected for a normal button.
      http://blog.idrsolutions.com/wp-content/uploads/2014/03/toolbar.png

      This makes JavaFX stand out in a bad way compared to other frameworks. Swing's own default look and feel had more appropriately sized buttons for toolbars.
      http://www.java2s.com/Code/JavaImages/ToolbarDemo.PNG

      JUSTIFICATION :
      Most applications and UI frameworks have buttons that are proportional to the size of their icon.
      Windows Forms:
      http://visualcsharptutorials.com/images/windows-forms/toolbars-1016.jpg
      GTK:
      http://zetcode.com/img/gui/sharpgtk/toolbar.png
      Qt/Mac:
      http://image.slidesharecdn.com/dd09makeqtappnative-091201053102-phpapp01/95/how-to-make-your-qt-app-look-native-70-728.jpg?cb=1261473165

      Further the HTMLEditorKit under both stylesheets has button sizes that are appropriate to the aspect ratio of their icons.
      https://docs.oracle.com/javase/8/javafx/user-interface-tutorial/img/editor-initial.png

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would like to see buttons have a more common size that is relative to the aspect ratio of their icons.
      ACTUAL -
      The buttons are really wide and not appropriate for toolbars.

      CUSTOMER SUBMITTED WORKAROUND :
      The current work around is to override the default stylesheet and change the padding for buttons. But the issue at hand is changing/improving the default common style of JavaFX applications.

            jgiles Jonathan Giles
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: