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

[CCJK] Incorrect mnemonic key (0) is displayed on cancel button on messagedialog of JOptionPane

XMLWordPrintable

    • b141
    • generic
    • generic
    • Verified

      In src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_xx.properties for CCJK, for exmaple basic_zh_CN.properties, following messages are not correct.

      OptionPane.cancelButtonText : It has the mnemonic key (0) displayed.

      OptionPane.cancelButtonMnemonic=0 : The mnemonic key of cancel button should not be 0.

      messagedialog of JOptionpane is frequently used by many java programs to display simple message. The incorrect mnemonic on cancel button will be viewd frequently in CCJK.

      Attached is a snapshot of message dialog in zh_CN. The mnemonic key of cancel dialog is displayed as (0).

            mfang Michael Fang (Inactive)
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: