private static void createButtons( JPanel panel, String text, int horizontalAlignment, int verticalAlignment, Insets margin ) {
		JButton button = new JButton( text );
		button.setHorizontalAlignment( horizontalAlignment );
		button.setVerticalAlignment( verticalAlignment );
		if( margin != null )
			button.setMargin( margin );
		panel.add( button, new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0,
			GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 4, 4, 4, 4 ), 0, 0 ) );

		JButton htmlButton = new JButton( "<html>HTML " + text + "</html>" );
		htmlButton.setHorizontalAlignment( horizontalAlignment );
		htmlButton.setVerticalAlignment( verticalAlignment );
		if( margin != null )
			htmlButton.setMargin( margin );
		panel.add( htmlButton, new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0,
			GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 4, 4, 24, 4 ), 0, 0 ) );
	}
https://github.com/openjdk/jdk/pull/8407#issuecomment-1761583430
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/jdk/HtmlButtonTest.java