本文整理了Java中javax.swing.JCheckBox.setMargin()
方法的一些代码示例,展示了JCheckBox.setMargin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setMargin()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setMargin
暂无
代码示例来源:origin: marytts/marytts
cbSelected.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbSelected.setPreferredSize(new java.awt.Dimension(200, 18));
cbSelected.addItemListener(new java.awt.event.ItemListener() {
代码示例来源:origin: marytts/marytts
cbSelected.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbSelected.setPreferredSize(new java.awt.Dimension(200, 18));
cbSelected.addItemListener(new java.awt.event.ItemListener() {
代码示例来源:origin: marytts/marytts
cbStereoMono.setText("Stereo to Mono conversion");
cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
.setToolTipText("Cluster wav files by timestamp, and normalise cluster averages.\n\nWav files recorded with less than 10 minutes gap between them are treated like a single recording session. Only clusters as a whole are normalised, in order to even out different recording volumes in different recording sessions.\n");
cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbGlobalAmplitude.setText("Global amplitude scaling");
代码示例来源:origin: marytts/marytts
cbStereoMono.setText("Stereo to Mono conversion");
cbStereoMono.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbStereoMono.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbDownsample.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
.setToolTipText("Cluster wav files by timestamp, and normalise cluster averages.\n\nWav files recorded with less than 10 minutes gap between them are treated like a single recording session. Only clusters as a whole are normalised, in order to even out different recording volumes in different recording sessions.\n");
cbPowerNormalise.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbPowerNormalise.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbBestOnly.setToolTipText("Process a001.wav, but not a001a.wav, a001b.wav etc.");
cbBestOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbBestOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbHighPassFilter.setText("Remove low-frequency noise below 50 Hz");
cbHighPassFilter.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
cbHighPassFilter.setMargin(new java.awt.Insets(0, 0, 0, 0));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
cbGlobalAmplitude.setText("Global amplitude scaling");
代码示例来源:origin: marytts/marytts
jCheckBox_PlaySynthesis.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_PlayBackRec.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ContinueWithNext.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ContinueWithNext.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBox_PlayClosingBeep.setText("Play beep when microphone is closed");
jCheckBox_PlayClosingBeep.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_PlayClosingBeep.setMargin(new java.awt.Insets(0, 0, 0, 0));
代码示例来源:origin: marytts/marytts
jCheckBox_SystemLookAndFeel.setText("Use system look and feel (requires tool restart)");
jCheckBox_SystemLookAndFeel.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_SystemLookAndFeel.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_SystemLookAndFeel.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBox_ShowTestOutput.setText("Display test output in console");
jCheckBox_ShowTestOutput.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowTestOutput.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowTestOutput.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBox_ShowTranscription.setText("Show transcription");
jCheckBox_ShowTranscription.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowTranscription.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowTranscription.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBox_ShowPromptCount.setText("Show prompt count and progress bar in Speaker Window");
jCheckBox_ShowPromptCount.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_ShowPromptCount.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_ShowPromptCount.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBox_RedAlertMode.setText("Red alert mode");
jCheckBox_RedAlertMode.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jCheckBox_RedAlertMode.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox_RedAlertMode.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: magefree/mage
chkPiles.setMargin(new java.awt.Insets(3, 2, 2, 2));
chkPiles.addActionListener(evt -> chkPilesActionPerformed(evt));
代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui
/**
* Create a check box and add it to the panel.
*/
public JCheckBox createCheckBox(String name, boolean selected, boolean enabled, double weighty, String tooltip)
{
// Todo: checkbox name vs. checkbox label!?
JCheckBox cb = new JCheckBox("", selected);
cb.setMargin(new Insets(0,0,0,0));
cb.setEnabled(enabled);
addComponent(name, cb, weighty, -1, -1, tooltip);
return cb;
}
代码示例来源:origin: org.scijava/swing-checkbox-tree
public CheckBoxNodePanel() {
this.check.setMargin(new Insets(0, 0, 0, 0));
setLayout(new BorderLayout());
add(check, BorderLayout.WEST);
add(label, BorderLayout.CENTER);
}
代码示例来源:origin: info.aduna.clustermap/aduna-clustermap-core
public ClassificationCellRenderer() {
font = new Font("SansSerif", Font.PLAIN, 11);
boldFont = font.deriveFont(Font.BOLD);
textColor = Color.black;
checkedTextColor = new Color(0, 0, 164);
nameLabel = new JLabel("", JLabel.LEFT);
sizeLabel = new JLabel("", JLabel.LEFT);
checkBox = new JCheckBox();
nameOnlyLabel = new JLabel("bla", JLabel.LEFT);
checkBox.setMargin(new Insets(0, 0, 0, 0));
checkBox.setOpaque(false);
nameOnlyLabel.setOpaque(true);
setLayout(new GridBagLayout());
GridBagUtil.constrain(this, nameLabel, 0, 0, 1, 1, GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST, 1, 0, 0, 0,
0, 0);
GridBagUtil.constrain(this, sizeLabel, 1, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.WEST, 0, 0, 0, 5, 0, 0);
GridBagUtil.constrain(this, checkBox, 2, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.WEST, 0, 0, 0, 5, 0, 0);
normalBgColor = UIManager.getColor("Tree.textBackground");
selectedBgColor = UIManager.getColor("Tree.selectionBackground");
}
代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-swing
cbShowNextTime.setMargin(new java.awt.Insets(0, 0, 0, 0));
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private CheckBoxRenderer() {
super(new FlowLayout(FlowLayout.CENTER, 0, 0));
add(checkBox = new JCheckBox());
add(label = new JLabel());
label.setIconTextGap(1);
checkBox.setOpaque(false);
checkBox.setMargin(new Insets(0, 0, 0, 0));
setOpaque(false);
setEnabled(true);
setBorder(null);
}
代码示例来源:origin: cytoscape/application
private void initDependencyPanel() {
dependencyPanel = new JPanel();
dependencyCheckBoxMap = new HashMap<Definition,JCheckBox>();
dependencyPanel.setLayout(new BoxLayout(dependencyPanel, BoxLayout.Y_AXIS));
final VisualPropertyDependency dep = Cytoscape.getVisualMappingManager().getVisualStyle().getDependency();
for (final Definition def : Definition.values()) {
final JCheckBox dCheck = new JCheckBox();
dCheck.setSelected( dep.check( def ) );
dCheck.setFont(new java.awt.Font("SansSerif", 1, 12));
dCheck.setText(def.getTitle());
dCheck.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
dCheck.setMargin(new java.awt.Insets(0, 0, 0, 0));
dependencyPanel.add(dCheck);
dependencyCheckBoxMap.put(def,dCheck);
dCheck.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
final VisualPropertyDependency deps = Cytoscape.getVisualMappingManager().getVisualStyle().getDependency();
deps.set(def,dCheck.isSelected());
Cytoscape.getDesktop().getVizMapperUI().syncDependencyStates(deps,def);
buildList();
mainView.updateView();
repaint();
}
});
}
}
代码示例来源:origin: robward-scisys/sldeditor
/** Instantiates a new check box panel. */
public CheckBoxPanel() {
setOpaque(false);
checkBox = new JCheckBox();
checkBox.setMargin(new Insets(0, 0, 0, 0));
label = new TreeLabel();
setLayout(new BorderLayout());
add(checkBox, BorderLayout.WEST);
Border border = label.getBorder();
Border margin = new EmptyBorder(0, 3, 0, 0);
label.setBorder(new CompoundBorder(border, margin));
add(label, BorderLayout.CENTER);
Boolean booleanValue = (Boolean) UIManager.get("Tree.drawsFocusBorderAroundIcon");
checkBox.setFocusPainted((booleanValue != null) && (booleanValue.booleanValue()));
selectionForeground = UIManager.getColor("Tree.selectionForeground");
textForeground = UIManager.getColor("Tree.textForeground");
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-common
notAgain.setMargin(new java.awt.Insets(0, 0, 0, 0));
notAgain.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-dataconnectivity
notAgain.setMargin(new java.awt.Insets(0, 0, 0, 0));
notAgain.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-common
notAgain.setMargin(new java.awt.Insets(0, 0, 0, 0));
notAgain.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-common
getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BrokenServerAlertPanel.class, "ACSD_BrokenServersAlertPanel"));
org.openide.awt.Mnemonics.setLocalizedText(notAgain, org.openide.util.NbBundle.getMessage(BrokenServerAlertPanel.class, "MSG_Broken_Server_Again"));
notAgain.setMargin(new java.awt.Insets(0, 0, 0, 0));
notAgain.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: org.codehaus.mevenide/nb-project
cbTransitive.setMargin(new java.awt.Insets(0, 0, 0, 0));
cbTransitive.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: igvteam/igv
jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
jCheckBox1.setMaximumSize(new java.awt.Dimension(32767, 22));
jCheckBox1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
内容来源于网络,如有侵权,请联系作者删除!