Class JavaCompatibility2

java.lang.Object
com.formdev.flatlaf.ui.JavaCompatibility2

public class JavaCompatibility2 extends Object
Provides Java version compatibility methods.

WARNING: This is private API and may change.

Since:
3.3
  • Field Details

    • getUIMethodInitialized

      private static boolean getUIMethodInitialized
    • getUIMethod

      private static MethodHandle getUIMethod
  • Constructor Details

    • JavaCompatibility2

      public JavaCompatibility2()
  • Method Details

    • getUI

      public static ComponentUI getUI(JComponent c)
      Java 8: getUI() method on various components (e.g. JButton, JList, etc)
      Java 9: javax.swing.JComponent.getUI()
    • getChooserShortcutPanelFiles

      public static File[] getChooserShortcutPanelFiles(FileSystemView fsv)
      Java 8 - 11 on Windows: sun.awt.shell.ShellFolder.get( "fileChooserShortcutPanelFolders" )
      Java 12: javax.swing.filechooser.FileSystemView.getChooserShortcutPanelFiles()
      Since:
      3.4
    • getChooserComboBoxFiles

      public static File[] getChooserComboBoxFiles(FileSystemView fsv)
      Java 8: sun.awt.shell.ShellFolder.get( "fileChooserComboBoxFolders" )
      Java 9: javax.swing.filechooser.FileSystemView.getChooserComboBoxFiles()
      Since:
      3.4