Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package FinalProject;
- import static java.awt.event.KeyEvent.VK_BACK_SPACE;
- import java.util.Vector;
- import static javafx.beans.binding.Bindings.select;
- import javax.swing.table.DefaultTableModel;
- import java.sql.Connection;
- import java.util.Date;
- public class Kasir extends javax.swing.JFrame {
- /**
- * Creates new form Kasir
- */
- public Kasir() {
- 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">
- private void initComponents() {
- jPanel1 = new javax.swing.JPanel();
- jLabel1 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- Nama = new javax.swing.JTextField();
- Harga = new javax.swing.JTextField();
- Qty = new javax.swing.JTextField();
- jButton1 = new javax.swing.JButton();
- jButton2 = new javax.swing.JButton();
- jScrollPane1 = new javax.swing.JScrollPane();
- jTable1 = new javax.swing.JTable();
- jLabel5 = new javax.swing.JLabel();
- jLabel6 = new javax.swing.JLabel();
- Totalharga = new javax.swing.JLabel();
- Kembalian = new javax.swing.JLabel();
- Baya = new javax.swing.JTextField();
- jButton3 = new javax.swing.JButton();
- Pesan = new javax.swing.JLabel();
- Jumlah = new javax.swing.JLabel();
- jButton4 = new javax.swing.JButton();
- setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- setTitle("Kasir");
- setAutoRequestFocus(false);
- setBackground(new java.awt.Color(204, 204, 255));
- setResizable(false);
- jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- jLabel1.setFont(new java.awt.Font("Trajan Pro 3", 1, 18)); // NOI18N
- jLabel1.setForeground(new java.awt.Color(51, 0, 51));
- jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- jLabel1.setText("Cash Register");
- jLabel2.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N
- jLabel2.setForeground(new java.awt.Color(51, 0, 51));
- jLabel2.setText("Item :");
- jLabel3.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N
- jLabel3.setForeground(new java.awt.Color(51, 0, 51));
- jLabel3.setText("Quantity :");
- jLabel4.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N
- jLabel4.setForeground(new java.awt.Color(51, 0, 51));
- jLabel4.setText("Price :");
- Nama.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- Nama.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- NamaActionPerformed(evt);
- }
- });
- Harga.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- Harga.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- HargaActionPerformed(evt);
- }
- });
- Harga.addKeyListener(new java.awt.event.KeyAdapter() {
- public void keyPressed(java.awt.event.KeyEvent evt) {
- HargaKeyPressed(evt);
- }
- public void keyTyped(java.awt.event.KeyEvent evt) {
- HargaKeyTyped(evt);
- }
- });
- Qty.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- Qty.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- QtyActionPerformed(evt);
- }
- });
- Qty.addKeyListener(new java.awt.event.KeyAdapter() {
- public void keyPressed(java.awt.event.KeyEvent evt) {
- QtyKeyPressed(evt);
- }
- public void keyTyped(java.awt.event.KeyEvent evt) {
- QtyKeyTyped(evt);
- }
- });
- jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jButton1.setText("INSERT");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jButton2.setText("DELETE");
- jButton2.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton2ActionPerformed(evt);
- }
- });
- jTable1.setBackground(new java.awt.Color(153, 255, 255));
- jTable1.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(0, 0, 153), java.awt.Color.gray));
- jTable1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jTable1.setForeground(new java.awt.Color(153, 153, 153));
- jTable1.setModel(new javax.swing.table.DefaultTableModel(
- new Object [][] {
- },
- new String [] {
- "Item", "Price", "Quantity", "Total"
- }
- ) {
- boolean[] canEdit = new boolean [] {
- false, false, false, false
- };
- public boolean isCellEditable(int rowIndex, int columnIndex) {
- return canEdit [columnIndex];
- }
- });
- jTable1.setAutoscrolls(false);
- jTable1.setColumnSelectionAllowed(true);
- jTable1.setGridColor(new java.awt.Color(255, 255, 255));
- jTable1.setOpaque(false);
- jTable1.setRowHeight(20);
- jTable1.addInputMethodListener(new java.awt.event.InputMethodListener() {
- public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
- }
- public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
- jTable1InputMethodTextChanged(evt);
- }
- });
- jScrollPane1.setViewportView(jTable1);
- jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
- jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
- jLabel5.setForeground(new java.awt.Color(51, 0, 51));
- jLabel5.setText("Change :");
- jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
- jLabel6.setForeground(new java.awt.Color(51, 0, 51));
- jLabel6.setText("Total :");
- Totalharga.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
- Totalharga.setForeground(new java.awt.Color(51, 0, 51));
- Totalharga.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
- Totalharga.setText("Rp.0");
- Kembalian.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
- Kembalian.setForeground(new java.awt.Color(51, 0, 51));
- Kembalian.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
- Kembalian.setText("Rp.0");
- Baya.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
- Baya.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- Baya.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- BayaActionPerformed(evt);
- }
- });
- Baya.addKeyListener(new java.awt.event.KeyAdapter() {
- public void keyPressed(java.awt.event.KeyEvent evt) {
- BayaKeyPressed(evt);
- }
- public void keyTyped(java.awt.event.KeyEvent evt) {
- BayaKeyTyped(evt);
- }
- });
- jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jButton3.setText("PAY");
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
- }
- });
- Pesan.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- Pesan.setForeground(new java.awt.Color(204, 0, 0));
- Pesan.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jButton4.setText("PRINT");
- jButton4.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton4ActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(60, 60, 60)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(27, 27, 27)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(Harga, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 392, Short.MAX_VALUE)
- .addComponent(Qty, javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(Nama))
- .addGap(16, 16, 16)
- .addComponent(Jumlah))
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 596, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(27, 27, 27)
- .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 596, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(Totalharga, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(Kembalian, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(24, 24, 24)
- .addComponent(Baya, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(Pesan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
- .addContainerGap(45, Short.MAX_VALUE))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(4, 4, 4)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(Nama, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(18, 18, 18)
- .addComponent(Jumlah)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(Harga, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(Qty, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(42, 42, 42)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jButton1)
- .addComponent(jButton2))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jButton3)
- .addComponent(Baya, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE))
- .addGap(23, 23, 23)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(Totalharga))
- .addGap(26, 26, 26)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(Kembalian))
- .addGap(15, 15, 15)
- .addComponent(Pesan, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(25, 25, 25)
- .addComponent(jButton4)
- .addContainerGap())
- );
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(0, 0, Short.MAX_VALUE))
- );
- setBounds(0, 0, 733, 784);
- }// </editor-fold>
- private void NamaActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void HargaActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void QtyActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void BayaActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- int g = Integer.parseInt(Totalharga.getText().substring(3));
- int f = Integer.parseInt(Baya.getText());
- int h = f - g;
- Kembalian.setText("Rp."+h);
- }
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- Pesan.setText("");
- DefaultTableModel a = (DefaultTableModel) jTable1.getModel();
- if(Nama.getText().trim().equals("")){
- Pesan.setText("Sorry, the item name column must be filled");
- }else{
- int c = Integer.parseInt(Harga.getText());
- int b = Integer.parseInt(Qty.getText());
- int d = b * c;
- Jumlah.setText(""+d);
- Jumlah.setVisible(false);
- int t = 0;
- Vector z = new Vector();
- z.add(Nama.getText());
- z.add("Rp.".concat(Harga.getText()));
- z.add(Qty.getText());
- z.add("Rp.".concat(Jumlah.getText()));
- a.addRow(z);
- for(int e = 0; e <a.getRowCount(); e++){
- t += Integer.parseInt(a.getValueAt(e, 3).toString().substring(3));
- }
- Totalharga.setText("Rp."+t);
- Nama.setText("");
- Harga.setText("");
- Qty.setText("");
- }
- }
- private void HargaKeyPressed(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- }
- private void QtyKeyPressed(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- }
- private void BayaKeyPressed(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- }
- private void HargaKeyTyped(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- Pesan.setText("");
- char a = evt.getKeyChar();
- int b = evt.getKeyCode() ;
- if(!Character.isDigit(a)){
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- } else if (b == VK_BACK_SPACE) {
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- }
- }
- private void QtyKeyTyped(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- Pesan.setText("");
- char a = evt.getKeyChar();
- int b = evt.getKeyCode() ;
- if(!Character.isDigit(a)){
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- } else if (b == VK_BACK_SPACE) {
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- }
- }
- private void BayaKeyTyped(java.awt.event.KeyEvent evt) {
- // TODO add your handling code here:
- Pesan.setText("");
- char a = evt.getKeyChar();
- int b = evt.getKeyCode() ;
- if(!Character.isDigit(a)){
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- } else if (b == VK_BACK_SPACE) {
- evt.consume();
- Pesan.setText("Sorry, you can only input using numbers");
- }
- }
- private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- DefaultTableModel a = (DefaultTableModel) jTable1.getModel();
- int select = jTable1.getSelectedRow();
- a.removeRow(select);
- Nama.setText("");
- Harga.setText("");
- Qty.setText("");
- int t= 0;
- for(int e = 0; e <a.getRowCount(); e++){
- t += Integer.parseInt(a.getValueAt(e, 3).toString().substring(3));
- }
- Totalharga.setText("Rp."+t);
- int g = Integer.parseInt(Totalharga.getText().substring(3));
- int f = Integer.parseInt(Baya.getText());
- int h = f - g;
- Kembalian.setText("Rp."+h);
- }
- private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
- try{
- jTable1.print();
- }
- catch (Exception e) {
- }
- }
- private void jTable1InputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
- // TODO add your handling code here:
- }
- /**
- * @param args the command line arguments
- */
- public static void main(String args[]) {
- /* Set the Nimbus look and feel */
- //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
- /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
- * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
- */
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Nimbus".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException ex) {
- java.util.logging.Logger.getLogger(Kasir.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(Kasir.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(Kasir.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(Kasir.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- }
- //</editor-fold>
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- new Kasir().setVisible(true);
- }
- });
- }
- // Variables declaration - do not modify
- private javax.swing.JTextField Baya;
- private javax.swing.JTextField Harga;
- private javax.swing.JLabel Jumlah;
- private javax.swing.JLabel Kembalian;
- private javax.swing.JTextField Nama;
- private javax.swing.JLabel Pesan;
- private javax.swing.JTextField Qty;
- private javax.swing.JLabel Totalharga;
- private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
- private javax.swing.JButton jButton4;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JLabel jLabel6;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JTable jTable1;
- // End of variables declaration
- void isVisible(boolean b) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement