本文整理汇总了Java中org.jdesktop.swingx.JXTitledSeparator类的典型用法代码示例。如果您正苦于以下问题:Java JXTitledSeparator类的具体用法?Java JXTitledSeparator怎么用?Java JXTitledSeparator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JXTitledSeparator类属于org.jdesktop.swingx包,在下文中一共展示了JXTitledSeparator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getComponent
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
@Override
public Component getComponent(GraphDocument document) {
if(settingsPanel == null) {
final GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 7;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 2, 2, 2);
settingsPanel = (JPanel)super.getComponent(document);
settingsPanel.add(new JXTitledSeparator("Spectrum Settings"), gbc);
spectralMomentsSettingsPanel = new SpectralMomentsSettingsPanel(spectralMomentsSettings);
++gbc.gridy;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(2, 2, 2, 2);
settingsPanel.add(spectralMomentsSettingsPanel, gbc);
}
return settingsPanel;
}
开发者ID:phon-ca,项目名称:phon-praat-plugin,代码行数:27,代码来源:SpectralMomentsNode.java
示例2: getComponent
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
@Override
public Component getComponent(GraphDocument document) {
if(settingsPanel == null) {
final GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 7;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 2, 2, 2);
settingsPanel = (JPanel)super.getComponent(document);
settingsPanel.add(new JXTitledSeparator("Formant Settings"), gbc);
formantSettingsPanel = new FormantSettingsPanel(formantSettings);
++gbc.gridy;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(2, 2, 2, 2);
settingsPanel.add(formantSettingsPanel, gbc);
}
return settingsPanel;
}
开发者ID:phon-ca,项目名称:phon-praat-plugin,代码行数:26,代码来源:FormantsNode.java
示例3: getComponent
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
@Override
public Component getComponent(GraphDocument document) {
if(settingsPanel == null) {
settingsPanel = (JPanel)super.getComponent(document);
intensitySettingsPanel = new IntensitySettingsPanel();
intensitySettingsPanel.loadSettings(intensitySettings);
final GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 7;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 2, 2, 2);
settingsPanel.add(new JXTitledSeparator("Intensity Settings"), gbc);
++gbc.gridy;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(2, 2, 2, 2);
settingsPanel.add(intensitySettingsPanel, gbc);
}
return settingsPanel;
}
开发者ID:phon-ca,项目名称:phon-praat-plugin,代码行数:26,代码来源:IntensityNode.java
示例4: getComponent
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
@Override
public Component getComponent(GraphDocument document) {
if(settingsPanel == null) {
settingsPanel = (JPanel)super.getComponent(document);
pitchSettingsPanel = new PitchSettingsPanel();
pitchSettingsPanel.loadSettings(pitchSettings);
final GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 7;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 2, 2, 2);
settingsPanel.add(new JXTitledSeparator("Pitch Settings"), gbc);
++gbc.gridy;
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
gbc.insets = new Insets(2, 2, 2, 2);
settingsPanel.add(pitchSettingsPanel, gbc);
}
return settingsPanel;
}
开发者ID:phon-ca,项目名称:phon-praat-plugin,代码行数:26,代码来源:PitchNode.java
示例5: initComponents
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private void initComponents() {
list = new JXList();
list.setName("list");
JPanel monthViewContainer = new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, f:d:g ", // l:4dlu:n, f:d:g", // columns
"c:d:n " +
", t:4dlu:n, f:d:g " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, monthViewContainer);
builder.setBorder(Borders.DLU4_BORDER);
// CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("listSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 2, 1));
builder.add(new JScrollPane(list), cc.xywh(2, 3, 1, 1));
add(monthViewContainer, BorderLayout.CENTER);
JComponent extended = createExtendedConfigPanel();
add(extended, BorderLayout.EAST);
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:30,代码来源:XListDemo.java
示例6: createSettingsPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private JPanel createSettingsPanel() {
JPanel retVal = new JPanel();
includeSessionInfoBox = new JCheckBox("Include session name and date", true);
includeSpeakerInfoBox = new JCheckBox("Include speaker name and age", true);
includeTierInfoBox = new JCheckBox("Include record number, tier, group and text range", true);
includeMetadataBox = new JCheckBox("Include result metadata columns", true);
final GridBagLayout layout = new GridBagLayout();
final GridBagConstraints gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(2, 2, 5, 2);
retVal.setLayout(layout);
retVal.add(new JXTitledSeparator("Column options"), gbc);
++gbc.gridy;
retVal.add(includeSessionInfoBox, gbc);
++gbc.gridy;
retVal.add(includeSpeakerInfoBox, gbc);
++gbc.gridy;
retVal.add(includeTierInfoBox, gbc);
++gbc.gridy;
retVal.add(includeMetadataBox, gbc);
++gbc.gridy;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
retVal.add(Box.createVerticalGlue(), gbc);
return retVal;
}
开发者ID:phon-ca,项目名称:phon,代码行数:36,代码来源:ResultsToTableNode.java
示例7: createExtendedConfigPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private JComponent createExtendedConfigPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:g", // , l:4dlu:n, f:d:g", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("extendedSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
toggleSortOrder = new JButton();
toggleSortOrder.setName("toggleSortOrder");
builder.add(toggleSortOrder, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
resetSortOrder = new JButton();
resetSortOrder.setName("resetSortOrder");
builder.add(resetSortOrder, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
comparatorCombo = new JComboBox();
comparatorCombo.setName("comparatorCombo");
JLabel comparatorComboLabel = builder.addLabel(
"", cl.xywh(labelColumn, currentRow, 1, 1),
comparatorCombo, cc.xywh(widgetColumn, currentRow, 1, 1));
comparatorComboLabel.setName("comparatorComboLabel");
LabelHandler.bindLabelFor(comparatorComboLabel, comparatorCombo);
currentRow += 2;
currentRow += 2;
JXTitledSeparator rolloverSeparator = new JXTitledSeparator();
rolloverSeparator.setName("rolloverSeparator");
builder.add(rolloverSeparator, cc.xywh(1, currentRow, 4, 1));
currentRow += 2;
rolloverEnabledBox = new JCheckBox();
rolloverEnabledBox.setName("rolloverBox");
builder.add(rolloverEnabledBox, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
highlighterCombo = new JComboBox();
highlighterCombo.setName("highlighterCombo");
JLabel highlighterComboLabel = builder.addLabel(
"", cl.xywh(labelColumn, currentRow, 1, 1),
highlighterCombo, cc.xywh(widgetColumn, currentRow, 1, 1));
highlighterComboLabel.setName("highlighterComboLabel");
LabelHandler.bindLabelFor(highlighterComboLabel, highlighterCombo);
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:68,代码来源:XListDemo.java
示例8: createHyperlinkDemo
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private void createHyperlinkDemo() {
JXTitledSeparator simple = new JXTitledSeparator();
simple.setName("simpleSeparator");
plainBrowse = new JXHyperlink();
plainBrowse.setName("plainBrowse");
plainMail = new JXHyperlink();
plainMail.setName("plainMail");
customBrowse = new JXHyperlink();
customBrowse.setName("customBrowse");
JXTitledSeparator custom = new JXTitledSeparator();
custom.setName("customSeparator");
customLink = new JXHyperlink();
customLink.setName("customLink");
JComponent standaloneLinks = new JXPanel(new VerticalLayout(20));
standaloneLinks.add(simple);
standaloneLinks.add(plainBrowse);
standaloneLinks.add(plainMail);
standaloneLinks.add(customBrowse);
standaloneLinks.add(custom);
standaloneLinks.add(customLink);
standaloneLinks.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
JComponent renderedLinks = new JXPanel(new BorderLayout());
linkList = new JXList();
linkTable = new JXTable();
linkTable.setVisibleRowCount(10);
linkTree = new JXTree();
JXPanel top = new JXPanel(new GridLayout(1, 2, 20, 10));
top.add(new JScrollPane(linkList));
top.add(new JScrollPane(linkTree));
renderedLinks.add(top);
// renderedLinks.add(new JScrollPane(linkTable), BorderLayout.SOUTH);
renderedLinks.setBorder(standaloneLinks.getBorder());
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setName("hyperlinkTabs");
addTab(tabbedPane, standaloneLinks, "standaloneTab", false);
addTab(tabbedPane, renderedLinks, "renderedTab", false);
add(tabbedPane);
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:49,代码来源:HyperlinkDemo.java
示例9: initComponents
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private void initComponents() {
setLayout(new BorderLayout());
JPanel monthViewContainer = new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:g, l:4dlu:n, f:d:g", // columns
"c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, monthViewContainer);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("listSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
//creates a new picker and sets the current date to today
datePicker = new JXDatePicker(new Date());
datePicker.setName("datePicker");
JLabel datePickerLabel = builder.addLabel(
"", cl.xywh(labelColumn, currentRow, 1, 1),
datePicker, cc.xywh(widgetColumn, currentRow, 1, 1));
datePickerLabel.setName("datePickerLabel");
LabelHandler.bindLabelFor(datePickerLabel, datePicker);
currentRow += 2;
dateEchoField = new JFormattedTextField();
dateEchoField.setName("dateEchoField");
JLabel dateEchoLabel = builder.addLabel(
"", cl.xywh(labelColumn, currentRow, 1, 1),
dateEchoField, cc.xywh(widgetColumn, currentRow, 1, 1));
dateEchoLabel.setName("dateEchoLabel");
LabelHandler.bindLabelFor(dateEchoLabel, dateEchoField);
currentRow += 2;
add(monthViewContainer, BorderLayout.CENTER);
JComponent panel = createControlPanel();
add(panel, BorderLayout.SOUTH);
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:51,代码来源:DatePickerDemo.java
示例10: createControlPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JComponent createControlPanel() {
JPanel painterControl = new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:g", // , l:4dlu:n, f:d:g", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("propertySeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
interactivity = new JCheckBox();
interactivity.setName("interactivity");
builder.add(interactivity, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
// painterControl.add(interactivity);
editability = new JCheckBox();
editability.setName("editability");
builder.add(editability, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
// painterControl.add(editability);
orientation = new JCheckBox();
orientation.setName("orientation");
builder.add(orientation, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
//should be able to set this from properties file
orientation.setSelected(!datePicker.getComponentOrientation().isLeftToRight());
// painterControl.add(orientation);
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:58,代码来源:DatePickerDemo.java
示例11: createMonthViewDemo
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private void createMonthViewDemo() {
monthView = new JXMonthView(){
@Override
public void setZoomable(boolean zoomable) {
super.setZoomable(zoomable);
((JComponent) getParent()).revalidate();
}
};
monthView.setName("monthView");
monthView.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
JPanel monthViewContainer = new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, c:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, t:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, monthViewContainer);
builder.setBorder(Borders.DLU4_BORDER);
// CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("monthViewSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
builder.add(monthView, cc.xywh(2, 3, 1, 1));
add(monthViewContainer, BorderLayout.CENTER);
JComponent monthViewControlPanel = new JXPanel();
add(monthViewControlPanel, BorderLayout.EAST);
JComponent extended = createExtendedConfigPanel();
monthViewControlPanel.add(extended);
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:42,代码来源:MonthViewExtDemo.java
示例12: createExtendedConfigPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JComponent createExtendedConfigPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("extendedSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
calendarBox = new JCheckBox();
calendarBox.setName("calendarBox");
builder.add(calendarBox, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
zoomableBox = new JCheckBox();
zoomableBox.setName("zoomableBox");
builder.add(zoomableBox, cc.xywh(labelColumn, currentRow, 3, 1));
currentRow += 2;
customHeaderBox = new JComboBox();
customHeaderBox.setName("customHeaderBox");
JLabel headerBoxLabel = builder.addLabel(
"", cl.xywh(labelColumn, currentRow, 1, 1),
customHeaderBox, cc.xywh(widgetColumn, currentRow, 1, 1));
headerBoxLabel.setName("customHeaderBoxLabel");
LabelHandler.bindLabelFor(headerBoxLabel, customHeaderBox);
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:49,代码来源:MonthViewExtDemo.java
示例13: createFirstCard
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
private JXPanel createFirstCard() {
JXPanel control = new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:g", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, control);
builder.setBorder(Borders.DIALOG_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
controlSeparator = new JXTitledSeparator();
controlSeparator.setName("controlSeparator");
builder.add(controlSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
titleField = new JTextField(20);
titleField.setName("titleField");
JLabel titleLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
titleField, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
titleLabel.setName("titleLabel");
LabelHandler.bindLabelFor(titleLabel, titleField);
fontChooserCombo = new JComboBox();
fontChooserCombo.setName("fontChooserCombo");
JLabel fontLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
fontChooserCombo, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
fontLabel.setName("fontChooserLabel");
LabelHandler.bindLabelFor(fontLabel, fontChooserCombo);
backgroundChooserCombo = new JComboBox();
backgroundChooserCombo.setName("backgroundChooserCombo");
JLabel backgroundLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
backgroundChooserCombo, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
backgroundLabel.setName("backgroundChooserLabel");
LabelHandler.bindLabelFor(backgroundLabel, backgroundChooserCombo);
visibleBox = new JCheckBox();
visibleBox.setName("visibleBox");
builder.add(visibleBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
return control;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:60,代码来源:TitledPanelDemo.java
示例14: createAreaPainterControlPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JXCollapsiblePane createAreaPainterControlPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
areaSeparator = new JXTitledSeparator();
areaSeparator.setName("areaPainterSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
styleBox = new JComboBox();
styleBox.setName("styleBox");
JLabel styleBoxLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
styleBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
styleBoxLabel.setName("styleBoxLabel");
LabelHandler.bindLabelFor(styleBoxLabel, styleBox);
effectBox = new JComboBox();
effectBox.setName("areaEffectBox");
JLabel effectLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
effectBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
effectLabel.setName("effectLabel");
LabelHandler.bindLabelFor(effectLabel, effectBox);
borderWidthSlider = new JSlider(0, 100, 0);
borderWidthSlider.setPaintLabels(true);
borderWidthSlider.setPaintTicks(true);
borderWidthSlider.setMajorTickSpacing(50);
JLabel insets = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1), borderWidthSlider,
cc.xywh(widgetColumn, currentRow, 1, 1));
insets.setName("borderWidthLabel");
LabelHandler.bindLabelFor(insets, borderWidthSlider);
currentRow += 2;
paintStretchedBox = new JCheckBox();
paintStretchedBox.setName("paintStretchedBox");
builder.add(paintStretchedBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:62,代码来源:PainterDemo.java
示例15: createBasePainterControlPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JXCollapsiblePane createBasePainterControlPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
baseSeparator = new JXTitledSeparator();
baseSeparator.setName("basePainterSeparator");
builder.add(baseSeparator, cc.xywh(1, 1, 4, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
interpolationBox = new JComboBox();
interpolationBox.setName("interpolationBox");
JLabel interpolationLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
interpolationBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
interpolationLabel.setName("interpolationLabel");
LabelHandler.bindLabelFor(interpolationLabel, interpolationBox);
filterBox = new JComboBox();
filterBox.setName("filterBox");
JLabel filterLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
filterBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
filterLabel.setName("filterLabel");
LabelHandler.bindLabelFor(filterLabel, filterBox);
visibleBox = new JCheckBox();
visibleBox.setName("visibleBox");
antialiasBox = new JCheckBox();
antialiasBox.setName("antialiasBox");
builder.add(visibleBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow += 2;
builder.add(antialiasBox, cc.xywh(widgetColumn, currentRow, 1, 1));
currentRow +=2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:58,代码来源:PainterDemo.java
示例16: createLayoutPainterControl
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JXCollapsiblePane createLayoutPainterControl() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();//new JXPanel();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
layoutSeparator = new JXTitledSeparator();
layoutSeparator.setName("layoutPainterSeparator");
builder.add(layoutSeparator, cc.xywh(1, 1, 6, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
horizontalAlignmentBox = new JComboBox();
verticalAlignmentBox = new JComboBox();
insetSlider = new JSlider(0, 100, 0);
insetSlider.setPaintLabels(true);
insetSlider.setPaintTicks(true);
insetSlider.setMajorTickSpacing(20);
fillHorizontal = new JCheckBox();
fillHorizontal.setName("fillHorizontalBox");
fillVertical = new JCheckBox();
fillVertical.setName("fillVerticalBox");
JLabel horAlign = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
horizontalAlignmentBox, cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
horAlign.setName("horizontalAlignmentLabel");
LabelHandler.bindLabelFor(horAlign, horizontalAlignmentBox);
JLabel vertAlign = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
verticalAlignmentBox, cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
vertAlign.setName("verticalAlignmentLabel");
LabelHandler.bindLabelFor(vertAlign, verticalAlignmentBox);
JLabel insets = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1), insetSlider,
cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
insets.setName("insetsLabel");
LabelHandler.bindLabelFor(insets, insetSlider);
JLabel fillLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
fillHorizontal, cc.xywh(widgetColumn, currentRow, 1, 1));
fillLabel.setName("fillLabel");
LabelHandler.bindLabelFor(fillLabel, fillHorizontal);
builder.add(fillVertical, cc.xywh(widgetColumn + 2, currentRow, 1, 1));
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:70,代码来源:PainterDemo.java
示例17: createConfigPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JComponent createConfigPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:m:g, l:4dlu:n, f:m:g", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("configurationSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 6, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
dayOfWeekComboBox = new JComboBox();
JLabel dayOfWeekLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
dayOfWeekComboBox, cc.xywh(widgetColumn, currentRow, 3, 1));
dayOfWeekLabel.setName("dayOfWeekLabel");
LabelHandler.bindLabelFor(dayOfWeekLabel, dayOfWeekComboBox);
currentRow += 2;
selectionModes = new JComboBox();
JLabel insets = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
selectionModes, cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
insets.setName("selectionModesLabel");
LabelHandler.bindLabelFor(insets, selectionModes);
unselectableDates = new JXDatePicker();
JLabel unselectables = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
unselectableDates, cc.xywh(widgetColumn, currentRow, 1, 1));
unselectables.setName("unselectableDatesLabel");
LabelHandler.bindLabelFor(unselectables, unselectableDates);
flaggedDates = new JXDatePicker();
builder.add(flaggedDates, cc.xywh(widgetColumn + 2, currentRow, 1, 1));
currentRow += 2;
upperBound = new JXDatePicker();
lowerBound = new JXDatePicker();
JLabel lower = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
lowerBound, cc.xywh(widgetColumn, currentRow, 1, 1));
lower.setName("lowerBoundsLabel");
LabelHandler.bindLabelFor(lower, lowerBound);
builder.add(upperBound, cc.xywh(widgetColumn + 2, currentRow, 1, 1));
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:65,代码来源:MonthViewDemo.java
示例18: createBoxPropertiesPanel
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return
*/
private JComponent createBoxPropertiesPanel() {
JXCollapsiblePane painterControl = new JXCollapsiblePane();
FormLayout formLayout = new FormLayout(
"5dlu, r:d:n, l:4dlu:n, f:d:n, l:4dlu:n, f:d:n", // columns
"c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n " +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n" +
", t:4dlu:n, c:d:n"
); // rows
PanelBuilder builder = new PanelBuilder(formLayout, painterControl);
builder.setBorder(Borders.DLU4_BORDER);
CellConstraints cl = new CellConstraints();
CellConstraints cc = new CellConstraints();
JXTitledSeparator areaSeparator = new JXTitledSeparator();
areaSeparator.setName("monthBoxSeparator");
builder.add(areaSeparator, cc.xywh(1, 1, 6, 1));
int labelColumn = 2;
int widgetColumn = labelColumn + 2;
int currentRow = 3;
prefColumnSlider = createSpinner(1, 3, 2);
prefColumnSlider.setName("preferredColumnSlider");
prefRowSlider = createSpinner(1, 2, 1);
prefRowSlider.setName("preferredRowSlider");
JLabel insets = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1), prefRowSlider,
cc.xywh(widgetColumn, currentRow, 1, 1));
insets.setName("preferredColumnLabel");
LabelHandler.bindLabelFor(insets, prefRowSlider);
builder.add(prefColumnSlider,
cc.xywh(widgetColumn + 2, currentRow, 1, 1));
currentRow += 2;
leadingDaysBox = new JCheckBox();
leadingDaysBox.setName("leadingDaysBox");
JLabel leadingLabel = builder.addLabel("", cl.xywh(labelColumn, currentRow, 1, 1),
leadingDaysBox, cc.xywh(widgetColumn, currentRow, 1, 1));
leadingLabel.setName("leadingDaysLabel");
LabelHandler.bindLabelFor(leadingLabel, leadingDaysBox);
trailingDaysBox = new JCheckBox();
trailingDaysBox.setName("trailingDaysBox");
builder.add(trailingDaysBox, cc.xywh(widgetColumn + 2, currentRow, 1, 1));
currentRow += 2;
weekNumberBox = new JCheckBox();
weekNumberBox.setName("weekNumberBox");
builder.add(weekNumberBox, cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
traversable = new JCheckBox();
traversable.setName("traversable");
builder.add(traversable, cc.xywh(widgetColumn, currentRow, 3, 1));
currentRow += 2;
return painterControl;
}
开发者ID:RockManJoe64,项目名称:swingx,代码行数:67,代码来源:MonthViewDemo.java
示例19: getTitle
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
/**
* @return the title
*/
public JXTitledSeparator getTitle() {
return title;
}
开发者ID:dbunibas,项目名称:BART,代码行数:7,代码来源:ConfEGTaskEditPanel.java
示例20: createEditor
import org.jdesktop.swingx.JXTitledSeparator; //导入依赖的package包/类
@NotNull
@Override
protected JComponent createEditor() {
JPanel panel = new JPanel(new GridBagLayout());
myVMParameters.setComponent(new RawCommandLineEditor());
myVMParameters.setText(WuffBundle.message("wuff.run.config.jvmparams"));
GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1, 0, GridBagConstraints.WEST,
GridBagConstraints.HORIZONTAL, new Insets(2, 0, 0, 0), UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP);
panel.add(new JBLabel(WuffBundle.message("wuff.run.config.equinoxappmodule")), gc);
gc.gridx = 1;
gc.weightx = 7;
panel.add(myModules, gc);
gc.gridx = 0;
gc.weightx = 1;
panel.add(new JBLabel(WuffBundle.message("wuff.run.config.equinoxmain")), gc);
gc.gridx = 1;
gc.weightx = 1;
panel.add(myEquinoxMainClass, gc);
gc.gridx = 0;
gc.weightx = 1;
panel.add(new JBLabel(WuffBundle.message("wuff.run.configuration.applicationname")), gc);
gc.gridx = 1;
gc.weightx = 1;
panel.add(myApplicationName, gc);
gc.weightx = 10;
gc.gridx = 0;
panel.add(myVMParameters, gc);
panel.add(createCheckboxPanel(), gc);
panel.add(new JXTitledSeparator(WuffBundle.message("wuff.run.config.diagnostics")), gc);
gc.weightx = 1;
panel.add(myAutomaticDiagnostic, gc);
gc.gridx = 0;
panel.add(new JBLabel(WuffBundle.message("wuff.run.config.diagnostic.url")), gc);
gc.gridx = 1;
panel.add(myUrl, gc);
gc.gridx = 0;
panel.add(new JBLabel(WuffBundle.message("wuff.run.config.diagnostic.user")), gc);
gc.gridx = 1;
panel.add(myUser, gc);
gc.gridx = 0;
panel.add(new JBLabel(WuffBundle.message("wuff.run.config.diagnostic.pass")), gc);
gc.gridx = 1;
panel.add(myPassword, gc);
setCurrentValuesToControls();
return panel;
}
开发者ID:mcmil,项目名称:wuff-intellij-plugin,代码行数:63,代码来源:WuffRunConfigurationEditor.java
|
请发表评论