ToggleButton renamed toggle button type "underline" to "tab" (value of client property JButton.buttonType is now tab)

This commit is contained in:
Karl Tauber
2020-01-14 23:59:56 +01:00
parent 74909da110
commit e378576632
8 changed files with 54 additions and 52 deletions

View File

@@ -344,14 +344,14 @@ public class FlatComponentsTest
add(toggleButton4, "cell 4 2");
//---- toggleButton5 ----
toggleButton5.setText("underline");
toggleButton5.putClientProperty("JButton.buttonType", "underline");
toggleButton5.setText("tab");
toggleButton5.putClientProperty("JButton.buttonType", "tab");
toggleButton5.setSelected(true);
add(toggleButton5, "cell 5 2");
//---- toggleButton8 ----
toggleButton8.setText("underline");
toggleButton8.putClientProperty("JButton.buttonType", "underline");
toggleButton8.setText("tab");
toggleButton8.putClientProperty("JButton.buttonType", "tab");
toggleButton8.setEnabled(false);
toggleButton8.setSelected(true);
add(toggleButton8, "cell 5 2");

View File

@@ -171,16 +171,16 @@ new FormModel {
} )
add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton5"
"text": "underline"
"$client.JButton.buttonType": "underline"
"text": "tab"
"$client.JButton.buttonType": "tab"
"selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 2"
} )
add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton8"
"text": "underline"
"$client.JButton.buttonType": "underline"
"text": "tab"
"$client.JButton.buttonType": "tab"
"enabled": false
"selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {