Package org.compiere.swing

Examples of org.compiere.swing.CPanel


    box.add(messagePane);
    box.add(new JSeparator());
   
    getContentPane().add(box, BorderLayout.NORTH);
   
    CPanel fieldsPanel = new CPanel(new BorderLayout());
   
    // Price Entry Components
    //
    // Create the section of the window containing the price entry fields.

    int margin = 5;
    int pad = 15;
    priceEntryPanel.setLayout(new GridBagLayout());
   
    priceEntryPanel.add(new JLabel("List Price"),
        new GridBagConstraints(0, 0, 1, 1, 0.2, 0.0, GridBagConstraints.EAST,
        GridBagConstraints.NONE, new Insets(12, 5, 5, 12), 0, 0));
    priceEntryPanel.add(fPriceList, new GridBagConstraints(1, 0, 1, 1, 0.8, 0.0,
        GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
        new Insets(12, 0, 5, 150), 0, 0));
   
    priceEntryPanel.add(new JLabel("Standard Price"),
        new GridBagConstraints(0, 1, 1, 1, 0.2, 0.0, GridBagConstraints.EAST,
        GridBagConstraints.NONE, new Insets(0, 5, 5, 12), 0, 0));
    priceEntryPanel.add(fPriceStd, new GridBagConstraints(1, 1, 1, 1, 0.8, 0.0,
        GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
        new Insets(0, 0, 5, 150), 0, 0));
   
    priceEntryPanel.add(new JLabel("Limit Price"),
        new GridBagConstraints(0, 2, 1, 1, 0.2, 0.0, GridBagConstraints.EAST,
        GridBagConstraints.NONE, new Insets(0, 5, 5, 12), 0, 0));
    priceEntryPanel.add(fPriceLimit, new GridBagConstraints(1, 2, 1, 1, 0.8, 0.0,
        GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
        new Insets(0, 0, 5, 150), 0, 0));
   
    fieldsPanel.add(priceEntryPanel, BorderLayout.NORTH);
   
    // Price List Components
    //
    // Create the section of the panel containing the Price List selections,
    // the Select All / None buttons and the text counting the selected items.
   
    priceListPanel.add(Box.createVerticalStrut(pad));
    box = Box.createHorizontalBox();
    box.add(Box.createHorizontalStrut(margin));
    JScrollPane scrollPane = new JScrollPane(getSelectablePriceLists());
    scrollPane.setPreferredSize(new Dimension(300, 300));
    box.add(scrollPane);
    box.add(Box.createHorizontalStrut(margin));
    priceListPanel.add(box);
    priceListPanel.add(Box.createVerticalStrut(margin));
    box = Box.createHorizontalBox();
    box.add(Box.createHorizontalStrut(margin));
    box.add(bSelectAll);
    box.add(Box.createHorizontalStrut(margin));
    box.add(bSelectNone);
    box.add(Box.createHorizontalGlue());
    box.add(Box.createHorizontalStrut(margin));
    priceListPanel.add(box);
    priceListPanel.add(Box.createVerticalStrut(margin));
    box = Box.createHorizontalBox();
    box.add(Box.createHorizontalStrut(margin));
    box.add(fDocumentCount);
    box.add(Box.createHorizontalGlue());
    box.add(Box.createHorizontalStrut(margin));
    box.setMaximumSize(new Dimension(Short.MAX_VALUE, 17));
    priceListPanel.add(box);
    priceListPanel.add(Box.createVerticalStrut(pad));
   
    fieldsPanel.add(priceListPanel, BorderLayout.CENTER);
   
    // Add the OK and Cancel buttons on one line and on the next add the status
    // bar at the bottom.
   
    fieldsPanel.add(confirmPanel, BorderLayout.SOUTH);
    getContentPane().add(fieldsPanel, BorderLayout.CENTER);
    getContentPane().add(statusBar, BorderLayout.SOUTH);

    bSelectAll.addActionListener(this);
    bSelectNone.addActionListener(this);
View Full Code Here


    southPanel.add(bPrint, null);
    southPanel.add(bOK, null);
    dialog.add(messagePane, BorderLayout.NORTH);
    messagePane.setBorder(null);
    messagePane.setMaximumSize(new Dimension(600, 300));
    centerPanel = new CPanel();
    centerPanel.setBorder(null);
    centerPanel.setLayout(new BorderLayout());
    dialog.add(centerPanel, BorderLayout.CENTER);
    mainLayout.setVgap(2);
    //
View Full Code Here

      sameWarehouseCb.setText(Msg.getMsg(Env.getCtx(), "FromSameWarehouseOnly", true));
      sameWarehouseCb.setToolTipText(Msg.getMsg(Env.getCtx(), "FromSameWarehouseOnly", false));
      rmaLabel.setText(Msg.translate(Env.getCtx(), "M_RMA_ID"));
        upcLabel.setText(Msg.getElement(Env.getCtx(), "UPC", false));

      CPanel parameterPanel = dialog.getParameterPanel();
      parameterPanel.setLayout(new BorderLayout());
      CPanel parameterStdPanel = new CPanel(new GridBagLayout());
      parameterPanel.add(parameterStdPanel, BorderLayout.CENTER);

      parameterStdPanel.add(bPartnerLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
          ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
      if (bPartnerField != null)
        parameterStdPanel.add(bPartnerField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
     
      if (! isRMAWindow) {
          parameterStdPanel.add(orderLabel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
              ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
          parameterStdPanel.add(orderField,  new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
              ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));

          parameterStdPanel.add(invoiceLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
              ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
          parameterStdPanel.add(invoiceField,  new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
              ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
      }
     
      parameterStdPanel.add(locatorLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
          ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
      parameterStdPanel.add(locatorField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
          ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
      parameterStdPanel.add(sameWarehouseCb, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
          ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
        parameterStdPanel.add(upcLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
                ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
        parameterStdPanel.add(upcField, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
     
      if (isRMAWindow) {
          // Add RMA document selection to panel
          parameterStdPanel.add(rmaLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
              ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
          parameterStdPanel.add(rmaField,  new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
              ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
      }
    }   //  jbInit
View Full Code Here

    mainLayout.setVgap(2);
    if (isNested)
      this.add(m_curGC, BorderLayout.CENTER);
    else
    {
      CPanel dummy = new CPanel();
      dummy.setLayout(new BorderLayout());
      dummy.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));
      dummy.add(tabPanel, BorderLayout.CENTER);
      this.add(dummy, BorderLayout.CENTER);
    }
    //  southPanel
    this.add(statusBar, BorderLayout.SOUTH);
    //  northPanel
View Full Code Here

TOP

Related Classes of org.compiere.swing.CPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.