private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
jTextArea1.setText("");
if(jComboBox1.getSelectedItem().equals("Sepeda Motor")){
     sepedamotor sm=new sepedamotor();
     sm.setNoplat(jTextField1.getText());
     sm.setNomesin(Integer.valueOf(jTextField2.getText()));
     sm.setType(jTextField3.getText());
     jTextArea1.append(String.valueOf(jComboBox1.getSelectedItem())+"\n");
     jTextArea1.append("No Plat : "+sm.getNoplat()+"\n");
     jTextArea1.append("No Mesin : "+sm.getNomesin()+"\n");
     jTextArea1.append("Type : "+sm.getType()+"\n");
     jTextArea1.append("Jumlah Roda : "+sm.getJmlroda()+"\n");
}else{
    mobil m=new mobil();
    m.setNoplat(jTextField1.getText());
     m.setNomesin(Integer.valueOf(jTextField2.getText()));
     m.setType(jTextField3.getText());
     jTextArea1.append(String.valueOf(jComboBox1.getSelectedItem())+"\n");
     jTextArea1.append("No Plat : "+m.getNoplat()+"\n");
     jTextArea1.append("No Mesin : "+m.getNomesin()+"\n");
     jTextArea1.append("Type : "+m.getType()+"\n");
     jTextArea1.append("Jumlah Pintu : "+m.getJmlpintu()+"\n");
     jTextArea1.append("Jumlah Roda : "+m.getJmlroda()+"\n");
}// TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed