Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.ColumnSpec


      if (alignment == ColumnSpec.RIGHT) {
        alignment = ColumnSpec.LEFT;
      }
    }

    return new ColumnSpec(alignment, spec.getSize(), spec.getResizeWeight());
  }
View Full Code Here


            JPanel panel = new JPanel();
            panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.RENAMEREPORTDIALOG.TITLE")));
            panel.setLayout(new FormLayout(
                    new ColumnSpec[] {
                            new ColumnSpec("10px"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("75px"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("100px")
                    },
                    new RowSpec[] {
                            new RowSpec("20px"),
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec("20px")
View Full Code Here

            int groupName = ((Integer)headGroupNameIter.next()).intValue();
            JPanel groupPanel = new JPanel();
            JScrollPane groupScrollPane = new JScrollPane();
            groupScrollPane.setViewportView(groupPanel);
            ColumnSpec[] columnSpec = new ColumnSpec[] {
                    new ColumnSpec("10px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("150px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("150px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("150px")
            };
            int rowCount = family.getGroupHeadFieldCount(groupName);
            RowSpec[] rowSpec = new RowSpec[rowCount * 2 + 1];
            rowSpec[0] = new RowSpec("10px");
            rowSpec[1] = FormFactory.LINE_GAP_ROWSPEC;
View Full Code Here

        SealedObject password = null;
        JPanel panel = new JPanel();
        CellConstraints cc = new CellConstraints();
        panel.setLayout(new FormLayout(
            new ColumnSpec[] {
                    new ColumnSpec("10px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("150px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("100px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("150px")
            },
            new RowSpec[] {
                    new RowSpec("10px"),
                    FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec("20px"),
View Full Code Here

                    JPanel detailPanel = new JPanel();                       
                    //======== detailPanel ========
                    {
                            detailPanel.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            new ColumnSpec("10px"),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec("center:75px"),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec("130px"),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec("120px")
                                    },
                                    new RowSpec[] {
                                            new RowSpec("10px"),
                                            FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.dluY(35), FormSpec.NO_GROW),
View Full Code Here

                        }
                );
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
      new ColumnSpec[] {
        new ColumnSpec("10px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("100px:grow"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("100px:grow"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("10px")
      },
      new RowSpec[] {
        new RowSpec("10px"),
        FormFactory.LINE_GAP_ROWSPEC,
        new RowSpec("20px"),
View Full Code Here

                        }
                );
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
      new ColumnSpec[] {
        new ColumnSpec("10px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("300px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("20px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("300px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        FormFactory.DEFAULT_COLSPEC
      },
      new RowSpec[] {
        new RowSpec("fill:10px"),
View Full Code Here

                CellConstraints cc = new CellConstraints();
                view.setTitle(TxtManager.getTxt("VIEW." + currentGVGroup.getGrp()));
                Container viewContentPane = view.getContentPane();
                viewContentPane.removeAll();
                ColumnSpec[] columnSpec = new ColumnSpec[] {
                    new ColumnSpec("10px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("10px")
                };
                RowSpec[] rowSpec = new RowSpec[currentGVGroup.getGvs().size() * 2 + 3];
                rowSpec[0] = new RowSpec("fill:10px");
                rowSpec[1] = FormFactory.LINE_GAP_ROWSPEC;
                int n = 1;
                for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
                    n++;
                    rowSpec[n] = FormFactory.DEFAULT_ROWSPEC;
                    n++;
                    rowSpec[n] = FormFactory.LINE_GAP_ROWSPEC;
                }
                rowSpec[n + 1] = new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW);
                viewContentPane.setLayout(new FormLayout(columnSpec, rowSpec));
               
                n = 1;
                groupComponents = new Vector();
                for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
                   
                        GV gv = (GV)currentGVGroup.getGvs().get(i - 1);
                        JPanel panel = new JPanel();
                        panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.GV." + gv.getVid())));
                        panel.setLayout(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec("10px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px")
                                },
                                RowSpec.decodeSpecs("5px, default, 5px")));
                       
                        JLabel label = new JLabel(TxtManager.getTxt("VIEW.GV." + gv.getVid()));
                        panel.add(label, cc.xy(3, 2));
View Full Code Here

      }

    });
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(new ColumnSpec[] {
        new ColumnSpec("10px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("300px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("20px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("300px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        FormFactory.DEFAULT_COLSPEC }, new RowSpec[] {
        new RowSpec("10px"), FormFactory.LINE_GAP_ROWSPEC,
        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
        new RowSpec("150px"), FormFactory.LINE_GAP_ROWSPEC,
View Full Code Here

                        }
                );
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
      new ColumnSpec[] {
        new ColumnSpec("10px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("100px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec("100px"),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
      },
      new RowSpec[] {
        new RowSpec("10px"),
        FormFactory.LINE_GAP_ROWSPEC,
        new RowSpec("20px"),
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.layout.ColumnSpec

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.