JDK-8289531 : The bullet point icon from JRadioButton is not painted well on 125 scale factor
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 11,17,18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2022-06-29
  • Updated: 2022-06-30
  • Resolved: 2022-06-30
Related Reports
Duplicate :  
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10; OpenJDK-11.0.2; 125 scaling factor

A DESCRIPTION OF THE PROBLEM :
I have a 2k monitor with a 125 scale factor on Windows 10. The bullet point icon that is painted in the centre when JRadioButton is selected is not painted perfectly round.

I filled in the "Source code" field with a sample

This bug is related with this one: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8276070


---------- BEGIN SOURCE ----------
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.UIManager;

public class RadioButtonExample {
	RadioButtonExample() {
		JFrame f = new JFrame("JRadioButton Example");
		JRadioButton rb1 = new JRadioButton("A");
		JRadioButton rb2 = new JRadioButton("B", true);

		JPanel panel = new JPanel();
		panel.setLayout(new GridBagLayout());
		f.add(panel);

		GridBagConstraints gbc = new GridBagConstraints();
		gbc.gridx = 0;
		gbc.gridy = 0;
		panel.add(rb1, gbc);

		gbc.gridy++;
		panel.add(rb2, gbc);

		f.setSize(400, 400);
		f.pack();
		f.setLayout(null);
		f.setVisible(true);
	}

	public static void main(String args[]) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
			e.printStackTrace();
		}
		new RadioButtonExample();
	}
}
---------- END SOURCE ----------

FREQUENCY : always



Comments
With similar use-case, 2k monitor with a 125 scale factor on Windows 10, with other swing component Duplicate of of JDK-8276070
30-06-2022