@Override public void stateChanged(ChangeEvent event) { monthPanel.setData(eventManager.getCalendar()); label.setText( arrayOfMonths[eventManager.getCalendar().get(Calendar.MONTH)] + " " + eventManager.getCalendar().get(Calendar.YEAR)); String date = String.format("%02d", eventManager.getCalendar().get(Calendar.MONTH) + 1) + "/" + String.format("%02d", eventManager.getCalendar().get(Calendar.DAY_OF_MONTH)) + "/" + eventManager.getCalendar().get(Calendar.YEAR); ArrayList<String> eventList = eventManager.eventPrinter(date); dayPanel.setData(eventManager.getCalendar(), eventList); }
/** * 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() { buttonGroup1 = new javax.swing.ButtonGroup(); DailogReport = new javax.swing.JDialog(); jScrollPane1 = new javax.swing.JScrollPane(); tblReport = new javax.swing.JTable() { public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { Component c = super.prepareRenderer(renderer, row, column); if (!isRowSelected(row)) { c.setBackground(getBackground()); c.setBackground(new Color(227, 197, 132)); int ModelRow = convertRowIndexToModel(row); // int ModelColumn = convertColumnIndexToModel(column); // getting the value of boolean for true and false and changin color Object type = getModel().getValueAt(ModelRow, 7); // Boolean hybridType = (Boolean)getModel().getValueAt(ModelRow,9); if (type == "Cash") { c.setBackground(getBackground()); /* if(true == hybridType ){ getColumnModel().getColumn(9).s } */ } if ("Credit" == type) { c.setBackground(new Color(205, 185, 215)); } if (type != "Credit" && type != "Cash") { c.setBackground(new Color(227, 197, 132)); } } return c; } }; lblReportTitle = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); lblStartDate = new javax.swing.JLabel(); lblEndDate = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); btnReportCancel = new javax.swing.JButton(); btnSaveAsExcel = new javax.swing.JButton(); btnPrint = new javax.swing.JButton(); jDayChooser1 = new com.toedter.calendar.JDayChooser(); DialogPeriodType = new javax.swing.JDialog(); MonthPanel = new javax.swing.JPanel(); MonthChooser = new com.toedter.calendar.JMonthChooser(); YearChooser = new com.toedter.calendar.JYearChooser(); DayChooserPanel = new javax.swing.JPanel(); DayChooser = new com.toedter.calendar.JCalendar(); jPanel2 = new javax.swing.JPanel(); StartDateChooser = new com.toedter.calendar.JDateChooser(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); EndDateChooser = new com.toedter.calendar.JDateChooser(); jLabel8 = new javax.swing.JLabel(); ComboPeriodType = new javax.swing.JComboBox(); jLabel1 = new javax.swing.JLabel(); ComboDepartmentName = new javax.swing.JComboBox(); btnOk = new javax.swing.JButton(); btnCancel = new javax.swing.JButton(); tblReport.setBorder(new javax.swing.border.MatteBorder(null)); tblReport.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N tblReport.setModel( new javax.swing.table.DefaultTableModel( new Object[][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String[] {"Title 1", "Title 2", "Title 3", "Title 4"})); tblReport.setRowHeight(20); jScrollPane1.setViewportView(tblReport); lblReportTitle.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel6.setText("Period:"); jLabel7.setText("to"); jLabel5.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/excel.png"))); // NOI18N jPanel3.setBackground(new java.awt.Color(251, 250, 250)); btnReportCancel.setBackground(new java.awt.Color(255, 255, 255)); btnReportCancel.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/cancel.png"))); // NOI18N btnReportCancel.setText("Cancel"); btnReportCancel.setActionCommand("ReportCancel"); btnSaveAsExcel.setBackground(new java.awt.Color(255, 255, 255)); btnSaveAsExcel.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/xl.png"))); // NOI18N btnSaveAsExcel.setText("SaveAsExcel"); btnPrint.setBackground(new java.awt.Color(255, 255, 255)); btnPrint.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/print.png"))); // NOI18N btnPrint.setText("Print"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel3Layout .createSequentialGroup() .addContainerGap() .addComponent( btnPrint, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( btnSaveAsExcel, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( btnReportCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel3Layout.setVerticalGroup( jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel3Layout .createSequentialGroup() .addContainerGap() .addGroup( jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( btnPrint, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnSaveAsExcel) .addComponent(btnReportCancel)) .addContainerGap())); jPanel3Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnPrint, btnReportCancel, btnSaveAsExcel}); btnReportCancel.setHorizontalTextPosition(SwingConstants.CENTER); btnReportCancel.setVerticalTextPosition(SwingConstants.BOTTOM); btnSaveAsExcel.setHorizontalTextPosition(SwingConstants.CENTER); btnSaveAsExcel.setVerticalTextPosition(SwingConstants.BOTTOM); btnPrint.setHorizontalTextPosition(SwingConstants.CENTER); btnPrint.setVerticalTextPosition(SwingConstants.BOTTOM); javax.swing.GroupLayout DailogReportLayout = new javax.swing.GroupLayout(DailogReport.getContentPane()); DailogReport.getContentPane().setLayout(DailogReportLayout); DailogReportLayout.setHorizontalGroup( DailogReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, DailogReportLayout.createSequentialGroup() .addContainerGap() .addGroup( DailogReportLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 728, Short.MAX_VALUE) .addGroup( DailogReportLayout.createSequentialGroup() .addComponent( jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( DailogReportLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup( DailogReportLayout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .UNRELATED) .addComponent( lblStartDate, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .RELATED) .addComponent(jLabel7) .addGap(18, 18, 18) .addComponent( lblEndDate, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent( lblReportTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) .addComponent( jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); DailogReportLayout.setVerticalGroup( DailogReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, DailogReportLayout.createSequentialGroup() .addComponent( jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( DailogReportLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup( DailogReportLayout.createSequentialGroup() .addComponent( lblReportTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(8, 8, 8) .addGroup( DailogReportLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent( lblStartDate, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblEndDate) .addComponent(jLabel7))) .addComponent( jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent( jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 417, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); DailogReportLayout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel6, lblEndDate, lblStartDate}); javax.swing.GroupLayout MonthPanelLayout = new javax.swing.GroupLayout(MonthPanel); MonthPanel.setLayout(MonthPanelLayout); MonthPanelLayout.setHorizontalGroup( MonthPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( MonthPanelLayout.createSequentialGroup() .addContainerGap() .addComponent( MonthChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( YearChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); MonthPanelLayout.setVerticalGroup( MonthPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( MonthPanelLayout.createSequentialGroup() .addContainerGap() .addGroup( MonthPanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( MonthChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( YearChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); javax.swing.GroupLayout DayChooserPanelLayout = new javax.swing.GroupLayout(DayChooserPanel); DayChooserPanel.setLayout(DayChooserPanelLayout); DayChooserPanelLayout.setHorizontalGroup( DayChooserPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( DayChooserPanelLayout.createSequentialGroup() .addContainerGap() .addComponent( DayChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); DayChooserPanelLayout.setVerticalGroup( DayChooserPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( DayChooserPanelLayout.createSequentialGroup() .addContainerGap() .addComponent( DayChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE) .addContainerGap())); javax.swing.GroupLayout DialogPeriodTypeLayout = new javax.swing.GroupLayout(DialogPeriodType.getContentPane()); DialogPeriodType.getContentPane().setLayout(DialogPeriodTypeLayout); DialogPeriodTypeLayout.setHorizontalGroup( DialogPeriodTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( DialogPeriodTypeLayout.createSequentialGroup() .addContainerGap() .addGroup( DialogPeriodTypeLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( MonthPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( DialogPeriodTypeLayout.createSequentialGroup() .addComponent( DayChooserPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); DialogPeriodTypeLayout.setVerticalGroup( DialogPeriodTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( DialogPeriodTypeLayout.createSequentialGroup() .addContainerGap() .addComponent( DayChooserPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( MonthPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Sales Report"); setModalityType(java.awt.Dialog.ModalityType.DOCUMENT_MODAL); setResizable(false); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Report Period")); StartDateChooser.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel2.setText("Start Date:"); jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel3.setText("End Date:"); EndDateChooser.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel8.setText("Select Period:"); ComboPeriodType.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N ComboPeriodType.setModel( new javax.swing.DefaultComboBoxModel(new String[] {"Daily", "Monthly"})); ComboPeriodType.setActionCommand("comboPeriodType"); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel1.setText("Department Name:"); ComboDepartmentName.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel2Layout .createSequentialGroup() .addContainerGap() .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent( jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 132, Short.MAX_VALUE) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent( EndDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( StartDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE) .addComponent( ComboPeriodType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( ComboDepartmentName, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap())); jPanel2Layout.setVerticalGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout .createSequentialGroup() .addContainerGap() .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent( ComboDepartmentName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( ComboPeriodType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent( jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( StartDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent( jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( EndDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel2Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {ComboDepartmentName, ComboPeriodType, StartDateChooser}); jPanel2Layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel1, jLabel8}); btnOk.setText("Ok"); btnCancel.setText("Cancel"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGap(47, 47, 47) .addComponent( btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 128, Short.MAX_VALUE) .addComponent( btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(68, 68, 68)) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent( jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); layout.linkSize( javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnCancel, btnOk}); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent( jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnCancel) .addComponent( btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(15, Short.MAX_VALUE))); layout.linkSize( javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnCancel, btnOk}); pack(); } // </editor-fold>//GEN-END:initComponents
public void hideMonthPanel() { MonthPanel.setVisible(false); }
public void showMonthPanel() { MonthPanel.setVisible(true); }