當前位置: 首頁>>代碼示例>>Java>>正文


Java CellConstraints類代碼示例

本文整理匯總了Java中com.jgoodies.forms.layout.CellConstraints的典型用法代碼示例。如果您正苦於以下問題:Java CellConstraints類的具體用法?Java CellConstraints怎麽用?Java CellConstraints使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CellConstraints類屬於com.jgoodies.forms.layout包,在下文中一共展示了CellConstraints類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: JPanel

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
 * call it in your code!
 *
 * @noinspection ALL
 */
private void $$$setupUI$$$() {
    contentPane = new JPanel();
    contentPane.setLayout(new FormLayout("fill:4dlu:noGrow,fill:d:grow,fill:4dlu:noGrow",
            "center:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,center:max(d;15dlu):noGrow,center:4dlu:noGrow"));
    contentPane.setMinimumSize(new Dimension(300, 300));
    contentPane.setPreferredSize(new Dimension(500, 500));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:d:grow,left:4dlu:noGrow,fill:max(d;50dlu):noGrow,left:4dlu:noGrow,fill:max(d;50dlu):noGrow",
            "center:d:grow"));
    panel1.setPreferredSize(new Dimension(300, 24));
    CellConstraints cc = new CellConstraints();
    contentPane.add(panel1, cc.xy(2, 4));
    buttonOK = new JButton();
    buttonOK.setText("Confirm Security Exception");
    buttonOK.setToolTipText("Accept this cerficate");
    panel1.add(buttonOK, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    buttonCancel = new JButton();
    buttonCancel.setText("Cancel");
    panel1.add(buttonCancel, cc.xy(5, 1));
    sslCertificateForm = new SSLCertificateForm();
    contentPane.add(sslCertificateForm.$$$getRootComponent$$$(),
                    cc.xy(2, 2, CellConstraints.FILL, CellConstraints.FILL));
}
 
開發者ID:Hitachi-Data-Systems,項目名稱:Open-DM,代碼行數:31,代碼來源:SSLCertificateAllowDialog.java

示例2: JPanel

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
 * call it in your code!
 *
 * @noinspection ALL
 */
private void $$$setupUI$$$() {
    contentPane = new JPanel();
    contentPane.setLayout(new FormLayout("fill:4dlu:noGrow,fill:d:grow,fill:4dlu:noGrow",
            "center:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,center:max(d;15dlu):noGrow,center:4dlu:noGrow"));
    contentPane.setMinimumSize(new Dimension(300, 300));
    contentPane.setPreferredSize(new Dimension(500, 500));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:d:grow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow",
            "center:15dlu:grow"));
    panel1.setPreferredSize(new Dimension(300, 24));
    CellConstraints cc = new CellConstraints();
    contentPane.add(panel1, cc.xy(2, 4));
    buttonOK = new JButton();
    buttonOK.setText("OK");
    panel1.add(buttonOK, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    buttonCancel = new JButton();
    buttonCancel.setText("Cancel");
    panel1.add(buttonCancel, cc.xy(5, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    sslCertificateForm = new SSLCertificateForm();
    contentPane.add(sslCertificateForm.$$$getRootComponent$$$(),
                    cc.xy(2, 2, CellConstraints.FILL, CellConstraints.FILL));
}
 
開發者ID:Hitachi-Data-Systems,項目名稱:Open-DM,代碼行數:30,代碼來源:SSLCertificateDialog.java

示例3: JPanel

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
 * call it in your code!
 *
 * @noinspection ALL
 */
private void $$$setupUI$$$() {
    contentPane = new JPanel();
    contentPane.setLayout(new FormLayout(
            "fill:max(d;4dlu):noGrow,left:150dlu:grow,fill:d:noGrow,fill:50dlu:noGrow,fill:max(d;4dlu):noGrow,fill:d:noGrow",
            "top:110px:grow,top:m:noGrow,top:4dlu:noGrow,top:15dlu:noGrow,top:4dlu:noGrow"));
    contentPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(),
                                                           null));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout("fill:max(d;4px):noGrow", "center:d:noGrow"));
    CellConstraints cc = new CellConstraints();
    contentPane.add(panel1, cc.xyw(2, 2, 5));
    final JScrollPane scrollPane1 = new JScrollPane();
    contentPane.add(scrollPane1, cc.xyw(2, 1, 3, CellConstraints.FILL, CellConstraints.FILL));
    propertyTable = new JTable();
    propertyTable.setCellSelectionEnabled(true);
    propertyTable.setFillsViewportHeight(true);
    propertyTable.setRowSelectionAllowed(true);
    scrollPane1.setViewportView(propertyTable);
    closeButton = new JButton();
    closeButton.setText("Close");
    contentPane.add(closeButton, cc.xy(4, 4, CellConstraints.FILL, CellConstraints.FILL));
}
 
開發者ID:Hitachi-Data-Systems,項目名稱:Open-DM,代碼行數:29,代碼來源:FilePropertiesDialog.java

示例4: getOnUpdateContainer

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
public JPanel getOnUpdateContainer() {

        if (onUpdateContainer == null) {
            onUpdateContainer = new JPanel();

            String rowDef = "p,2dlu";
            String colDef = "p,p,p,p";

            FormLayout layout = new FormLayout(colDef, rowDef);
            onUpdateContainer.setLayout(layout);

            CellConstraints cons = new CellConstraints();

            onUpdateContainer.add(getOnUpdateCascadeNothing(), cons.xywh(1, 1, 1, 1));
            onUpdateContainer.add(getOnUpdateCascade(), cons.xywh(2, 1, 1, 1));
            onUpdateContainer.add(getOnUpdateRestrict(), cons.xywh(3, 1, 1, 1));
            onUpdateContainer.add(getOnUpdateSetNull(), cons.xywh(4, 1, 1, 1));
            onUpdateContainer.setName("Component_7");
        }

        return onUpdateContainer;
    }
 
開發者ID:mirkosertic,項目名稱:ERDesignerNG,代碼行數:23,代碼來源:RelationEditorView.java

示例5: getPluginData

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
private PanelBuilder getPluginData(BundleVersion p) {
	FormLayout layout = new FormLayout("5dlu, fill:pref:grow, 5dlu","5dlu,pref,15dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu");
	PanelBuilder builder = new PanelBuilder(layout);
	CellConstraints cc = new CellConstraints();
	builder.setBackground(Color.white);
	
	builder.addLabel(p.getBundle().getName(), cc.xy(2, 2));
	builder.addSeparator("", cc.xyw(2, 3, 1));
	builder.addLabel((p.getBundle().getName().equals(p.getBundle().getSymbolicName()) ? "Version: " + p.getVersion() : ("<html>Version: " + p.getVersion() + "<br>" + p.getBundle().getSymbolicName() + "</html>")), cc.xy(2, 4));
	builder.addLabel((p.getBundle().getShortDescription() != null ? Utils.printDescription(p.getBundle().getShortDescription(), 40) : ""), cc.xy(2, 6));
	builder.addLabel((p.getReleaseDate() != null ? "Release date: " + p.getReleaseDate() : ""), cc.xy(2, 10));

	builder.addLabel(Utils.printAuthors(p), cc.xy(2, 12));
	builder.add(getWebsiteLabel(p), cc.xy(2, 14));
	return builder;
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:17,代碼來源:PluginManagerDialog.java

示例6: initialize

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Initialize method.
 */
private void initialize() {

    EditorKit editorKit = new SQLEditorKit();
    sqlText.setEditorKitForContentType("text/sql", editorKit);
    sqlText.setContentType("text/sql");

    String rowDef = "2dlu,p,2dlu,p,fill:220dlu,10dlu,p,2dlu";
    String colDef = "2dlu,left:45dlu,2dlu,fill:140dlu:grow,fill:60dlu,2dlu,fill:60dlu,2dlu";

    FormLayout layout = new FormLayout(colDef, rowDef);
    setLayout(layout);

    CellConstraints cons = new CellConstraints();

    add(getComponent1(), cons.xywh(2, 2, 1, 1));
    add(getEntityName(), cons.xywh(4, 2, 4, 1));
    add(getMainTabbedPane(), cons.xywh(2, 4, 6, 2));
    add(getOkButton(), cons.xywh(5, 7, 1, 1));
    add(getCancelButton(), cons.xywh(7, 7, 1, 1));
}
 
開發者ID:mirkosertic,項目名稱:ERDesignerNG,代碼行數:24,代碼來源:ViewEditorView.java

示例7: defineLayout

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
private void defineLayout ()
{
    FormLayout layout = Panel.makeFormLayout(2, 3);
    PanelBuilder builder = new PanelBuilder(layout, getBody());

    ///builder.setDefaultDialogBorder();
    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(evalField, cst.xy(1, r));
    builder.add(anchorSpinner, cst.xyw(3, r, 3));
    builder.add(shapeSpinner, cst.xyw(7, r, 5));

    r += 2; // --------------------------------
    builder.add(keyPointField.getLabel(), cst.xy(9, r));
    builder.add(keyPointField.getField(), cst.xy(11, r));
}
 
開發者ID:Audiveris,項目名稱:audiveris,代碼行數:18,代碼來源:TemplateBoard.java

示例8: getOnDeleteContainer

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
public JPanel getOnDeleteContainer() {

        if (onDeleteContainer == null) {
            onDeleteContainer = new JPanel();

            String rowDef = "p,2dlu";
            String colDef = "p,p,p,p";

            FormLayout layout = new FormLayout(colDef, rowDef);
            onDeleteContainer.setLayout(layout);

            CellConstraints cons = new CellConstraints();

            onDeleteContainer.add(getOnDeleteCascadeNothing(), cons.xywh(1, 1, 1, 1));
            onDeleteContainer.add(getOnDeleteCascade(), cons.xywh(2, 1, 1, 1));
            onDeleteContainer.add(getOnDeleteRestrict(), cons.xywh(3, 1, 1, 1));
            onDeleteContainer.add(getOnDeleteSetNull(), cons.xywh(4, 1, 1, 1));
            onDeleteContainer.setName("Component_7");
        }

        return onDeleteContainer;
    }
 
開發者ID:mirkosertic,項目名稱:ERDesignerNG,代碼行數:23,代碼來源:RelationEditorView.java

示例9: defineLayout

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
@Override
public int defineLayout (PanelBuilder builder,
                         CellConstraints cst,
                         int r)
{
    r = super.defineLayout(builder, cst, r);

    builder.add(kindLabel, cst.xyw(5, r, 3));
    builder.add(kindCombo, cst.xyw(9, r, 3));
    r += 2;

    // Layout global and local data as mutual overlays
    globalData.defineLayout(builder, cst, r);
    r = localDataMean.defineLayout(builder, cst, r);
    r = localDataDev.defineLayout(builder, cst, r);

    return r;
}
 
開發者ID:Audiveris,項目名稱:audiveris,代碼行數:19,代碼來源:ScoreParameters.java

示例10: initButtonPanel

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
private void initButtonPanel() {
  
  buttonPanel = new JPanel();
  buttonPanel.setBorder(BorderFactory.createCompoundBorder(
          BorderFactory.createTitledBorder(""),
          BorderFactory.createEmptyBorder(10, 0, 0, 0)));
  
  FormLayout layout = new FormLayout(
          "20dlu, pref, 5dlu, pref, 20dlu",  // colonnes
          "10dlu, pref, 20dlu");  // lignes
  buttonPanel.setLayout(layout);
  CellConstraints cc = new CellConstraints();
  
  okay = new JButton("Add query with filter");
  cancel = new JButton("Close");
  
  okay.addActionListener( this );
  cancel.addActionListener( this );
  
  buttonPanel.add(okay, cc.xy(2, 2));
  buttonPanel.add(cancel, cc.xy(4, 2));

}
 
開發者ID:IGNF,項目名稱:geoxygene,代碼行數:24,代碼來源:EditPostgisQuery.java

示例11: initialize

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Initialize method.
 */
private void initialize() {

    String rowDef = "2dlu,p,8dlu,p,2dlu,p,8dlu,p,2dlu,fill:300dlu,8dlu,p,2dlu";
    String colDef = "2dlu,60dlu,2dlu,fill:250dlu:grow,2dlu,30dlu,2dlu";

    FormLayout layout = new FormLayout(colDef, rowDef);
    setLayout(layout);

    CellConstraints cons = new CellConstraints();

    add(new DefaultSeparator(ERDesignerBundle.TARGET), cons.xywh(2, 2, 5, 1));
    add(new DefaultLabel(ERDesignerBundle.SRCDIRECTORY), cons.xywh(2, 4, 1, 1));
    add(getSrcDirectory(), cons.xywh(4, 4, 1, 1));
    add(getSearchDirectoryButton(), cons.xywh(6, 4, 1, 1));
    add(new DefaultLabel(ERDesignerBundle.PACKAGENAME), cons.xywh(2, 6, 1, 1));
    add(getPackageName(), cons.xywh(4, 6, 3, 1));
    add(new DefaultSeparator(ERDesignerBundle.DATATYPEMAPPING), cons.xywh(2, 8, 5, 1));
    add(getMappingTable().getScrollPane(), cons.xywh(2, 10, 5, 1));

    add(getComponent8(), cons.xywh(2, 12, 5, 1));
}
 
開發者ID:mirkosertic,項目名稱:ERDesignerNG,代碼行數:25,代碼來源:OpenXavaExportEditorView.java

示例12: getComponent8

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
/**
 * Getter method for component Component_8.
 *
 * @return the initialized component
 */
public JPanel getComponent8() {

    if (component8 == null) {
        component8 = new JPanel();

        String rowDef = "p";
        String colDef = "60dlu,2dlu:grow,60dlu";

        FormLayout layout = new FormLayout(colDef, rowDef);
        component8.setLayout(layout);

        CellConstraints cons = new CellConstraints();

        component8.add(getOKButton(), cons.xywh(1, 1, 1, 1));
        component8.add(getCancelButton(), cons.xywh(3, 1, 1, 1));
        component8.setName("Component_8");
    }

    return component8;
}
 
開發者ID:mirkosertic,項目名稱:ERDesignerNG,代碼行數:26,代碼來源:OpenXavaExportEditorView.java

示例13: createPanel1

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   FormLayout formlayout1 = new FormLayout("FILL:280PX:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _CANCEL_BUTTON.setActionCommand("Cancel");
   _CANCEL_BUTTON.setName("CANCEL_BUTTON");
   _CANCEL_BUTTON.setText("Cancel");
   jpanel1.add(_CANCEL_BUTTON,cc.xy(4,1));

   _OK_BUTTON.setActionCommand("OK");
   _OK_BUTTON.setName("OK_BUTTON");
   _OK_BUTTON.setText("OK");
   jpanel1.add(_OK_BUTTON,cc.xy(2,1));

   addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1 });
   return jpanel1;
}
 
開發者ID:yajsw,項目名稱:yajsw,代碼行數:21,代碼來源:UninstallDialog.java

示例14: createPanel1

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   FormLayout formlayout1 = new FormLayout("FILL:308PX:NONE,FILL:89PX:NONE,FILL:22PX:NONE,FILL:87PX:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _CANCEL_BUTTON.setActionCommand("Cancel");
   _CANCEL_BUTTON.setName("CANCEL_BUTTON");
   _CANCEL_BUTTON.setText("CLOSE");
   jpanel1.add(_CANCEL_BUTTON,cc.xy(4,1));

   _OK_BUTTON.setActionCommand("OK");
   _OK_BUTTON.setName("OK_BUTTON");
   _OK_BUTTON.setText("INSTALL");
   jpanel1.add(_OK_BUTTON,cc.xy(2,1));

   addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1 });
   return jpanel1;
}
 
開發者ID:yajsw,項目名稱:yajsw,代碼行數:21,代碼來源:InstallDialog.java

示例15: Advanced

import com.jgoodies.forms.layout.CellConstraints; //導入依賴的package包/類
public Advanced() {
	setLayout(new FormLayout(
			"4dlu, fill:pref:grow(0.5), 4dlu, fill:pref:grow(0.5), 4dlu",
			"4dlu, fill:pref:grow, 4dlu"
	));

	sampleList = new SortSampleCheckList(
			method.getSelectedSamples(), method.getGexManager()
	);
	sampleList.getList().addActionListener(this);
	sampleList.getList().setActionCommand(ACTION_SAMPLE);
	sampleList.getList().getModel().addListDataListener(this);
	sampleList.getList().addListSelectionListener(this);
	samplePanel = new SamplePanel(null);

	refresh();
	CellConstraints cc = new CellConstraints();
	add(sampleList, cc.xy(2, 2));
	add(samplePanel, cc.xy(4, 2));
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:21,代碼來源:ColorByExpressionPanel.java


注:本文中的com.jgoodies.forms.layout.CellConstraints類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。