Replace the this.currentRecord = currentRecord; line with these three lines:Customers oldRecord = this.currentRecord;this.currentRecord = currentRecord;propertyChangeSupport.
this.currentRecord = currentRecord; 行を、次の 3 行と置き換えます。 - NetBeans
In addition, you need code to clear the currentRecord property. また、「currentRecord」プロパティーを消去するコードも必要です。 - NetBeans
Select Form as the binding source and currentRecord countryId as the expression. バインドするソースとして「フォーム」を、式として「currentRecord」「countryId」を選択します。 - NetBeans
Similarly, you will bind the combo box'sselectedItem property to the countryId property of currentRecord. 同様に、コンボボックスの「selectedItem」プロパティーを、currentRecord の countryId プロパティーにバインドします。 - NetBeans
To bind the text fields to properties of the currentRecord bean: テキストフィールドを currentRecord Bean のプロパティーにバインドするには、次の手順に従います。 - NetBeans
You will bind the text property of each text field to the corresponding property of the Customers object represented by currentRecord. 各テキストフィールドの「text」プロパティーを、currentRecord で表される Customers オブジェクトの対応するプロパティーにバインドします。 - NetBeans
In the Add Property dialog, name the property currentRecord,give it the type Customers, select Generate Getter and Setter,and select Generate Property Change Support.
「プロパティーを追加」ダイアログで、プロパティーに currentRecord という名前を付け、型を Customers に設定し、「取得メソッドと設定メソッドの生成」を選択し、「プロパティー変更サポートの生成」を選択します。 - NetBeans
In the Binding Expression drop-down list, expand the currentRecordnode and select the property corresponding to the text field that you are binding.
「式をバインド」ドロップダウンリストで、currentRecord ノードを展開し、バインドするテキストフィールドに対応するプロパティーを選択します。 - NetBeans