Class JavaCompatibility2


  • public class JavaCompatibility2
    extends java.lang.Object
    Provides Java version compatibility methods.

    WARNING: This is private API and may change.

    Since:
    3.3
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File[] getChooserComboBoxFiles​(javax.swing.filechooser.FileSystemView fsv)
      Java 8: sun.awt.shell.ShellFolder.get( "fileChooserComboBoxFolders" )
      Java 9: javax.swing.filechooser.FileSystemView.getChooserComboBoxFiles()
      static java.io.File[] getChooserShortcutPanelFiles​(javax.swing.filechooser.FileSystemView fsv)
      Java 8 - 11 on Windows: sun.awt.shell.ShellFolder.get( "fileChooserShortcutPanelFolders" )
      Java 12: javax.swing.filechooser.FileSystemView.getChooserShortcutPanelFiles()
      static javax.swing.plaf.ComponentUI getUI​(javax.swing.JComponent c)
      Java 8: getUI() method on various components (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • getUIMethodInitialized

        private static boolean getUIMethodInitialized
      • getUIMethod

        private static java.lang.invoke.MethodHandle getUIMethod
    • Constructor Detail

      • JavaCompatibility2

        public JavaCompatibility2()
    • Method Detail

      • getUI

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

        public static java.io.File[] getChooserShortcutPanelFiles​(javax.swing.filechooser.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 java.io.File[] getChooserComboBoxFiles​(javax.swing.filechooser.FileSystemView fsv)
        Java 8: sun.awt.shell.ShellFolder.get( "fileChooserComboBoxFolders" )
        Java 9: javax.swing.filechooser.FileSystemView.getChooserComboBoxFiles()
        Since:
        3.4