本文整理了Java中net.miginfocom.swing.MigLayout.setColumnConstraints()
方法的一些代码示例,展示了MigLayout.setColumnConstraints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MigLayout.setColumnConstraints()
方法的具体详情如下:
包路径:net.miginfocom.swing.MigLayout
类名称:MigLayout
方法名:setColumnConstraints
[英]Sets the column layout constraints for the layout manager instance as a String.
See the class JavaDocs for information on how this string is formatted.
[中]将布局管理器实例的列布局约束设置为字符串。
有关如何格式化此字符串的信息,请参见JavaDocs类。
代码示例来源:origin: com.miglayout/miglayout-swing
/** Constructor.
* @param layoutConstraints The constraints that concern the whole layout. <code>null</code> will be treated as "".
* @param colConstraints The constraints for the columns in the grid. <code>null</code> will be treated as "".
* @param rowConstraints The constraints for the rows in the grid. <code>null</code> will be treated as "".
*/
public MigLayout(String layoutConstraints, String colConstraints, String rowConstraints)
{
setLayoutConstraints(layoutConstraints);
setColumnConstraints(colConstraints);
setRowConstraints(rowConstraints);
}
代码示例来源:origin: com.miglayout/miglayout-swing
/** Constructor.
* @param layoutConstraints The constraints that concern the whole layout. <code>null</code> will be treated as an empty constraint.
* @param colConstraints The constraints for the columns in the grid. <code>null</code> will be treated as an empty constraint.
* @param rowConstraints The constraints for the rows in the grid. <code>null</code> will be treated as an empty constraint.
*/
public MigLayout(LC layoutConstraints, AC colConstraints, AC rowConstraints)
{
setLayoutConstraints(layoutConstraints);
setColumnConstraints(colConstraints);
setRowConstraints(rowConstraints);
}
代码示例来源:origin: org.gephi/welcome-screen
private void loadMRU() {
net.miginfocom.swing.MigLayout migLayout1 = new net.miginfocom.swing.MigLayout();
migLayout1.setColumnConstraints("[pref]");
recentPanel.setLayout(migLayout1);
MostRecentFiles mru = Lookup.getDefault().lookup(MostRecentFiles.class);
for (String filePath : mru.getMRUFileList()) {
JXHyperlink fileLink = new JXHyperlink(openAction);
File file = new File(filePath);
if (file.exists()) {
fileLink.setText(file.getName());
fileLink.putClientProperty(LINK_PATH, file);
recentPanel.add(fileLink, "wrap");
}
}
}
代码示例来源:origin: org.gephi/welcome-screen
private void loadSamples() {
net.miginfocom.swing.MigLayout migLayout1 = new net.miginfocom.swing.MigLayout();
migLayout1.setColumnConstraints("[pref]");
samplesPanel.setLayout(migLayout1);
代码示例来源:origin: org.gephi/desktop-statistics
migLayout.setColumnConstraints("[grow,fill]");
migLayout.setRowConstraints("[pref!]");
JPanel innerPanel = new JPanel(migLayout);
代码示例来源:origin: org.gephi/desktop-statistics
migLayout.setColumnConstraints("[grow,fill]");
migLayout.setRowConstraints("[pref!]");
JPanel innerPanel = new JPanel(migLayout);
代码示例来源:origin: org.gephi/desktop-statistics
migLayout.setColumnConstraints("[grow,fill]");
migLayout.setRowConstraints("[min!]");
JPanel innerPanel = new JPanel(migLayout);
内容来源于网络,如有侵权,请联系作者删除!