Source Codenya:
/*
* Menu.java
*
* Created on 19 Desember 2008, 10:51
*/
package kitraindah;
/**
*
* @author hendra
*/
import java.awt.*;
import javax.swing.*;
public class Menu extends javax.swing.JFrame {
/** Creates new form Menu */
public Menu() {
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.
*/
//
private void initComponents() {
jDesktopPane1 = new javax.swing.JDesktopPane();
jToolBar1 = new javax.swing.JToolBar();
jButton1 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jToolBar2 = new javax.swing.JToolBar();
jButton9 = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
jButton5 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jButton6 = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
jButton7 = new javax.swing.JButton();
jToolBar3 = new javax.swing.JToolBar();
jButton8 = new javax.swing.JButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu5 = new javax.swing.JMenu();
jMenu3 = new javax.swing.JMenu();
jMenuItem8 = new javax.swing.JMenuItem();
jMenu6 = new javax.swing.JMenu();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
jMenuItem4 = new javax.swing.JMenuItem();
jMenu7 = new javax.swing.JMenu();
jMenu2 = new javax.swing.JMenu();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenu8 = new javax.swing.JMenu();
jMenu4 = new javax.swing.JMenu();
jMenuItem9 = new javax.swing.JMenuItem();
jMenu9 = new javax.swing.JMenu();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jToolBar1.setAutoscrolls(true);
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/Printer-32x32.png"))); // NOI18N
jButton1.setToolTipText("LAPORAN DATA BARANG");
jButton1.setFocusable(false);
jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jToolBar1.add(jButton1);
jLabel1.setText(" ");
jToolBar1.add(jLabel1);
jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/2.JPG"))); // NOI18N
jButton3.setToolTipText("LAPORAN DATA TRANSAKSI");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jToolBar1.add(jButton3);
jLabel2.setText(" ");
jToolBar1.add(jLabel2);
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/1.png"))); // NOI18N
jButton2.setToolTipText("LAPORAN DATA PERUSAHAAN ");
jButton2.setFocusable(false);
jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jToolBar1.add(jButton2);
jToolBar1.setBounds(240, 0, 180, 40);
jDesktopPane1.add(jToolBar1, javax.swing.JLayeredPane.DEFAULT_LAYER);
jToolBar2.setRollover(true);
jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/brg3232.JPG"))); // NOI18N
jButton9.setToolTipText("Entry Data Barang");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
jToolBar2.add(jButton9);
jLabel5.setText(" ");
jToolBar2.add(jLabel5);
jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/customer3232.JPG"))); // NOI18N
jButton5.setToolTipText("ENTRY DATA CUSTOMER");
jButton5.setFocusable(false);
jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jToolBar2.add(jButton5);
jLabel3.setText(" ");
jToolBar2.add(jLabel3);
jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/perusahaan3232.JPG"))); // NOI18N
jButton6.setToolTipText("ENTRY DATA PERUSAHAAN");
jButton6.setFocusable(false);
jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jToolBar2.add(jButton6);
jLabel4.setText(" ");
jToolBar2.add(jLabel4);
jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/transaksi3232.jpg"))); // NOI18N
jButton7.setToolTipText("ENTRY DATA TRANSAKSI");
jButton7.setFocusable(false);
jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jToolBar2.add(jButton7);
jToolBar2.setBounds(0, 0, 240, 40);
jDesktopPane1.add(jToolBar2, javax.swing.JLayeredPane.DEFAULT_LAYER);
jToolBar3.setRollover(true);
jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kitraindah/exit.png"))); // NOI18N
jButton8.setToolTipText("Exit");
jButton8.setFocusable(false);
jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jToolBar3.add(jButton8);
jToolBar3.setBounds(420, 0, 60, 40);
jDesktopPane1.add(jToolBar3, javax.swing.JLayeredPane.DEFAULT_LAYER);
jMenu5.setText(":::");
jMenu5.setEnabled(false);
jMenu5.setFont(new java.awt.Font("Tahoma", 1, 11));
jMenuBar1.add(jMenu5);
jMenu3.setText("File");
jMenu3.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem8.setText("Exit");
jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem8ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem8);
jMenuBar1.add(jMenu3);
jMenu6.setText(":::");
jMenu6.setEnabled(false);
jMenu6.setFont(new java.awt.Font("Tahoma", 1, 11));
jMenuBar1.add(jMenu6);
jMenu1.setText("Entry");
jMenu1.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem1.setText("Entry Data Barang");
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);
jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem2.setText("Entry Data Customer");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem2);
jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem3.setText("Entry Data Perusahaan");
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem3);
jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem4.setText("Entry Data Transaksi");
jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem4ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem4);
jMenuBar1.add(jMenu1);
jMenu7.setText(":::");
jMenu7.setEnabled(false);
jMenu7.setFont(new java.awt.Font("Tahoma", 1, 11));
jMenuBar1.add(jMenu7);
jMenu2.setText("Laporan");
jMenu2.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem5.setText("Laporan Barang");
jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem5ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem5);
jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem6.setText("Laporan Transaksi");
jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem6ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem6);
jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem7.setText("Laporan Perusahaan");
jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem7ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem7);
jMenuBar1.add(jMenu2);
jMenu8.setText(":::");
jMenu8.setEnabled(false);
jMenu8.setFont(new java.awt.Font("Tahoma", 1, 11));
jMenuBar1.add(jMenu8);
jMenu4.setText("Help");
jMenu4.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
jMenuItem9.setText("About");
jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem9ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem9);
jMenuBar1.add(jMenu4);
jMenu9.setText(":::");
jMenu9.setEnabled(false);
jMenu9.setFont(new java.awt.Font("Tahoma", 1, 11));
jMenuBar1.add(jMenu9);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 873, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
);
pack();
}//
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
barang b = new barang();
jDesktopPane1.add(b);
b.setTitle("Entry Barang");
b.setVisible(true);
}
private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(0);
}
private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
about a = new about();
jDesktopPane1.add(a);
a.setTitle("About");
a.setVisible(true);
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(1);
}
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
transaksi t = new transaksi();
jDesktopPane1.add(t);
t.setTitle("Entry Transaksi");
t.setVisible(true);
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
perusahaan p = new perusahaan();
jDesktopPane1.add(p);
p.setTitle("Entry Perusahaan");
p.setVisible(true);
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
customer c = new customer();
jDesktopPane1.add(c);
c.setTitle("Entry Customer");
c.setVisible(true);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapPer lp = new lapPer();
jDesktopPane1.add(lp);
lp.setTitle("Laporan data perusahaan");
lp.setVisible(true);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapTrans lt = new lapTrans();
jDesktopPane1.add(lt);
lt.setTitle("Laporan data transaksi");
lt.setVisible(true);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapBrg lb = new lapBrg();
jDesktopPane1.add(lb);
lb.setTitle("Laporan data barang");
lb.setVisible(true);
}
private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapPer lp = new lapPer();
jDesktopPane1.add(lp);
lp.setTitle("Laporan data perusahaan");
lp.setVisible(true);
}
private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapTrans lt = new lapTrans();
jDesktopPane1.add(lt);
lt.setTitle("Laporan data transaksi");
lt.setVisible(true);
}
private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
lapBrg lb = new lapBrg();
jDesktopPane1.add(lb);
lb.setTitle("Laporan data barang");
lb.setVisible(true);
}
private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
transaksi t = new transaksi();
jDesktopPane1.add(t);
t.setTitle("Entry Transaksi");
t.setVisible(true);
}
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
perusahaan p = new perusahaan();
jDesktopPane1.add(p);
p.setTitle("Entry Perusahaan");
p.setVisible(true);
}
private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
customer c = new customer();
jDesktopPane1.add(c);
c.setTitle("Entry Customer");
c.setVisible(true);
}
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
barang b = new barang();
jDesktopPane1.add(b);
b.setTitle("Entry Barang");
b.setVisible(true);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
Menu m = new kitraindah.Menu();
m.setTitle(":::: MENU UTAMA CV.KITRA INDAH BUKITTINGGI ::::");
m.setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JDesktopPane jDesktopPane1;
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.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenu jMenu3;
private javax.swing.JMenu jMenu4;
private javax.swing.JMenu jMenu5;
private javax.swing.JMenu jMenu6;
private javax.swing.JMenu jMenu7;
private javax.swing.JMenu jMenu8;
private javax.swing.JMenu jMenu9;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JMenuItem jMenuItem3;
private javax.swing.JMenuItem jMenuItem4;
private javax.swing.JMenuItem jMenuItem5;
private javax.swing.JMenuItem jMenuItem6;
private javax.swing.JMenuItem jMenuItem7;
private javax.swing.JMenuItem jMenuItem8;
private javax.swing.JMenuItem jMenuItem9;
private javax.swing.JToolBar jToolBar1;
private javax.swing.JToolBar jToolBar2;
private javax.swing.JToolBar jToolBar3;
// End of variables declaration
}
No comments:
Post a Comment