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

The region constants for Synth are not working

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b41
    • CPU:
      generic
    • OS:
      generic

      Description

      The region constants for Synth are not working.
      All the region constants with '_' (underscore) are not working. Like TEXT_FIELD, FILE_CHOOSER, COMBO_BOX.
      If you remove the '_' then they work like TextField, FileChooser, ComboBox.
      I think the API docs need to be changed.
      The location of the API doc is
      http://javaweb.sfbay.sun.com/swing/api

      Steps to reproduce:
      ---------------------
      1) Unzip the attached zip file.
      2) Run the SynthTest.
      3) Change the LAF to synth from the Look and Feel Menu.
      4) Notice that the Text field has a red border and the text selection color is Red.
      5) Close the application and open Test.xml.
      6)Go to line
      <bind style="textfield" type="region" key="TEXTFIELD"/>

      and change it to

      <bind style="textfield" type="region" key="TEXT_FIELD"/>
      7) Now run the SynthTest again.
      8) Notice that the there is no red border and no selection color as the style is not bound to the region.

      ###@###.### 2004-01-08

        Attachments

          Activity

            People

            Assignee:
            moasunw Moa Moa (Inactive)
            Reporter:
            mjoshisunw Mayank Joshi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: