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

Custom LookandFeel classes cannot be loaded from a custom classloader using UIMa

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs



      Name: cl74495 Date: 10/11/2000


      The method setLookandFeel() in javax.swing.UIManager has two versions,
      one which takes a string specifying the name of the LaF class to load
      and one accepts the already loaded LaF class.

      The method that accepts a string then calls javax.swing.SwingUtilities.loadSystemClass()
      to load the specified class. This will bypass any custom classloaders
      that are in use. What this means is that custom look and feel classes
      must be added to the VM's classpath before the application is started,
      they cannot be made available via a custom classloader after the VM
      has started.

      This is similar to bug #4203151 and the same solution should work.
      (Review ID: 110667)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: