/**
   * PAINT recall that paint() is called the first time the window needs to be drawn, or if
   * something damages the window, and in this case by RefreshScreenNow()
   */
  public void paint(Graphics g) {
    super.paint(g); // first paint the panel normally

    // the following block of code is used
    // if this is the first time being drawn or if the window was resized
    // Otherwise we don't creat a new buffer
    Dimension d = getSize();

    // if this is the first time being drawn or if the window was resized
    if ((doubleBufferImage == null)
        || (d.width != doubleBufferImageSize.width)
        || (d.height != doubleBufferImageSize.height)) {
      doubleBufferImage = createImage(d.width, d.height);
      doubleBufferImageSize = d;
      if (doubleBufferGraphic != null) {
        doubleBufferGraphic.dispose();
      }
      doubleBufferGraphic = doubleBufferImage.getGraphics();
      doubleBufferGraphic.setFont(getFont());
    }

    doubleBufferGraphic.setColor(Color.white);
    doubleBufferGraphic.fillRect(0, 0, d.width, d.height);

    if ((fitToScreenAutomatically) || (screenIsEmpty)) {
      // if the user wants all the nodes on the screen,
      // or if these are the first nodes on the screen,
      // fit all nodes to the visible area
      FitToScreen();
    }

    // draw things on the screen before any nodes or edges appear
    MainClass.displayManager.PaintUnderScreen(doubleBufferGraphic);

    // draw all the nodes
    DisplayManager.NodeInfo nodeDisplayInfo;
    int xCoord, yCoord, imageWidth, imageHeight;
    for (Enumeration nodes = MainClass.displayManager.GetNodeInfo(); nodes.hasMoreElements(); ) {
      nodeDisplayInfo = (DisplayManager.NodeInfo) nodes.nextElement();

      // figure out where to put the node on the screen
      xCoord =
          ScaleNodeXCoordToScreenCoord(
              MainClass.locationAnalyzer.GetX(nodeDisplayInfo.GetNodeNumber()));
      yCoord =
          ScaleNodeYCoordToScreenCoord(
              MainClass.locationAnalyzer.GetY(nodeDisplayInfo.GetNodeNumber()));

      // if that spot is not on the visible area, don't draw it at all
      if ((xCoord > this.getSize().getWidth()) || (yCoord > this.getSize().getHeight())) {
        continue;
      }

      // MDW: Don't scale size of dots
      // imageWidth = (int)Math.max(20,xScale*nodeDisplayInfo.GetImageWidth()/100);
      // imageHeight = (int)Math.max(20,yScale*nodeDisplayInfo.GetImageHeight()/100);
      imageWidth = imageHeight = 20;

      MainClass.displayManager.PaintAllNodes(
          nodeDisplayInfo.GetNodeNumber(),
          xCoord - imageWidth / 2,
          yCoord - imageHeight / 2,
          xCoord + imageWidth / 2,
          yCoord + imageHeight / 2,
          doubleBufferGraphic);
    }

    // draw all the edges
    try {
      DisplayManager.EdgeInfo edgeDisplayInfo;
      for (Enumeration edges = MainClass.displayManager.GetEdgeInfo(); edges.hasMoreElements(); ) {
        edgeDisplayInfo = (DisplayManager.EdgeInfo) edges.nextElement();

        // figure out the coordinates of the endpoints of the edge
        int x1 =
            ScaleNodeXCoordToScreenCoord(
                MainClass.locationAnalyzer.GetX(edgeDisplayInfo.GetSourceNodeNumber()));
        int y1 =
            ScaleNodeYCoordToScreenCoord(
                MainClass.locationAnalyzer.GetY(edgeDisplayInfo.GetSourceNodeNumber()));
        int x2 =
            ScaleNodeXCoordToScreenCoord(
                MainClass.locationAnalyzer.GetX(edgeDisplayInfo.GetDestinationNodeNumber()));
        int y2 =
            ScaleNodeYCoordToScreenCoord(
                MainClass.locationAnalyzer.GetY(edgeDisplayInfo.GetDestinationNodeNumber()));

        // edgeDisplayInfo.paint(doubleBufferGraphic);
        MainClass.displayManager.PaintAllEdges(
            edgeDisplayInfo.GetSourceNodeNumber(),
            edgeDisplayInfo.GetDestinationNodeNumber(),
            x1,
            y1,
            x2,
            y2,
            doubleBufferGraphic);
      }
    } catch (Exception ex) {
      ex.printStackTrace();
    }
    // draw things over the entire display
    MainClass.displayManager.PaintOverScreen(doubleBufferGraphic);

    // Make everything that was drawn visible
    g.drawImage(doubleBufferImage, 0, 0, null);
  }
示例#2
0
  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>
  }
示例#3
0
  public void setUpProperties() {

    // <Begin_setUpProperties>

    // <UserCode_Begin_Bean_Top>
    // this.setModal(true);
    setResizable(false);
    // <UserCode_End_Bean_Top>

    try {
      JTable1.setRowHeight(22);
      JTable1.setModel(ViewTableModel);
      JTable1.setGridColor(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JTable1, ex);
    }

    // <UserCode_Begin_Bean_JTable1>

    // <UserCode_End_Bean_JTable1>

    try {
      JPanel3.setBorder(new javax.swing.border.TitledBorder(resourceBundle.getString("")));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JPanel3, ex);
    }

    // <UserCode_Begin_Bean_JPanel3>

    // <UserCode_End_Bean_JPanel3>

    try {
      JButton1.setFont(new Font("Dialog", 0, 12));
      JButton1.setText(resourceBundle.getString("Add"));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JButton1, ex);
    }

    // <UserCode_Begin_Bean_JButton1>
    JButton1.setMnemonic('A');
    // <UserCode_End_Bean_JButton1>

    try {
      JButton2.setFont(new Font("Dialog", 0, 13));
      JButton2.setText(resourceBundle.getString("Edit"));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JButton2, ex);
    }

    // <UserCode_Begin_Bean_JButton2>
    JButton2.setMnemonic('E');
    // <UserCode_End_Bean_JButton2>

    try {
      JButton3.setFont(new Font("Dialog", 0, 13));
      JButton3.setText(resourceBundle.getString("Delete"));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JButton3, ex);
    }

    // <UserCode_Begin_Bean_JButton3>
    JButton3.setMnemonic('D');
    // <UserCode_End_Bean_JButton3>

    try {
      closeButton.setFont(new Font("Dialog", 0, 13));
      closeButton.setText(resourceBundle.getString("Close"));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + closeButton,
          ex);
    }

    // <UserCode_Begin_Bean_closeButton>

    // <UserCode_End_Bean_closeButton>

    // <UserCode_Begin_Bean_JPanel5>
    // JPanel5.setVisible(false);
    // <UserCode_End_Bean_JPanel5>

    try {
      JLabel1.setFont(new Font("Dialog", 0, 12));
      JLabel1.setForeground(new Color(-16764109));
      JLabel1.setText(
          resourceBundle.getString(
              "Use the following list to add , edit a View , its Properties and authorized Operations"));
    } catch (Exception ex) {
      showStatus(
          resourceBundle.getString("Exception while setting properties for bean ") + JLabel1, ex);
    }

    // <UserCode_Begin_Bean_JLabel1>

    // <UserCode_End_Bean_JLabel1>

    // <UserCode_Begin_Bean_ViewTableModel>
    ViewTableModel.setDataVector(
        new Object[0][0], new String[] {resourceBundle.getString("Views List")});

    // <UserCode_End_Bean_ViewTableModel>
    JPanel5.setPreferredSize(
        new Dimension(
            JPanel5.getPreferredSize().width + 22, JPanel5.getPreferredSize().height + 38));
    closeButton.setPreferredSize(
        new Dimension(
            closeButton.getPreferredSize().width + 8, closeButton.getPreferredSize().height + 0));
    JButton3.setPreferredSize(
        new Dimension(
            JButton3.getPreferredSize().width + 32, JButton3.getPreferredSize().height + 0));
    JButton2.setPreferredSize(
        new Dimension(
            JButton2.getPreferredSize().width + 45, JButton2.getPreferredSize().height + 0));
    JButton1.setPreferredSize(
        new Dimension(
            JButton1.getPreferredSize().width + 47, JButton1.getPreferredSize().height + 2));
    JPanel2.setPreferredSize(
        new Dimension(
            JPanel2.getPreferredSize().width + 10, JPanel2.getPreferredSize().height + 26));
    JLabel2.setPreferredSize(
        new Dimension(
            JLabel2.getPreferredSize().width + 124, JLabel2.getPreferredSize().height + 72));
    JPanel6.setPreferredSize(
        new Dimension(
            JPanel6.getPreferredSize().width + 10, JPanel6.getPreferredSize().height + 114));
    JPanel1.setPreferredSize(
        new Dimension(
            JPanel1.getPreferredSize().width + 39, JPanel1.getPreferredSize().height + 38));

    // <End_setUpProperties>

    JPanel1.setBorder(
        new javax.swing.border.TitledBorder(resourceBundle.getString("View Settings")));
    JPanel5.setBorder(
        new javax.swing.border.TitledBorder(
            resourceBundle.getString("Views Properties and Operations")));
  }
  public static void processBrRequisitionFile(
      java.io.File filePortrait2Process,
      biz.systempartners.claims.ClaimsViewer claimsViewer,
      java.util.Vector invoiceVector,
      java.util.Vector filesVector) {

    biz.systempartners.claims.XMLClaimFile xmlClaimFile =
        new biz.systempartners.claims.XMLClaimFile();

    xmlClaimFile.processFile(filePortrait2Process);

    javax.swing.JTable tempInvoiceTable;

    java.util.Vector headerInvoiceVector = new java.util.Vector(1, 1);

    headerInvoiceVector.addElement("Invoice No.");

    //     claimsTable = new javax.swing.JTable(5,4);
    // claimsTable = claimsViewer.getInvoiceTable();
    claimsTable = xmlClaimFile.xmlClaim.getInvoiceTable();
    invoiceTable = claimsViewer.getInvoiceListTable();

    javax.swing.JPanel claimsViewerPanel = claimsViewer.getClaimsViewerPanel();

    javax.swing.JScrollPane jScrollPane11 = claimsViewer.getScrollPane();

    javax.swing.JScrollPane invoiceScrollPane = claimsViewer.getInvoiceListScrollPane();

    invoiceVector = claimsViewer.getInvoiceVector();

    java.util.Vector invoiceChildVector = new java.util.Vector(1, 1);
    javax.swing.JTextField patientNo = claimsViewer.getPatientNo();
    javax.swing.JTextField patientName = claimsViewer.getPatientName();
    javax.swing.JTextField schemeMemberNo = claimsViewer.getSchemeMemberNo();
    javax.swing.JTextField schemeName = claimsViewer.getSchemeName();
    javax.swing.JTextField schemePayer = claimsViewer.getSchemePayer();
    javax.swing.JTextField accountNo = claimsViewer.getAccountNo();
    javax.swing.JTextField invoiceNo = claimsViewer.getInvoiceNo();
    javax.swing.JTextField healthCareProvider = claimsViewer.getHealthCareProvider();

    jScrollPane11.setViewportView(claimsTable);
    if (claimsViewer.isShowing()) {
      claimsViewer.validate();
    } else {
      claimsViewer.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);
      claimsViewer.setVisible(true);
    }

    claimsViewer.invalidate();

    // try {

    //     try {

    //   java.io.FileInputStream requisFileIOStream = new
    // java.io.FileInputStream(filePortrait2Process);

    //   java.io.ObjectInputStream requisObjInStream = new
    // java.io.ObjectInputStream(requisFileIOStream);

    //                javax.swing.table.JTableHeader claimsTableHeader =
    // (javax.swing.table.JTableHeader)requisObjInStream.readObject();

    //  requisTable = (javax.swing.JTable)requisObjInStream.readObject();

    //  String invoiceNoString = (java.lang.String)requisObjInStream.readObject();
    String invoiceNoString = xmlClaimFile.xmlClaim.getInvoiceNumber();
    invoiceNo.setText(invoiceNoString);

    //  patientNo.setText((java.lang.String)requisObjInStream.readObject());
    patientNo.setText(xmlClaimFile.xmlClaim.getPatientNumber());
    System.out.println(
        "PATIENT NUMBER : "
            + xmlClaimFile.xmlClaim.getPatientNumber()
            + "   "
            + xmlClaimFile.xmlClaim.getPatientName()
            + "  "
            + xmlClaimFile.xmlClaim.getSchemeName());
    // patientName.setText((java.lang.String)requisObjInStream.readObject());
    patientName.setText(xmlClaimFile.xmlClaim.getPatientName());
    //   schemeMemberNo.setText((java.lang.String)requisObjInStream.readObject());
    schemeMemberNo.setText(xmlClaimFile.xmlClaim.getSchemeMemberNumber());
    //   schemeName.setText((java.lang.String)requisObjInStream.readObject());
    schemeName.setText(xmlClaimFile.xmlClaim.getSchemeName());
    //  schemePayer.setText((java.lang.String)requisObjInStream.readObject());
    schemePayer.setText(xmlClaimFile.xmlClaim.getSchemePayer());
    //  accountNo.setText((java.lang.String)requisObjInStream.readObject());
    accountNo.setText(xmlClaimFile.xmlClaim.getAccountNumber());
    healthCareProvider.setText(xmlClaimFile.xmlClaim.getHealthCareProvider());

    tempInvoiceTable = new javax.swing.JTable(invoiceVector, headerInvoiceVector);
    invoiceChildVector.add(invoiceNoString);
    invoiceChildVector.add(filePortrait2Process.getPath());
    if (filesVector == null) {
      filesVector = new java.util.Vector(1, 1);
    }

    filesVector.add(filePortrait2Process.getAbsolutePath());
    claimsViewer.filesVector = filesVector;
    if (invoiceVector == null) {
      invoiceVector = new java.util.Vector(1, 1);
    }
    invoiceVector.add(invoiceChildVector);
    /*
    invoiceNo.setText(invoiceNoString);
    invoiceChildVector.add(invoiceNoString);
    invoiceChildVector.add(filePortrait2Process.getPath());
    filesVector.add(filePortrait2Process.getAbsolutePath());
    //                System.out.println("Child Cector Size ="+invoiceChildVector.size());
    //                System.out.println("File saved in child vector ="+filePortrait2Process.getPath());
    invoiceVector.add(invoiceChildVector);
    //                            for (int j = 0; j < invoiceChildVector.capacity(); j++) {
    //                System.out.println("Child entry ["+invoiceChildVector.elementAt(j)+"]");
    //            }
    patientNo.setText((java.lang.String)requisObjInStream.readObject());

    patientName.setText((java.lang.String)requisObjInStream.readObject());

    schemeMemberNo.setText((java.lang.String)requisObjInStream.readObject());

    schemeName.setText((java.lang.String)requisObjInStream.readObject());

    schemePayer.setText((java.lang.String)requisObjInStream.readObject());

    accountNo.setText((java.lang.String)requisObjInStream.readObject());
    */
    tempInvoiceTable = new javax.swing.JTable(invoiceVector, headerInvoiceVector);

    System.out.println("Starting to populate tables ...");
    /**
     * for (int i = 0; i < requisTable.getModel().getRowCount(); i++) {
     *
     * <p>for (int j = 0; j < requisTable.getModel().getColumnCount(); j++){
     *
     * <p>if (requisTable.getValueAt(i,0) != null) {
     *
     * <p>claimsTable.setValueAt(requisTable.getValueAt(i,j), i, j);
     *
     * <p>System.out.println(requisTable.getValueAt(i,j)); } } }
     */
    for (int i = 0; i < tempInvoiceTable.getModel().getRowCount(); i++) {

      for (int j = 0; j < tempInvoiceTable.getModel().getColumnCount(); j++) {

        if (tempInvoiceTable.getValueAt(i, 0) != null) {

          invoiceTable.setValueAt(tempInvoiceTable.getValueAt(i, j), i, j);
          System.out.println("Invoices : " + tempInvoiceTable.getValueAt(i, j));
          System.out.println(tempInvoiceTable.getValueAt(i, j));
        }
      }
    }

    //        claimsTable.setModel(requisTable.getModel());

    gridBagConstraints = new java.awt.GridBagConstraints();

    gridBagConstraints.gridx = 0;

    gridBagConstraints.gridy = 0;

    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;

    gridBagConstraints.weightx = 1.0;

    gridBagConstraints.weighty = 100.0;

    claimsViewerPanel.removeAll();

    claimsViewerPanel.add(jScrollPane11, gridBagConstraints);

    invoiceScrollPane.setViewportView(invoiceTable);

    jScrollPane11.setViewportView(claimsTable);

    claimsViewerPanel.validate();

    for (int i = 0; i < invoiceVector.size(); i++) {

      java.util.Vector childVector = (java.util.Vector) invoiceVector.elementAt(i);

      for (int j = 0; j < childVector.size(); j++) {

        //               System.out.println("Child entry at ---- !!! ["+j+"] is
        // ["+childVector.elementAt(j)+"]");

        File file2SelectedInvoice;

        file2SelectedInvoice = new java.io.File(childVector.elementAt(j).toString());

        System.out.println("Selected File ---- !!!!! [" + file2SelectedInvoice.getPath() + "]");
      }

      //           for (int j = 0; j < childVector.size(); j++) {

      //            if  (childVector.elementAt(0).toString().equalsIgnoreCase(invoiceNo)) {

      //           }
      //        }

    }

    //   } catch(java.lang.ClassNotFoundException cnfExec) {

    //       javax.swing.JOptionPane.showMessageDialog(new java.awt.Frame(), cnfExec.getMessage());

    //    }

    // } catch(java.io.IOException ioExec) {

    //    javax.swing.JOptionPane.showMessageDialog(new java.awt.Frame(), ioExec.getMessage());

    //  }
  }
示例#5
0
  public void setUpProperties() throws Exception {

    // <Begin_setUpProperties>

    try {
      Top.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + Top, ex);
    }
    setResizable(false);
    try {
      JPanel1.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel1, ex);
    }

    try {
      RouterBtn.setFocusPainted(false);

      RouterBtn.setIcon(
          NmsClientUtil.getImageIcon(
              applet.getDocumentBase() + "../images/router_new1.png")); // No Internationalisation
      RouterBtn.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + RouterBtn, ex);
    }

    try {
      eight.setOpaque(true);
      eight.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + eight, ex);
    }
    eight.setVisible(false);
    try {
      one.setOpaque(true);
      one.setToolTipText(""); // No Internationalisation
      one.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + one, ex);
    }
    one.setVisible(false);
    try {
      six.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + six, ex);
    }
    six.setVisible(false);
    try {
      three.setOpaque(true);
      three.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + three, ex);
    }
    three.setVisible(false);
    try {
      four.setOpaque(true);
      four.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + four, ex);
    }
    four.setVisible(false);
    try {
      seven.setOpaque(true);
      seven.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + seven, ex);
    }
    seven.setVisible(false);
    try {
      two.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + two, ex);
    }
    two.setVisible(false);
    try {
      ten.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(NmsClientUtil.GetString("Exception while setting properties for bean ") + ten, ex);
    }
    ten.setVisible(false);
    try {
      five.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + five, ex);
    }
    five.setVisible(false);
    try {
      nine.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + nine, ex);
    }
    nine.setVisible(false);
    try {
      JPanel2.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel2, ex);
    }

    try {
      JPanel3.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel3, ex);
    }

    try {
      JLabel1.setBackground(new Color(-1));
      JLabel1.setHorizontalTextPosition(0);
      JLabel1.setHorizontalAlignment(0);
      JLabel1.setText(NmsClientUtil.GetString("Router details"));
      JLabel1.setFont(new Font("Dialog", 1, 14)); // No Internationalisation
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JLabel1, ex);
    }

    try {
      JPanel4.setBackground(new Color(-1));
      java.lang.String[] JPanel4cardAndClassNames_array = new java.lang.String[2];
      JPanel4cardAndClassNames_array[0] =
          "router=com.adventnet.nms.examples.routermap.RouterDetails"; // No Internationalisation
      JPanel4cardAndClassNames_array[1] =
          "inter=com.adventnet.nms.examples.routermap.IFDetails"; // No Internationalisation
      JPanel4.setCardAndClassNames(JPanel4cardAndClassNames_array);
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel4, ex);
    }

    try {
      JPanel5.setBackground(new Color(-1));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + JPanel5, ex);
    }

    try {
      RefreshBtn.setText(NmsClientUtil.GetString("Refresh"));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + RefreshBtn, ex);
    }

    try {
      CloseBtn.setText(NmsClientUtil.GetString("Close"));
    } catch (Exception ex) {
      showStatus(
          NmsClientUtil.GetString("Exception while setting properties for bean ") + CloseBtn, ex);
    }
    CloseBtn.setPreferredSize(
        new Dimension(
            CloseBtn.getPreferredSize().width + 12, CloseBtn.getPreferredSize().height + 0));
    JPanel5.setPreferredSize(
        new Dimension(
            JPanel5.getPreferredSize().width + 229, JPanel5.getPreferredSize().height + 4));
    JPanel4.setPreferredSize(
        new Dimension(
            JPanel4.getPreferredSize().width + 507, JPanel4.getPreferredSize().height + 293));
    JLabel1.setPreferredSize(
        new Dimension(
            JLabel1.getPreferredSize().width + 132, JLabel1.getPreferredSize().height + 8));
    JPanel3.setPreferredSize(
        new Dimension(
            JPanel3.getPreferredSize().width + 168, JPanel3.getPreferredSize().height + 6));

    // <End_setUpProperties>
  }
示例#6
0
  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>
  }
  /**
   * 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