FlatTextComponentsTest: fixed compiler warnings (for previous commit)

This commit is contained in:
Karl Tauber
2021-04-07 10:34:11 +02:00
parent 8fcce349d5
commit a4d70d8095
2 changed files with 8 additions and 2 deletions

View File

@@ -76,8 +76,8 @@ public class FlatTextComponentsTest
JSpinner spinner1 = new JSpinner(); JSpinner spinner1 = new JSpinner();
JSpinner spinner2 = new JSpinner(); JSpinner spinner2 = new JSpinner();
JSpinner spinner3 = new JSpinner(); JSpinner spinner3 = new JSpinner();
JComboBox comboBox2 = new JComboBox(); JComboBox<String> comboBox2 = new JComboBox<>();
JComboBox comboBox4 = new JComboBox(); JComboBox<String> comboBox4 = new JComboBox<>();
JPopupMenu popupMenu1 = new JPopupMenu(); JPopupMenu popupMenu1 = new JPopupMenu();
JMenuItem cutMenuItem = new JMenuItem(); JMenuItem cutMenuItem = new JMenuItem();
JMenuItem copyMenuItem = new JMenuItem(); JMenuItem copyMenuItem = new JMenuItem();

View File

@@ -246,12 +246,18 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox2" name: "comboBox2"
"editable": true "editable": true
auxiliary() {
"JavaCodeGenerator.typeParameters": "String"
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 10,growx,height 40" "value": "cell 1 10,growx,height 40"
} ) } )
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox4" name: "comboBox4"
"editable": true "editable": true
auxiliary() {
"JavaCodeGenerator.typeParameters": "String"
}
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 11,growx,hmax 14" "value": "cell 1 11,growx,hmax 14"
} ) } )