本文整理了Java中javax.swing.JCheckBox.setVerticalTextPosition()
方法的一些代码示例,展示了JCheckBox.setVerticalTextPosition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setVerticalTextPosition()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setVerticalTextPosition
暂无
代码示例来源:origin: chewiebug/GCViewer
public OpenFileView() {
setDialogTitle(LocalisationHelper.getString("fileopen_dialog_title"));
setMultiSelectionEnabled(true);
for (ExtensionFileFilter filter: ExtensionFileFilter.EXT_FILE_FILTERS) {
addChoosableFileFilter(filter);
}
addFileCheckBox = new JCheckBox(LocalisationHelper.getString("fileopen_dialog_add_checkbox"), false);
addFileCheckBox.setVerticalTextPosition(SwingConstants.TOP);
addFileCheckBox.setToolTipText(LocalisationHelper.getString("fileopen_dialog_hint_add_checkbox"));
final JPanel panel = new JPanel(new GridBagLayout());
final GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.anchor = GridBagConstraints.NORTH;
gridBagConstraints.weighty = 2;
panel.add(addFileCheckBox, gridBagConstraints);
setAccessory(panel);
}
代码示例来源:origin: magefree/mage
chkPennyDreadful.setFocusable(false);
chkPennyDreadful.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkPennyDreadful.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkPennyDreadful.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chkPiles.setFocusable(false);
chkPiles.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
chkPiles.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkPiles.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chkNames.setMinimumSize(new java.awt.Dimension(67, 16));
chkNames.setPreferredSize(new java.awt.Dimension(67, 16));
chkNames.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkNames.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chkTypes.setMinimumSize(new java.awt.Dimension(63, 16));
chkTypes.setPreferredSize(new java.awt.Dimension(63, 16));
chkTypes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkTypes.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chkRules.setMinimumSize(new java.awt.Dimension(59, 16));
chkRules.setPreferredSize(new java.awt.Dimension(59, 16));
chkRules.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
chkRules.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
public BooleanCellRenderer(TableCellRenderer delegate, Icon icon) {
//super(new BorderLayout());
this(delegate, icon, DEFAULT_PREDICATE);
checkBox.setVerticalTextPosition(JLabel.TOP);
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
public BooleanCellRenderer(TableCellRenderer delegate, Icon icon) {
//super(new BorderLayout());
this(delegate, icon, DEFAULT_PREDICATE);
checkBox.setVerticalTextPosition(JLabel.TOP);
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkProcessImages() {
if (chkProcessImages == null) {
chkProcessImages = new JCheckBox();
chkProcessImages.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkProcessImages.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkProcessImages;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkWmUiHandling() {
if (chkWmUiHandling == null) {
chkWmUiHandling = new JCheckBox();
chkWmUiHandling.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkWmUiHandling.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkWmUiHandling;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkAdvancedView() {
if (chkAdvancedView == null) {
chkAdvancedView = new JCheckBox();
chkAdvancedView.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkAdvancedView.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkAdvancedView;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getShowTabNames() {
if (chkShowTabNames == null) {
chkShowTabNames = new JCheckBox();
chkShowTabNames.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkShowTabNames.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkShowTabNames;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getShowSplashScreen() {
if (chkShowSplashScreen == null) {
chkShowSplashScreen = new JCheckBox();
chkShowSplashScreen.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkShowSplashScreen.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkShowSplashScreen;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getEnableJSONP() {
if (enableJSONP == null) {
enableJSONP = new JCheckBox();
enableJSONP.setText(Constant.messages.getString("api.options.enableJSONP"));
enableJSONP.setVerticalAlignment(javax.swing.SwingConstants.TOP);
enableJSONP.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return enableJSONP;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getIncErrorDetails() {
if (incErrorDetails == null) {
incErrorDetails = new JCheckBox();
incErrorDetails.setText(Constant.messages.getString("api.options.incErrors"));
incErrorDetails.setVerticalAlignment(javax.swing.SwingConstants.TOP);
incErrorDetails.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return incErrorDetails;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkUiEnabled() {
if (chkUiEnabled == null) {
chkUiEnabled = new JCheckBox();
chkUiEnabled.setText(Constant.messages.getString("api.options.uiEnabled"));
chkUiEnabled.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkUiEnabled.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkUiEnabled;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkSecureOnly() {
if (chkSecureOnly == null) {
chkSecureOnly = new JCheckBox();
chkSecureOnly.setText(Constant.messages.getString("api.options.secure"));
chkSecureOnly.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkSecureOnly.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkSecureOnly;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getReportPermErrors() {
if (reportPermErrors == null) {
reportPermErrors = new JCheckBox();
reportPermErrors.setText(Constant.messages.getString("api.options.reportPermErrors"));
reportPermErrors.setVerticalAlignment(javax.swing.SwingConstants.TOP);
reportPermErrors.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return reportPermErrors;
}
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkInstallAddonUpdates() {
if (chkInstallAddonUpdates == null) {
chkInstallAddonUpdates = new JCheckBox();
chkInstallAddonUpdates.setText(Constant.messages.getString("cfu.options.installAddonUpdates"));
chkInstallAddonUpdates.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkInstallAddonUpdates.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkInstallAddonUpdates;
}
private JCheckBox getChkInstallScannerRules() {
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkInstallScannerRules() {
if (chkInstallScannerRules == null) {
chkInstallScannerRules = new JCheckBox();
chkInstallScannerRules.setText(Constant.messages.getString("cfu.options.installScannerRules"));
chkInstallScannerRules.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkInstallScannerRules.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkInstallScannerRules;
}
private JCheckBox getChkReportReleaseAddons() {
代码示例来源:origin: org.zaproxy/zap
private JCheckBox getChkReportAlphaAddons() {
if (chkReportAlphaAddons == null) {
chkReportAlphaAddons = new JCheckBox();
chkReportAlphaAddons.setText(Constant.messages.getString("cfu.options.reportAlphaAddons"));
chkReportAlphaAddons.setVerticalAlignment(javax.swing.SwingConstants.TOP);
chkReportAlphaAddons.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
}
return chkReportAlphaAddons;
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
JComponent rendered = (JComponent) rendererDelegate.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (rendered instanceof JCheckBox) {
JCheckBox checkBox = (JCheckBox)rendered;
checkBox.setHorizontalAlignment(JLabel.CENTER);
checkBox.setVerticalTextPosition(JLabel.TOP);
checkBox.setBorderPainted(true);
checkBox.setIcon(icon);
}
return rendered;
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing
public BooleanCellRenderer(TableCellRenderer delegate, Icon icon) {
//super(new BorderLayout());
this.checkBox = new JCheckBox(icon);
add(checkBox, BorderLayout.NORTH);
checkBox.setHorizontalAlignment(JLabel.CENTER);
checkBox.setVerticalTextPosition(JLabel.TOP);
checkBox.setBorderPainted(true);
this.defaultDelegate = delegate;
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
JComponent rendered = (JComponent) rendererDelegate.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (rendered instanceof JCheckBox) {
JCheckBox checkBox = (JCheckBox) rendered;
checkBox.setHorizontalAlignment(JLabel.CENTER);
checkBox.setVerticalTextPosition(JLabel.TOP);
checkBox.setBorderPainted(true);
checkBox.setIcon(icon);
}
return rendered;
}
内容来源于网络,如有侵权,请联系作者删除!