Laman
- JENIS PERANGKAT LUNAK
- MITOS PERANGKAT LUNAK
- PEMBAHASAN
- ELISITASI KEBUTUHAN
- SPESIFIKASI
- VORD
- SEKENARIO
- USECASE DIAGRAM
- CLASS DIAGRAM
- ACTIVITY DIAGRAM
- SQUENCE DIAGRAM
- STATECHART DIAGRAM
- COLLABORATION DIAGRAM
- COMPONENT DIAGRAM
- DEPLOYMENT DIAGRAM
- FINAL PROJECT 1
- FINAL PROJECT 2
- FINAL PROJECT 3
- FINAL PROJECT 4
- FINAL PROJECT 5
- MY TEAM
FINAL PROJECT 3
Source code
package AP;
import javax.swing.JOptionPane;
/**
*
* @author Rizal Y.K
*/
public class h3 extends javax.swing.JFrame {
public h3() {
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
panelGambarHL1 = new panelGambar.panelGambarHL();
km = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
mm1 = new javax.swing.JLabel();
mm2 = new javax.swing.JLabel();
mm3 = new javax.swing.JLabel();
mm4 = new javax.swing.JLabel();
mm5 = new javax.swing.JLabel();
h1 = new javax.swing.JLabel();
h2 = new javax.swing.JLabel();
h3 = new javax.swing.JLabel();
h4 = new javax.swing.JLabel();
h5 = new javax.swing.JLabel();
jml = new javax.swing.JTextField();
m1 = new javax.swing.JCheckBox();
m2 = new javax.swing.JCheckBox();
m3 = new javax.swing.JCheckBox();
m4 = new javax.swing.JCheckBox();
m5 = new javax.swing.JCheckBox();
jml1 = new javax.swing.JTextField();
jml2 = new javax.swing.JTextField();
jml3 = new javax.swing.JTextField();
jml4 = new javax.swing.JTextField();
total = new javax.swing.JButton();
tharga = new javax.swing.JTextField();
psn = new javax.swing.JButton();
hps = new javax.swing.JButton();
setTitle("TIF Resto - page 3");
setAlwaysOnTop(true);
setMinimumSize(new java.awt.Dimension(640, 480));
km.setText("KEMBALI");
km.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
km.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
km.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
kmActionPerformed(evt);
}
});
jLabel2.setFont(new java.awt.Font("Coneria Script Demo", 0, 36)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 0, 0));
jLabel2.setText("Code");
jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jLabel2.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
mm1.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
mm1.setForeground(new java.awt.Color(255, 0, 0));
mm1.setText("Mie Goreng Jawa");
mm1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
mm1.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
mm2.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
mm2.setForeground(new java.awt.Color(255, 0, 0));
mm2.setText("Nasi Goreng Jawa");
mm2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
mm2.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
mm3.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
mm3.setForeground(new java.awt.Color(255, 0, 0));
mm3.setText("Cumi Goreng Asam Manis");
mm3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
mm3.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
mm4.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
mm4.setForeground(new java.awt.Color(255, 0, 0));
mm4.setText("Gurami Asam Manis");
mm4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
mm4.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
mm5.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
mm5.setForeground(new java.awt.Color(255, 0, 0));
mm5.setText("Jamur Goreng Pedas");
mm5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
mm5.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
h1.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
h1.setForeground(new java.awt.Color(255, 0, 0));
h1.setText("Rp 10.000");
h1.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
h1.setDebugGraphicsOptions(javax.swing.DebugGraphics.FLASH_OPTION);
h1.setFocusCycleRoot(true);
h2.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
h2.setForeground(new java.awt.Color(255, 0, 0));
h2.setText("Rp 10.000");
h2.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
h2.setDebugGraphicsOptions(javax.swing.DebugGraphics.FLASH_OPTION);
h2.setFocusCycleRoot(true);
h3.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
h3.setForeground(new java.awt.Color(255, 0, 0));
h3.setText("Rp 15.000");
h3.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
h3.setDebugGraphicsOptions(javax.swing.DebugGraphics.FLASH_OPTION);
h3.setFocusCycleRoot(true);
h4.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
h4.setForeground(new java.awt.Color(255, 0, 0));
h4.setText("Rp 25.000");
h4.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
h4.setDebugGraphicsOptions(javax.swing.DebugGraphics.FLASH_OPTION);
h4.setFocusCycleRoot(true);
h5.setFont(new java.awt.Font("David", 0, 18)); // NOI18N
h5.setForeground(new java.awt.Color(255, 0, 0));
h5.setText("Rp 12.000");
h5.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
h5.setDebugGraphicsOptions(javax.swing.DebugGraphics.FLASH_OPTION);
h5.setFocusCycleRoot(true);
jml.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jml.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jml.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jmlActionPerformed(evt);
}
});
m1.setText("m1");
m1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
m1.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
m1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m1ActionPerformed(evt);
}
});
m2.setText("m2");
m2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
m2.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
m2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m2ActionPerformed(evt);
}
});
m3.setText("m3");
m3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
m3.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
m3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m3ActionPerformed(evt);
}
});
m4.setText("m4");
m4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
m4.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
m4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m4ActionPerformed(evt);
}
});
m5.setText("m5");
m5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
m5.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
m5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m5ActionPerformed(evt);
}
});
jml1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jml1.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jml1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jml1ActionPerformed(evt);
}
});
jml2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jml2.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jml2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jml2ActionPerformed(evt);
}
});
jml3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jml3.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jml3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jml3ActionPerformed(evt);
}
});
jml4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jml4.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
jml4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jml4ActionPerformed(evt);
}
});
total.setText("TOTAL");
total.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
total.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
total.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
totalActionPerformed(evt);
}
});
tharga.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
tharga.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
tharga.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
thargaActionPerformed(evt);
}
});
psn.setText("PESAN");
psn.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
psn.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
psn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
psnActionPerformed(evt);
}
});
hps.setText("HAPUS");
hps.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
hps.setDebugGraphicsOptions(javax.swing.DebugGraphics.BUFFERED_OPTION);
hps.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hpsActionPerformed(evt);
}
});
javax.swing.GroupLayout panelGambarHL1Layout = new javax.swing.GroupLayout(panelGambarHL1);
panelGambarHL1.setLayout(panelGambarHL1Layout);
panelGambarHL1Layout.setHorizontalGroup(
panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addComponent(km)
.addGap(200, 200, 200)
.addComponent(hps)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(psn))
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(m1)
.addComponent(m2)
.addComponent(m3)
.addComponent(m4)
.addComponent(m5))
.addGap(27, 27, 27)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mm1)
.addComponent(mm2)
.addComponent(mm3)
.addComponent(mm4)
.addComponent(mm5))
.addGap(26, 26, 26)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(h5)
.addComponent(h3)
.addComponent(h2)
.addComponent(h1)
.addComponent(h4)
.addComponent(total, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(34, 34, 34)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jml4, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jml2, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jml1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jml, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jml3, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tharga, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel2))
.addGap(0, 34, Short.MAX_VALUE)))
.addContainerGap())
);
panelGambarHL1Layout.setVerticalGroup(
panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGambarHL1Layout.createSequentialGroup()
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(31, 31, 31)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(m1)
.addComponent(mm1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(m2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(m3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(m4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(m5))
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addComponent(h1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mm2)
.addComponent(h2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mm3)
.addComponent(h3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mm4)
.addComponent(h4))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mm5)
.addComponent(h5)))))
.addGroup(panelGambarHL1Layout.createSequentialGroup()
.addGap(99, 99, 99)
.addComponent(jml, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jml1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jml2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jml3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jml4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(33, 33, 33)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tharga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(total))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
.addGroup(panelGambarHL1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(km)
.addComponent(psn)
.addComponent(hps))
.addContainerGap())
);
getContentPane().add(panelGambarHL1, java.awt.BorderLayout.CENTER);
getAccessibleContext().setAccessibleName("TIF Resto/page 3");
pack();
}// </editor-fold>
private void kmActionPerformed(java.awt.event.ActionEvent evt) {
new hl2().setVisible(true);
}
private void jmlActionPerformed(java.awt.event.ActionEvent evt) {
}
private void m1ActionPerformed(java.awt.event.ActionEvent evt) {
if (m1.isSelected()== true){
jml.setEditable(true);
}else{
jml.setEditable(false);
jml.setText("");
}
}
private void m2ActionPerformed(java.awt.event.ActionEvent evt) {
if (m2.isSelected()== true){
jml1.setEditable(true);
}else{
jml1.setEditable(false);
jml1.setText("");
}
}
private void m3ActionPerformed(java.awt.event.ActionEvent evt) {
if (m3.isSelected()== true){
jml2.setEditable(true);
}else{
jml2.setEditable(false);
jml2.setText("");
}
}
private void m4ActionPerformed(java.awt.event.ActionEvent evt) {
if (m4.isSelected()== true){
jml3.setEditable(true);
}else{
jml3.setEditable(false);
jml3.setText("");
}
}
private void m5ActionPerformed(java.awt.event.ActionEvent evt) {
if (m5.isSelected()== true){
jml4.setEditable(true);
}else{
jml4.setEditable(false);
jml4.setText("");
}
}
private void jml1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jml2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jml3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jml4ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void thargaActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void totalActionPerformed(java.awt.event.ActionEvent evt) {
int total = 0;
if (m1.isSelected()){
String m1 = jml.getText();
int jumlahm1 = Integer.parseInt(m1);
int hargam1 = jumlahm1 * 10000;
total = total + hargam1;
}
if (m2.isSelected()){
String m2 = jml1.getText();
int jumlahm2 = Integer.parseInt(m2);
int hargam2 = jumlahm2 * 10000;
total = total + hargam2;
}
if (m3.isSelected()){
String m3 = jml2.getText();
int jumlahm3 = Integer.parseInt(m3);
int hargam3 = jumlahm3 * 15000;
total = total + hargam3;
}
if (m4.isSelected()){
String m4 = jml3.getText();
int jumlahm4 = Integer.parseInt(m4);
int hargam4 = jumlahm4 * 25000;
total = total + hargam4;
}
if (m5.isSelected()){
String m5 = jml4.getText();
int jumlahm5 = Integer.parseInt(m5);
int hargam5 = jumlahm5 * 12000;
total = total + hargam5;
}
tharga.setText(""+ total);
}
private void psnActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int total;
String m1 = jml.getText();
int jumlahm1 = Integer.parseInt(m1);
int hargam1 = jumlahm1 * 10000;
String m2 = jml1.getText();
int jumlahm2 = Integer.parseInt(m2);
int hargam2 = jumlahm2 * 10000;
String m3 = jml2.getText();
int jumlahm3 = Integer.parseInt(m3);
int hargam3 = jumlahm3 * 15000;
String m4 = jml3.getText();
int jumlahm4 = Integer.parseInt(m4);
int hargam4 = jumlahm4 * 25000;
String m5 = jml4.getText();
int jumlahm5 = Integer.parseInt(m5);
int hargam5 = jumlahm5 * 12000;
total=hargam1+hargam2+hargam3+hargam4+hargam5;
JOptionPane.showMessageDialog(null, mm1.getText()+" --- "+ h1.getText()+" --- jumlah banyaknya "+ jml.getText()+" --- total harga "+ hargam1
+"\n"+mm2.getText()+" --- "+ h2.getText()+" --- jumlah banyaknya "+ jml1.getText()+" --- total harga "+ hargam2
+"\n"+mm3.getText()+" --- "+ h3.getText()+" --- jumlah banyaknya "+ jml2.getText()+" --- total harga "+ hargam3
+"\n"+mm4.getText()+" --- "+ h4.getText()+" --- jumlah banyaknya "+ jml3.getText()+" --- total harga "+ hargam4
+"\n"+mm5.getText()+" --- "+ h5.getText()+" --- jumlah banyaknya "+ jml4.getText()+" --- total harga "+ hargam5
+"\n\n"+"total semuanya = "+total,"INFORMASI PEMESANAN", JOptionPane.INFORMATION_MESSAGE);
new hl5().setVisible(true);
}
private void hpsActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jml.setEditable(false);
jml.setText("");
jml1.setEditable(false);
jml1.setText("");
jml2.setEditable(false);
jml2.setText("");
jml3.setEditable(false);
jml3.setText("");
jml4.setEditable(false);
jml4.setText("");
tharga.setEditable(false);
tharga.setText("");
}
Langganan:
Postingan (Atom)
Tidak ada komentar:
Posting Komentar