Components : Label TextField Button Panel First, you Should create project like the example image on top, and then give any components a variable name if you haven’t trouble soon in the code. code : *place the code into button action or right-click on button “Hitung”  events>action     private void btnhitungActionPerformed(java.awt.event.ActionEvent evt) {   […]