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

Title border is not rendered for JCheckBox & JRadioButton

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 19, 20
    • client-libs
    • None

      I have a two JCheckBox & two JRadoioButton on a frame. I am invoking setBorder(BorderFactory.createTitledBorder("Border") on JCheckBox & JRadioButton but TitleBorder is not seen or title is not screen. But I can see Border occupying the same.

      I tested on JDK 8u201/b79 , JDK 19 b36, JDK20 b36 and Border Title is not seen.

      I search in JBS for the same scenario and found https://bugs.openjdk.org/browse/JDK-4083415 which was fixed in JDK 1.2.0

        1. TestJCheckBoxAndJRadioButtonBorder.java
          2 kB
          Lawrence Andrews
        2. Screen Shot 2023-02-17 at 6.17.09 PM.png
          12 kB
          Lawrence Andrews
        3. jdk8.png
          6 kB
          Prasanta Sadhukhan

            honkar Harshitha Onkar
            landrews Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: