Java tutorial
/* * 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. */ package com.softidea.www.private_access.adminstrator; import com.fsczone.www.lookAndFeel.pro_lookandfeel; import com.softidea.www.public_access.login_user.user_login; import com.sun.awt.AWTUtilities; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import javax.swing.JLabel; import javax.swing.UIManager; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; /** * * @author deepalsuranga */ public class admin_index extends javax.swing.JFrame { /** * Creates new form admin_index */ public admin_index() { initComponents(); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (Exception ex) { } try { AWTUtilities.setWindowOpaque(this, false); } catch (Exception e) { } pro_lookandfeel.Set(); JFreeChart lineChart = ChartFactory.createLineChart("Title", "Years", "Number of Schools", createDataset(), PlotOrientation.VERTICAL, true, true, false); loadChart(); } /** * 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">//GEN-BEGIN:initComponents private void initComponents() { pl_systemExit = new javax.swing.JPanel(); jl_systemExit = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jl_admin_customerManagement = new javax.swing.JLabel(); jl_admin_loanManagement = new javax.swing.JLabel(); jl_admin_installmentManagement = new javax.swing.JLabel(); jl_admin_CashManagement = new javax.swing.JLabel(); jp_loadChart = new javax.swing.JPanel(); jl_admin_CashManagement1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setMaximumSize(new java.awt.Dimension(1300, 700)); setMinimumSize(new java.awt.Dimension(1300, 700)); setUndecorated(true); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); pl_systemExit.setBackground(new java.awt.Color(33, 33, 33)); pl_systemExit.setLayout(new java.awt.CardLayout()); jl_systemExit.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jl_systemExit.setForeground(new java.awt.Color(255, 255, 255)); jl_systemExit.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_systemExit.setText("X"); jl_systemExit.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_systemExitMouseMoved(evt); } }); jl_systemExit.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jl_systemExitMouseClicked(evt); } }); pl_systemExit.add(jl_systemExit, "card2"); getContentPane().add(pl_systemExit, new org.netbeans.lib.awtextra.AbsoluteConstraints(1275, 12, 25, -1)); jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Administrator | Home "); getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 14, 350, 30)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jLabel1.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/frame_admin.png"))); // NOI18N getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1300, 50)); jPanel1.setBackground(new java.awt.Color(102, 102, 102)); jPanel1.setFocusCycleRoot(true); jPanel1.setPreferredSize(new java.awt.Dimension(1300, 400)); jl_admin_customerManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jl_admin_customerManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_customerManagement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_admin_customerManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_customer.png"))); // NOI18N jl_admin_customerManagement.setText("Customer Management"); jl_admin_customerManagement.setToolTipText(""); jl_admin_customerManagement.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jl_admin_customerManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); jl_admin_customerManagement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jl_admin_customerManagement.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jl_admin_customerManagement.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jl_admin_customerManagement.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_admin_customerManagementMouseMoved(evt); } }); jl_admin_customerManagement.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jl_admin_customerManagementMouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jl_admin_customerManagementMouseExited(evt); } }); jl_admin_loanManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jl_admin_loanManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_loanManagement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_admin_loanManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_loan.png"))); // NOI18N jl_admin_loanManagement.setText("Loans Management"); jl_admin_loanManagement.setToolTipText(""); jl_admin_loanManagement.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jl_admin_loanManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); jl_admin_loanManagement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jl_admin_loanManagement.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jl_admin_loanManagement.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jl_admin_loanManagement.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_admin_loanManagementMouseMoved(evt); } }); jl_admin_loanManagement.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseExited(java.awt.event.MouseEvent evt) { jl_admin_loanManagementMouseExited(evt); } }); jl_admin_installmentManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jl_admin_installmentManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_installmentManagement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_admin_installmentManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_installment.png"))); // NOI18N jl_admin_installmentManagement.setText("Installment Management"); jl_admin_installmentManagement.setToolTipText(""); jl_admin_installmentManagement.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jl_admin_installmentManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); jl_admin_installmentManagement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jl_admin_installmentManagement.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jl_admin_installmentManagement.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jl_admin_installmentManagement.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_admin_installmentManagementMouseMoved(evt); } }); jl_admin_installmentManagement.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseExited(java.awt.event.MouseEvent evt) { jl_admin_installmentManagementMouseExited(evt); } }); jl_admin_CashManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jl_admin_CashManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_CashManagement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_admin_CashManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_cash.png"))); // NOI18N jl_admin_CashManagement.setText("Cash Management"); jl_admin_CashManagement.setToolTipText(""); jl_admin_CashManagement.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jl_admin_CashManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); jl_admin_CashManagement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jl_admin_CashManagement.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jl_admin_CashManagement.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jl_admin_CashManagement.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_admin_CashManagementMouseMoved(evt); } }); jl_admin_CashManagement.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseExited(java.awt.event.MouseEvent evt) { jl_admin_CashManagementMouseExited(evt); } }); javax.swing.GroupLayout jp_loadChartLayout = new javax.swing.GroupLayout(jp_loadChart); jp_loadChart.setLayout(jp_loadChartLayout); jp_loadChartLayout.setHorizontalGroup(jp_loadChartLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 658, Short.MAX_VALUE)); jp_loadChartLayout.setVerticalGroup(jp_loadChartLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); jl_admin_CashManagement1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jl_admin_CashManagement1.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_CashManagement1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jl_admin_CashManagement1.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_cash.png"))); // NOI18N jl_admin_CashManagement1.setText("User Management"); jl_admin_CashManagement1.setToolTipText(""); jl_admin_CashManagement1.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); jl_admin_CashManagement1 .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); jl_admin_CashManagement1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); jl_admin_CashManagement1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jl_admin_CashManagement1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jl_admin_CashManagement1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { jl_admin_CashManagement1MouseMoved(evt); } }); jl_admin_CashManagement1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseExited(java.awt.event.MouseEvent evt) { jl_admin_CashManagement1MouseExited(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(196, 196, 196).addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jl_admin_installmentManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jl_admin_customerManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jl_admin_CashManagement1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jl_admin_CashManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jl_admin_loanManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18).addComponent(jp_loadChart, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(107, 107, 107).addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jp_loadChart, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jl_admin_customerManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jl_admin_loanManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jl_admin_CashManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jl_admin_installmentManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jl_admin_CashManagement1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(129, Short.MAX_VALUE))); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 50, -1, 620)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel2.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/under_frame.png"))); // NOI18N getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 670, 1300, 30)); setSize(new java.awt.Dimension(1300, 700)); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void jl_admin_customerManagementMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_customerManagementMouseMoved jl_admin_customerManagement.setForeground(new java.awt.Color(0, 0, 0)); jl_admin_customerManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_a_customer.png"))); jl_admin_customerManagement.setVerticalAlignment(JLabel.CENTER); jl_admin_customerManagement.setVerticalTextPosition(JLabel.CENTER); jl_admin_customerManagement.setFont(new java.awt.Font("Tahoma", 0, 18)); jl_admin_customerManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 1)); }//GEN-LAST:event_jl_admin_customerManagementMouseMoved private void jl_admin_loanManagementMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_loanManagementMouseMoved jl_admin_loanManagement.setForeground(new java.awt.Color(0, 0, 0)); jl_admin_loanManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_a_loan.png"))); jl_admin_loanManagement.setVerticalAlignment(JLabel.CENTER); jl_admin_loanManagement.setVerticalTextPosition(JLabel.CENTER); jl_admin_loanManagement.setFont(new java.awt.Font("Tahoma", 0, 18)); jl_admin_loanManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 1)); }//GEN-LAST:event_jl_admin_loanManagementMouseMoved private void jl_admin_installmentManagementMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_installmentManagementMouseMoved jl_admin_installmentManagement.setForeground(new java.awt.Color(0, 0, 0)); jl_admin_installmentManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_a_installment.png"))); jl_admin_installmentManagement.setVerticalAlignment(JLabel.CENTER); jl_admin_installmentManagement.setVerticalTextPosition(JLabel.CENTER); jl_admin_installmentManagement.setFont(new java.awt.Font("Tahoma", 0, 18)); jl_admin_installmentManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 1)); }//GEN-LAST:event_jl_admin_installmentManagementMouseMoved private void jl_admin_CashManagementMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_CashManagementMouseMoved jl_admin_CashManagement.setForeground(new java.awt.Color(0, 0, 0)); jl_admin_CashManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_a_cash.png"))); jl_admin_CashManagement.setVerticalAlignment(JLabel.CENTER); jl_admin_CashManagement.setVerticalTextPosition(JLabel.CENTER); jl_admin_CashManagement.setFont(new java.awt.Font("Tahoma", 0, 18)); jl_admin_CashManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 1)); }//GEN-LAST:event_jl_admin_CashManagementMouseMoved private void jl_admin_CashManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_CashManagementMouseExited jl_admin_CashManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_CashManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_cash.png"))); jl_admin_CashManagement.setVerticalAlignment(JLabel.BOTTOM); jl_admin_CashManagement.setVerticalTextPosition(JLabel.BOTTOM); jl_admin_CashManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); jl_admin_CashManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); }//GEN-LAST:event_jl_admin_CashManagementMouseExited private void jl_admin_loanManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_loanManagementMouseExited jl_admin_loanManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_loanManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_loan.png"))); jl_admin_loanManagement.setVerticalAlignment(JLabel.BOTTOM); jl_admin_loanManagement.setVerticalTextPosition(JLabel.BOTTOM); jl_admin_loanManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); jl_admin_loanManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); }//GEN-LAST:event_jl_admin_loanManagementMouseExited private void jl_admin_customerManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_customerManagementMouseExited jl_admin_customerManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_customerManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_customer.png"))); jl_admin_customerManagement.setVerticalAlignment(JLabel.BOTTOM); jl_admin_customerManagement.setVerticalTextPosition(JLabel.BOTTOM); jl_admin_customerManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); jl_admin_customerManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); }//GEN-LAST:event_jl_admin_customerManagementMouseExited private void jl_admin_installmentManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_installmentManagementMouseExited jl_admin_installmentManagement.setForeground(new java.awt.Color(255, 255, 255)); jl_admin_installmentManagement.setIcon(new javax.swing.ImageIcon( getClass().getResource("/com/softidea/www/private_access/images/tiles_b_installment.png"))); jl_admin_installmentManagement.setVerticalAlignment(JLabel.BOTTOM); jl_admin_installmentManagement.setVerticalTextPosition(JLabel.BOTTOM); jl_admin_installmentManagement.setFont(new java.awt.Font("Tahoma", 0, 14)); jl_admin_installmentManagement .setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); }//GEN-LAST:event_jl_admin_installmentManagementMouseExited private void jl_systemExitMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_systemExitMouseMoved pl_systemExit.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2)); }//GEN-LAST:event_jl_systemExitMouseMoved private void jl_systemExitMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_systemExitMouseClicked //System.exit(0); this.dispose(); user_login uslg = new user_login(); uslg.setVisible(true); }//GEN-LAST:event_jl_systemExitMouseClicked private void jl_admin_customerManagementMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_customerManagementMouseClicked // // this.dispose(); // Admin_workArea workhomeadmin = new Admin_workArea("Customer"); // workhomeadmin.setVisible(true); }//GEN-LAST:event_jl_admin_customerManagementMouseClicked private void jl_admin_CashManagement1MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_CashManagement1MouseMoved // TODO add your handling code here: }//GEN-LAST:event_jl_admin_CashManagement1MouseMoved private void jl_admin_CashManagement1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_admin_CashManagement1MouseExited // TODO add your handling code here: }//GEN-LAST:event_jl_admin_CashManagement1MouseExited /** * @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 ("Windows".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(admin_index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(admin_index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(admin_index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(admin_index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(() -> { new admin_index().setVisible(true); }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JPanel jPanel1; private javax.swing.JLabel jl_admin_CashManagement; private javax.swing.JLabel jl_admin_CashManagement1; private javax.swing.JLabel jl_admin_customerManagement; private javax.swing.JLabel jl_admin_installmentManagement; private javax.swing.JLabel jl_admin_loanManagement; private javax.swing.JLabel jl_systemExit; private javax.swing.JPanel jp_loadChart; private javax.swing.JPanel pl_systemExit; // End of variables declaration//GEN-END:variables private DefaultCategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(15, "schools", "1970"); dataset.addValue(30, "schools", "1980"); dataset.addValue(60, "schools", "1990"); dataset.addValue(120, "schools", "2000"); dataset.addValue(240, "schools", "2010"); dataset.addValue(300, "schools", "2014"); return dataset; } private void loadChart() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); JFreeChart chart = ChartFactory.createLineChart("Income ,Cost ,Profit & Returns", "Details", "Values", createDataset(), PlotOrientation.VERTICAL, false, true, false); chart.setBackgroundPaint(Color.WHITE); CategoryPlot p = chart.getCategoryPlot(); p.setRangeGridlinePaint(Color.BLUE); // ChartFrame frame = new ChartFrame("Full Report", chart); ChartPanel panel = new ChartPanel(chart); // panel.setSize(jp_loadChart.getWidth(), jp_loadChart.getHeight()); panel.setPreferredSize(new Dimension(658, 384)); jp_loadChart.removeAll(); jp_loadChart.setLayout(new FlowLayout()); jp_loadChart.add(panel); panel.setVisible(true); jp_loadChart.updateUI(); } /** * DefaultCategoryDataset dataset = new DefaultCategoryDataset(); JFreeChart chart = ChartFactory.createLineChart("Income ,Cost ,Profit & Returns", "Details", "Values", createDataset(), PlotOrientation.VERTICAL, false, true, false); chart.setBackgroundPaint(Color.WHITE); CategoryPlot p = chart.getCategoryPlot(); p.setRangeGridlinePaint(Color.BLUE); ChartFrame frame = new ChartFrame("Full Report", chart); ChartPanel panel = new ChartPanel(chart); jp_loadChart.add(panel); panel.setBackground(Color.WHITE); chart.getTitle().setPaint(new Color(51, 204, 255)); frame.setBackground(Color.WHITE); frame.add(panel); frame.setVisible(true); frame.setLocation(300, 90); frame.setSize(700, 475); */ }