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

Web Start: Cannot set default look & feel via JNLP file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.0.1
    • Component/s: deploy
    • Subcomponent:
    • Resolved In Build:
      02
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: ks84122 Date: 10/22/2001


      In any JNLP file, add the following line to a properties section:

      <property name="swing.defaultlaf" value="javax.swing.plaf.metal.MetalLookAndFeel"/>

      (This is for a Mac -- on other platforms just try to force another L&F.)

      The property value will be ignored because Swing is initialized long before the JNLP file is read. We need a way to specify that a property should be defined at Java launch time, not just at JNLP parse time.

      ###@###.### 2001-10-22

      Need to provide a possibility to pass argument string to the java runtime (rather than just initial and max heap size). That way, it
      would be possible to pass "-Dswing.defaultlaf=value" to the java runtime at launch time or to pass any other thing if a need
      for it arises (something like:
      <!ATTLIST j2se jvmargs CDATA #IMPLIED>, parse it in the C code and pass
      the jvmargs to the java runtime).

      The other workaround would be to call UIManager.setLookAndFeel() if swing.defaultlaf property is passed. However,
      this seems to be not a very good solution.

      (Review ID: 134021)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              ksoshals Kirill Soshalskiy (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: