FlatLineBorder: use arc from Label or Panel, if not specified in border (issue #842)

This commit is contained in:
Karl Tauber
2024-06-01 14:48:33 +02:00
parent 238443074c
commit 7ba8274fd4
5 changed files with 24 additions and 6 deletions

View File

@@ -553,7 +553,7 @@ class MoreComponentsPanel
//---- label10 ----
label10.setText("rounded border");
label10.putClientProperty("FlatLaf.style", "border: 2,10,2,10,#135b76,1,999");
label10.putClientProperty("FlatLaf.style", "arc: 999; border: 2,10,2,10,#135b76");
label10.setBackground(new Color(0xb8e4f3));
label10.setForeground(new Color(0x135b76));
add(label10, "cell 1 13 4 1");

View File

@@ -517,7 +517,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JLabel" ) {
name: "label10"
"text": "rounded border"
"$client.FlatLaf.style": "border: 2,10,2,10,#135b76,1,999"
"$client.FlatLaf.style": "arc: 999; border: 2,10,2,10,#135b76"
"background": new java.awt.Color( 184, 228, 243, 255 )
"foreground": new java.awt.Color( 19, 91, 118, 255 )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {