H. Kunci Jawaban 1. Source Code
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates and open the template in the editor.
author Anak Wadung publicclass
Kalkulator extends
javax .
swing .
JFrame {
Creates new form Kalkulator public
Kalkulator {
initComponents ;
}
This method is called from within the constructor to initialize the form.
WARNING: Do NOT modify this code. The content of this method is always
regenerated by the Form Editor. SuppressWarnings
unchecked editor-fold defaultstate=collapsed desc=Generated Code
privatevoid initComponents
{
jPanel1 =
new javax
. swing
. JPanel
;
TBisi =
new javax
. swing
. JTextField
;
jPanel2 =
new javax
. swing
. JPanel
; BTN0
= new
javax .
swing .
JButton ;
BTN1 =
new javax
. swing
. JButton
; BTN2
= new
javax .
swing .
JButton ;
BTN3 =
new javax
. swing
. JButton
; BTN4
= new
javax .
swing .
JButton ;
BTN5 =
new javax
. swing
. JButton
; BTN6
= new
javax .
swing .
JButton ;
BTN7 =
new javax
. swing
. JButton
; BTN8
= new
javax .
swing .
JButton ;
BTN9 =
new javax
. swing
. JButton
;
BTNClear =
new javax
. swing
. JButton
;
jPanel3 =
new javax
. swing
. JPanel
;
BTNplus =
new javax
. swing
. JButton
;
BTNminus =
new javax
. swing
. JButton
;
BTNkali =
new javax
. swing
. JButton
;
BTNbagi =
new javax
. swing
. JButton
;
awaban Code Program
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates and open the template in the editor.
author Anak Wadung publicclass
Kalkulator extends
javax .
swing .
JFrame {
Creates new form Kalkulator public
Kalkulator {
initComponents ;
}
This method is called from within the constructor to initialize the form.
WARNING: Do NOT modify this code. The content of this method is always
regenerated by the Form Editor. SuppressWarnings
unchecked editor-fold defaultstate=collapsed desc=Generated Code
privatevoid initComponents
{
jPanel1 =
new javax
. swing
. JPanel
;
TBisi =
new javax
. swing
. JTextField
;
jPanel2 =
new javax
. swing
. JPanel
; BTN0
= new
javax .
swing .
JButton ;
BTN1 =
new javax
. swing
. JButton
; BTN2
= new
javax .
swing .
JButton ;
BTN3 =
new javax
. swing
. JButton
; BTN4
= new
javax .
swing .
JButton ;
BTN5 =
new javax
. swing
. JButton
; BTN6
= new
javax .
swing .
JButton ;
BTN7 =
new javax
. swing
. JButton
; BTN8
= new
javax .
swing .
JButton ;
BTN9 =
new javax
. swing
. JButton
;
BTNClear =
new javax
. swing
. JButton
;
jPanel3 =
new javax
. swing
. JPanel
;
BTNplus =
new javax
. swing
. JButton
;
BTNminus =
new javax
. swing
. JButton
;
BTNkali =
new javax
. swing
. JButton
;
BTNbagi =
new javax
. swing
. JButton
;
69
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates and open the template in the editor.
author Anak Wadung publicclass
Kalkulator extends
javax .
swing .
JFrame {
Creates new form Kalkulator public
Kalkulator {
initComponents ;
}
This method is called from within the constructor to initialize the form.
WARNING: Do NOT modify this code. The content of this method is always
regenerated by the Form Editor. SuppressWarnings
unchecked editor-fold defaultstate=collapsed desc=Generated Code
privatevoid initComponents
{
jPanel1 =
new javax
. swing
. JPanel
;
TBisi =
new javax
. swing
. JTextField
;
jPanel2 =
new javax
. swing
. JPanel
; BTN0
= new
javax .
swing .
JButton ;
BTN1 =
new javax
. swing
. JButton
; BTN2
= new
javax .
swing .
JButton ;
BTN3 =
new javax
. swing
. JButton
; BTN4
= new
javax .
swing .
JButton ;
BTN5 =
new javax
. swing
. JButton
; BTN6
= new
javax .
swing .
JButton ;
BTN7 =
new javax
. swing
. JButton
; BTN8
= new
javax .
swing .
JButton ;
BTN9 =
new javax
. swing
. JButton
;
BTNClear =
new javax
. swing
. JButton
;
jPanel3 =
new javax
. swing
. JPanel
;
BTNplus =
new javax
. swing
. JButton
;
BTNminus =
new javax
. swing
. JButton
;
BTNkali =
new javax
. swing
. JButton
;
BTNbagi =
new javax
. swing
. JButton
;