Examples of Insets


Examples of java.awt.Insets

       
        descriptionField = ComponentFactory.getTextArea();
        descriptionField.setPreferredSize(new Dimension(600, 79));
        descriptionField.setText(getShortDescription((String) dco.getValue(Software._B_DESCRIPTION)));
        add(descriptionField, Layout.getGBC( 0, 3, 4, 1, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 5, 5, 0), 0, 0));
        add(getPicturePanel(getPictures()), Layout.getGBC( 4, 0, 1, 4, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0));
    }
View Full Code Here

Examples of java.awt.Insets

    gbc.gridy = gridY;
    gbc.gridx = 0;
    gbc.anchor = GridBagConstraints.WEST;
    gbc.weightx = 0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(5, 5, 0, 5);
    carrierPanel.add(label, gbc);


    if (entry.isMandatory())
    {
      gbc = new GridBagConstraints();
      gbc.gridy = gridY;
      gbc.gridx = 1;
      gbc.anchor = GridBagConstraints.WEST;
      gbc.insets = new Insets(5, 0, 0, 0);
      final JLabel mandatoryLabel = new JLabel("*");
      mandatoryLabel.setToolTipText(messages.getString("ParameterReportControllerPane.MandatoryParameter"));
      carrierPanel.add(mandatoryLabel, gbc);
    }

    gbc = new GridBagConstraints();
    gbc.gridy = gridY;
    gbc.gridx = 2;
    gbc.anchor = GridBagConstraints.WEST;
    gbc.weightx = 1;
    if (editor instanceof ButtonParameterComponent)
    {
      gbc.fill = GridBagConstraints.HORIZONTAL;
    }
    gbc.ipadx = 100;
    gbc.insets = new Insets(5, 0, 0, 0);
    carrierPanel.add(editor, gbc);

    gbc = new GridBagConstraints();
    gbc.gridy = gridY + 1;
    gbc.gridx = 1;
    gbc.anchor = GridBagConstraints.NORTH;
    gbc.weightx = 1;
    gbc.gridwidth = 2;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(5, 0, 0, 0);
    carrierPanel.add(errorLabel, gbc);
  }
View Full Code Here

Examples of java.awt.Insets

  {
    defaultComp.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    abstractButton.setSelected(isSelected);
    abstractButton.setText(String.valueOf(value));
    abstractButton.setFont(new Font("Dialog", Font.PLAIN, 10));
    abstractButton.setMargin(new Insets(2, 0, 3, 0));

    return this;
  }
View Full Code Here

Examples of java.awt.Insets

  public Dimension preferredLayoutSize(final Container parent)
  {

    synchronized (parent.getTreeLock())
    {
      final Insets insets = parent.getInsets();
      if (parent.getComponentCount() > 0)
      {
        final Component component = parent.getComponent(0);
        final Dimension d = component.getPreferredSize();
        return new Dimension(
View Full Code Here

Examples of java.awt.Insets

  public Dimension minimumLayoutSize(final Container parent)
  {

    synchronized (parent.getTreeLock())
    {
      final Insets insets = parent.getInsets();
      if (parent.getComponentCount() > 0)
      {
        final Component component = parent.getComponent(0);
        final Dimension d = component.getMinimumSize();
        return new Dimension(d.width + insets.left + insets.right,
View Full Code Here

Examples of java.awt.Insets

    synchronized (parent.getTreeLock())
    {
      if (parent.getComponentCount() > 0)
      {
        final Insets insets = parent.getInsets();
        final Dimension parentSize = parent.getSize();
        final Component component = parent.getComponent(0);
        final Dimension componentSize = component.getPreferredSize();
        final int xx = insets.left + (
            Math.max((parentSize.width - insets.left - insets.right
View Full Code Here

Examples of java.awt.Insets

        addComponent(getLabel(MusicAlbum._F_ARTISTS, false, field1Length), 1, 1);
        addComponent(getLabel(DcMediaObject._E_RATING, true, label2Length), 2, 1);
        addComponent(getRatingValueLabel(), 3, 1);       
       
        add(tracksField, Layout.getGBC( 0, 2, 4, 1, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 5, 5, 0), 0, 0));
        add(getPicturePanel(getPictures()), Layout.getGBC( 4, 0, 1, 3, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0));       
    }  
View Full Code Here

Examples of java.awt.Insets

       
        descriptionField = ComponentFactory.getTextArea();
        descriptionField.setPreferredSize(new Dimension(600, 79));
        descriptionField.setText(getShortDescription((String) dco.getValue(Software._B_DESCRIPTION)));
        add(descriptionField, Layout.getGBC( 0, 3, 4, 1, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 5, 5, 0), 0, 0));
        add(getPicturePanel(getPictures()), Layout.getGBC( 4, 0, 1, 4, 10.0, 10.0,
            GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0));       
    }
View Full Code Here

Examples of java.awt.Insets

   
    @Override
    public abstract void build();
   
    protected void addComponent(JComponent component, int x, int y) {
        Insets insets = y == 0 && x == 0 ?
                            new Insets(5, 5, 0, 0) : y == 0
                                    new Insets(5, 0, 0, 0) : x == 0 ?
                                            new Insets(0, 5, 0, 0) :
                                                new Insets(0, 0, 0, 0);
        add(component, Layout.getGBC( x, y, 1, 1, 1.0, 1.0
           ,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0));         
    }
View Full Code Here

Examples of java.awt.Insets

               
                label = ComponentFactory.getPictureField(true, false);
                label.setValue(image);
                panel.add(label, Layout.getGBC( 0, 0, 1, 1, 1.0, 1.0
                         ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                          new Insets(0, 0, 0, 0), 0, 0));
                break;
            }
        }
       
        return panel;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.