public void setUpGUI(Container container) throws Exception { // <Begin_setUpGUI_Container> container.add(Top, BorderLayout.CENTER); Top.setLayout(null); JPanel1.setBounds(0, 0, 225, 415); Top.add(JPanel1); JPanel1.setLayout(null); RouterBtn.setBounds(60, 95, 110, 165); JPanel1.add(RouterBtn); eight.setBounds(170, 155, 45, 45); JPanel1.add(eight); one.setBounds(170, 105, 45, 45); JPanel1.add(one); six.setBounds(65, 40, 45, 55); JPanel1.add(six); three.setBounds(15, 105, 45, 45); JPanel1.add(three); four.setBounds(15, 205, 45, 45); JPanel1.add(four); seven.setBounds(15, 155, 45, 45); JPanel1.add(seven); two.setBounds(170, 205, 45, 45); JPanel1.add(two); ten.setBounds(120, 260, 45, 55); JPanel1.add(ten); five.setBounds(65, 260, 45, 55); JPanel1.add(five); nine.setBounds(120, 40, 45, 55); JPanel1.add(nine); JPanel2.setBounds(220, 0, 455, 415); Top.add(JPanel2); JPanel2.setLayout(new BorderLayout(5, 5)); JPanel2.add(JPanel3, BorderLayout.NORTH); JPanel3.setLayout(new FlowLayout(1, 5, 5)); JPanel3.add(JLabel1); JPanel2.add(JPanel4, BorderLayout.CENTER); JPanel4.setLayout(new CardLayout(5, 5)); JPanel2.add(JPanel5, BorderLayout.SOUTH); JPanel5.setLayout(new FlowLayout(2, 5, 5)); JPanel5.add(RefreshBtn); JPanel5.add(CloseBtn); // <End_setUpGUI_Container> }
public void setUpGUI(Container container) { // <Begin_setUpGUI_Container> container.add(Top, BorderLayout.CENTER); Top.setLayout(new BorderLayout(5, 5)); Top.add(JPanel1, BorderLayout.CENTER); JPanel1.setLayout(new BorderLayout(5, 5)); JPanel1.add(JScrollPane1, BorderLayout.CENTER); JScrollPane1.getViewport().add(JTable1); JPanel1.add(JPanel6, BorderLayout.WEST); JPanel6.setLayout(new BorderLayout(5, 5)); JPanel6.add(JLabel2, BorderLayout.CENTER); Top.add(JPanel2, BorderLayout.SOUTH); JPanel2.setLayout(new GridLayout(1, 1, 5, 5)); JPanel2.add(JPanel3); JPanel3.setLayout(new FlowLayout(2, 5, 5)); JPanel3.add(JButton1); JPanel3.add(JButton2); JPanel3.add(JButton3); JPanel3.add(closeButton); Top.add(JPanel5, BorderLayout.NORTH); JPanel5.setLayout(new GridLayout(2, 1, 5, 5)); JPanel5.add(JLabel1); // <End_setUpGUI_Container> }
/** * 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() { java.awt.GridBagConstraints gridBagConstraints; buttonGroup1 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); panPeriod = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); dpiFrom = new org.jdesktop.swingx.JXDatePicker(); dpiTo = new org.jdesktop.swingx.JXDatePicker(); jPanel2 = new javax.swing.JPanel(); btnThisWeek = new javax.swing.JToggleButton(); btnLastWeek = new javax.swing.JToggleButton(); btnThisMonth = new javax.swing.JToggleButton(); btnLastMonth = new javax.swing.JToggleButton(); jPanel7 = new javax.swing.JPanel(); btnRefreshAnlaesse = new javax.swing.JButton(); panMasterDetail = new javax.swing.JPanel(); panMaster = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jXTable1 = new org.jdesktop.swingx.JXTable(); panDetail = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); lblDokumentLink = new javax.swing.JLabel(); jPanel5 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); lstKassenzeichen = new javax.swing.JList(); jButton1 = new javax.swing.JButton(); cbxAbgearbeitet = new javax.swing.JCheckBox(); jPanel6 = new javax.swing.JPanel(); jPanel8 = new javax.swing.JPanel(); btnCloseDialog = new javax.swing.JButton(); jProgressBar1 = new javax.swing.JProgressBar(); jPanel9 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.title")); // NOI18N getContentPane().setLayout(new java.awt.GridBagLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(800, 643)); jPanel1.setLayout(new java.awt.GridBagLayout()); panPeriod.setBorder( javax.swing.BorderFactory.createTitledBorder( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.panPeriod.border.title"))); // NOI18N panPeriod.setLayout(new java.awt.GridBagLayout()); jLabel1.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.jLabel1.text")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 5, 5); panPeriod.add(jLabel1, gridBagConstraints); jLabel2.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.jLabel2.text")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 4; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END; gridBagConstraints.insets = new java.awt.Insets(10, 10, 5, 5); panPeriod.add(jLabel2, gridBagConstraints); dpiFrom.addPropertyChangeListener( new java.beans.PropertyChangeListener() { @Override public void propertyChange(final java.beans.PropertyChangeEvent evt) { dpiFromPropertyChange(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; gridBagConstraints.insets = new java.awt.Insets(10, 0, 5, 10); panPeriod.add(dpiFrom, gridBagConstraints); dpiTo.addPropertyChangeListener( new java.beans.PropertyChangeListener() { @Override public void propertyChange(final java.beans.PropertyChangeEvent evt) { dpiToPropertyChange(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 5; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; gridBagConstraints.insets = new java.awt.Insets(10, 0, 5, 10); panPeriod.add(dpiTo, gridBagConstraints); jPanel2.setLayout(new java.awt.GridLayout(2, 3, 5, 5)); buttonGroup1.add(btnThisWeek); btnThisWeek.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnThisWeek.text")); // NOI18N btnThisWeek.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnThisWeekActionPerformed(evt); } }); jPanel2.add(btnThisWeek); buttonGroup1.add(btnLastWeek); btnLastWeek.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnLastWeek.text")); // NOI18N btnLastWeek.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnLastWeekActionPerformed(evt); } }); jPanel2.add(btnLastWeek); buttonGroup1.add(btnThisMonth); btnThisMonth.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnThisMonth.text")); // NOI18N btnThisMonth.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnThisMonthActionPerformed(evt); } }); jPanel2.add(btnThisMonth); buttonGroup1.add(btnLastMonth); btnLastMonth.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnLastMonth.text")); // NOI18N btnLastMonth.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnLastMonthActionPerformed(evt); } }); jPanel2.add(btnLastMonth); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); panPeriod.add(jPanel2, gridBagConstraints); jPanel7.setPreferredSize(new java.awt.Dimension(50, 10)); final javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 50, Short.MAX_VALUE)); jPanel7Layout.setVerticalGroup( jPanel7Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 88, Short.MAX_VALUE)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.weightx = 1.0; panPeriod.add(jPanel7, gridBagConstraints); btnRefreshAnlaesse.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnRefreshAnlaesse.text")); // NOI18N btnRefreshAnlaesse.setEnabled(false); btnRefreshAnlaesse.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnRefreshAnlaesseActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 10); panPeriod.add(btnRefreshAnlaesse, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanel1.add(panPeriod, gridBagConstraints); panMasterDetail.setLayout(new java.awt.GridBagLayout()); panMaster.setBorder( javax.swing.BorderFactory.createTitledBorder( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.panMaster.border.title"))); // NOI18N panMaster.setLayout(new java.awt.GridBagLayout()); jXTable1.setEnabled(false); jScrollPane1.setViewportView(jXTable1); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 10); panMaster.add(jScrollPane1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10); panMasterDetail.add(panMaster, gridBagConstraints); panMaster .getAccessibleContext() .setAccessibleName( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.panMaster.AccessibleContext.accessibleName")); // NOI18N panDetail.setBorder(null); panDetail.setMinimumSize(new java.awt.Dimension(250, 137)); panDetail.setPreferredSize(new java.awt.Dimension(250, 244)); panDetail.setVerifyInputWhenFocusTarget(false); panDetail.setLayout(new java.awt.GridBagLayout()); jPanel3.setBorder( javax.swing.BorderFactory.createTitledBorder( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.jPanel3.border.title"))); // NOI18N jPanel3.setLayout(new java.awt.GridBagLayout()); lblDokumentLink.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.lblDokumentLink.text")); // NOI18N lblDokumentLink.setEnabled(false); lblDokumentLink.addMouseListener( new java.awt.event.MouseAdapter() { @Override public void mouseClicked(final java.awt.event.MouseEvent evt) { lblDokumentLinkMouseClicked(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); jPanel3.add(lblDokumentLink, gridBagConstraints); final javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); jPanel5Layout.setVerticalGroup( jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel3.add(jPanel5, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0); panDetail.add(jPanel3, gridBagConstraints); jPanel4.setBorder( javax.swing.BorderFactory.createTitledBorder( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.jPanel4.border.title"))); // NOI18N jPanel4.setLayout(new java.awt.GridBagLayout()); lstKassenzeichen.setModel(new DefaultListModel()); lstKassenzeichen.setEnabled(false); lstKassenzeichen.addMouseListener( new java.awt.event.MouseAdapter() { @Override public void mouseClicked(final java.awt.event.MouseEvent evt) { lstKassenzeichenMouseClicked(evt); } }); lstKassenzeichen.addListSelectionListener( new javax.swing.event.ListSelectionListener() { @Override public void valueChanged(final javax.swing.event.ListSelectionEvent evt) { lstKassenzeichenValueChanged(evt); } }); jScrollPane2.setViewportView(lstKassenzeichen); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); jPanel4.add(jScrollPane2, gridBagConstraints); jButton1.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.jButton1.text")); // NOI18N jButton1.setEnabled(false); jButton1.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 10, 10, 10); jPanel4.add(jButton1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 0); panDetail.add(jPanel4, gridBagConstraints); cbxAbgearbeitet.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.cbxAbgearbeitet.text")); // NOI18N cbxAbgearbeitet.setEnabled(false); cbxAbgearbeitet.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { cbxAbgearbeitetActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0); panDetail.add(cbxAbgearbeitet, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0); panMasterDetail.add(panDetail, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanel1.add(panMasterDetail, gridBagConstraints); final javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); jPanel6Layout.setVerticalGroup( jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; jPanel1.add(jPanel6, gridBagConstraints); jPanel8.setLayout(new java.awt.GridBagLayout()); btnCloseDialog.setText( org.openide.util.NbBundle.getMessage( FortfuehrungsanlaesseDialog.class, "FortfuehrungsanlaesseDialog.btnCloseDialog.text")); // NOI18N btnCloseDialog.addActionListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(final java.awt.event.ActionEvent evt) { btnCloseDialogActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.LAST_LINE_END; gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0); jPanel8.add(btnCloseDialog, gridBagConstraints); jProgressBar1.setIndeterminate(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5); jPanel8.add(jProgressBar1, gridBagConstraints); jPanel9.setOpaque(false); final javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 634, Short.MAX_VALUE)); jPanel9Layout.setVerticalGroup( jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 30, Short.MAX_VALUE)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel8.add(jPanel9, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); jPanel1.add(jPanel8, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5); getContentPane().add(jPanel1, gridBagConstraints); pack(); } // </editor-fold>
// <editor-fold defaultstate="collapsed" desc=" Generated Code // <editor-fold defaultstate="collapsed" // desc=" Generated Code ">//GEN-BEGIN:initComponents private void initComponents() { javax.swing.JPanel statusPanel = new javax.swing.JPanel(); lblUserName = new javax.swing.JLabel(); javax.swing.JPanel bottomPanel = new javax.swing.JPanel(); javax.swing.JPanel bottomLeftPanel = new javax.swing.JPanel(); openTicketList = new com.floreantpos.ui.TicketListView(); javax.swing.JPanel activityPanel = new javax.swing.JPanel(); btnNewTicket = new com.floreantpos.swing.PosButton(); btnEditTicket = new com.floreantpos.swing.PosButton(); btnVoidTicket = new com.floreantpos.swing.PosButton(); btnPayout = new com.floreantpos.swing.PosButton(); btnOrderInfo = new com.floreantpos.swing.PosButton(); javax.swing.JPanel bottomRightPanel = new javax.swing.JPanel(); btnShutdown = new com.floreantpos.swing.PosButton(); btnLogout = new com.floreantpos.swing.PosButton(); btnBackOffice = new com.floreantpos.swing.PosButton(); btnSalesReport = new com.floreantpos.swing.PosButton(); btnManager = new com.floreantpos.swing.PosButton(); btnClockOut = new com.floreantpos.swing.PosButton(); setLayout(new java.awt.BorderLayout(10, 10)); lblUserName.setFont(new java.awt.Font("Tahoma", 1, 18)); lblUserName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); statusPanel.add(lblUserName, java.awt.BorderLayout.PAGE_START); add(statusPanel, java.awt.BorderLayout.NORTH); bottomPanel.setLayout(new java.awt.BorderLayout(5, 5)); bottomLeftPanel.setBorder( javax.swing.BorderFactory.createTitledBorder( null, POSConstants.OPEN_TICKETS_AND_ACTIVITY, javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION)); bottomLeftPanel.setLayout(new java.awt.BorderLayout(5, 5)); bottomLeftPanel.add(openTicketList, java.awt.BorderLayout.CENTER); activityPanel.setPreferredSize(new java.awt.Dimension(655, 150)); activityPanel.setLayout(new java.awt.GridLayout(3, 0, 5, 5)); btnNewTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/new_ticket_32.png"))); btnNewTicket.setText(POSConstants.DINE_IN); activityPanel.add(btnNewTicket); btnTakeout = new com.floreantpos.swing.PosButton(); btnTakeout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/take_away.png"))); btnTakeout.setText(POSConstants.CAPITAL_TAKE_OUT); activityPanel.add(btnTakeout); // btnPickup = new PosButton(); // btnPickup.addActionListener(new ActionListener() { // public void actionPerformed(ActionEvent e) { // doHomeDelivery(Ticket.PICKUP); // } // }); // btnPickup.setText(POSConstants.PICKUP); // activityPanel.add(btnPickup); // btnHomeDelivery = new PosButton(); // btnHomeDelivery.addActionListener(new ActionListener() { // public void actionPerformed(ActionEvent e) { // doHomeDelivery(Ticket.HOME_DELIVERY); // } // }); // btnHomeDelivery.setText(POSConstants.HOME_DELIVERY); // activityPanel.add(btnHomeDelivery); /* btnDriveThrough = new PosButton(); btnDriveThrough.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doTakeout(Ticket.DRIVE_THROUGH); } }); btnDriveThrough.setText(POSConstants.DRIVE_THRU); activityPanel.add(btnDriveThrough); */ btnEditTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/edit_ticket_32.png"))); btnEditTicket.setText(POSConstants.CAPITAL_EDIT); activityPanel.add(btnEditTicket); btnSettleTicket = new com.floreantpos.swing.PosButton(); btnSettleTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/settle_ticket_32.png"))); btnSettleTicket.setText(POSConstants.CAPITAL_SETTLE); activityPanel.add(btnSettleTicket); if (!"false".equals(AppConfig.getFeatureGroupTicketFlag())) { btnGroupSettle = new com.floreantpos.swing.PosButton(); btnGroupSettle.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/settle_ticket_32.png"))); btnGroupSettle.setText( "<html><body>" + POSConstants.CAPITAL_SETTLE + "<br>" + POSConstants.CAPITAL_GROUP + "</body></html>"); activityPanel.add(btnGroupSettle); } if (!"false".equals(AppConfig.getFeatureSplitTicketFlag())) { btnSplitTicket = new com.floreantpos.swing.PosButton(); btnSplitTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/split_32.png"))); btnSplitTicket.setText(POSConstants.CAPITAL_SPLIT); activityPanel.add(btnSplitTicket); } btnReopenTicket = new com.floreantpos.swing.PosButton(); btnReopenTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/edit_ticket_32.png"))); btnReopenTicket.setText(POSConstants.CAPITAL_RE_OPEN); activityPanel.add(btnReopenTicket); btnVoidTicket.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/void_ticket_32.png"))); btnVoidTicket.setText(POSConstants.CAPITAL_VOID); activityPanel.add(btnVoidTicket); if (!"false".equals(AppConfig.getFeaturePenarikanFlag())) { btnPayout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pay_32.png"))); btnPayout.setText(POSConstants.CAPITAL_PAY_OUT); activityPanel.add(btnPayout); } btnOrderInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/search.png"))); btnOrderInfo.setText(POSConstants.ORDER_INFO); activityPanel.add(btnOrderInfo); bottomLeftPanel.add(activityPanel, java.awt.BorderLayout.SOUTH); // btnAssignDriver = new PosButton(); // btnAssignDriver.addActionListener(new ActionListener() { // public void actionPerformed(ActionEvent e) { // doAssignDriver(); // } // }); // btnAssignDriver.setText("<html>PILIH<br/>PENGANTAR</html>"); // activityPanel.add(btnAssignDriver); // // btnCloseOrder = new PosButton(); // btnCloseOrder.addActionListener(new ActionListener() { // public void actionPerformed(ActionEvent e) { // doCloseOrder(); // } // }); // btnCloseOrder.setText(POSConstants.CLOSE_ORDER); // activityPanel.add(btnCloseOrder); bottomPanel.add(bottomLeftPanel, java.awt.BorderLayout.CENTER); bottomRightPanel.setBorder( javax.swing.BorderFactory.createTitledBorder( null, "LAIN-LAIN", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION)); bottomRightPanel.setPreferredSize(new java.awt.Dimension(180, 10)); btnShutdown.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/shut_down_32.png"))); btnShutdown.setText(POSConstants.CAPITAL_SHUTDOWN); btnLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/log_out_32.png"))); btnLogout.setText(POSConstants.CAPITAL_LOGOUT); btnBackOffice.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/back_office.png"))); btnBackOffice.setText(POSConstants.CAPITAL_BACK_OFFICE); btnSalesReport.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/salesreport.png"))); btnSalesReport.setText(POSConstants.CAPITAL_SALES_REPORT); if (!"false".equalsIgnoreCase(AppConfig.getManagerMenuFlag())) { btnManager.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/user_32.png"))); btnManager.setText(POSConstants.CAPITAL_MANAGER); } btnClockOut.setIcon( new javax.swing.ImageIcon(getClass().getResource("/images/log_out_32.png"))); btnClockOut.setText(POSConstants.CAPITAL_CLOCK_OUT); bottomPanel.add(bottomRightPanel, java.awt.BorderLayout.EAST); bottomRightPanel.setLayout( new MigLayout("aligny bottom, insets 1 2 1 2, gapy 10", "[170px]", "[][][][][]")); bottomRightPanel.add(btnShutdown, "cell 0 5,grow"); bottomRightPanel.add(btnLogout, "cell 0 4,grow"); bottomRightPanel.add(btnSalesReport, "cell 0 3,grow"); bottomRightPanel.add(btnClockOut, "cell 0 2,grow"); bottomRightPanel.add(btnBackOffice, "cell 0 1,grow"); if (!"false".equalsIgnoreCase(AppConfig.getManagerMenuFlag())) { bottomRightPanel.add(btnManager, "cell 0 0,grow"); } add(bottomPanel, java.awt.BorderLayout.CENTER); } // </editor-fold>//GEN-END:initComponents