タイトルはそれをすべて言います。明らかな理由で NumberFormatException が発生します。私は北ヨーロッパ人なので、小数点記号としてドットの代わりにコンマを使用して JTextFields に double 値を入力したいと考えています。
public void actionPerformed(ActionEvent event2) {
NumberFormat nf = NumberFormat.getInstance(Locale.GERMAN);
double firstW = Double.parseDouble(firstWeight.getText());
double secondW = Double.parseDouble(secondWeight.getText());
double outcome = (firstW - secondW);
nf.setMaximumFractionDigits(2);
JLabel result = new JLabel();
result.setText(nf.format(outcome) +" kg" );
add(result);
setVisible(true);
}