本文整理了Java中javax.swing.JDialog.setBackground()
方法的一些代码示例,展示了JDialog.setBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.setBackground()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:setBackground
暂无
代码示例来源:origin: org.biojava/jcolorbrewer
/**
* Set the background color for the window.
*
* @param background the new background color
*/
public void setBackground( final Color background )
{
// Set the dialog's background color.
super.setBackground( background );
// Set the inner panel's background color.
if ( this.innerPanel != null ) {
this.innerPanel.setBackground( background );
}
}
代码示例来源:origin: rcsb/colorbrewer
/**
* Set the background color for the window.
*
* @param background the new background color
*/
public void setBackground( final Color background )
{
// Set the dialog's background color.
super.setBackground( background );
// Set the inner panel's background color.
if ( this.innerPanel != null ) {
this.innerPanel.setBackground( background );
}
}
代码示例来源:origin: org.jclarion/clarion-runtime
public void configureColor(JDialog jw, PropertyObject target) {
Color c;
c = getColor(target, Prop.FONTCOLOR);
if (c != null)
jw.setForeground(c);
c = getColor(target, Prop.BACKGROUND);
if (c != null)
jw.setBackground(c);
}
代码示例来源:origin: triplea-game/triplea
label.setWrapStyleWord(true);
label.setLocation(0, 0);
dialog.setBackground(label.getBackground());
dialog.setLayout(new BorderLayout());
final JScrollPane pane = new JScrollPane();
代码示例来源:origin: triplea-game/triplea
label.setWrapStyleWord(true);
label.setLocation(0, 0);
dialog.setBackground(label.getBackground());
dialog.setLayout(new BorderLayout());
final JScrollPane pane = new JScrollPane();
代码示例来源:origin: igvteam/igv
dialog.setBackground(Color.WHITE);
dialog.getContentPane().setBackground(Color.WHITE);
代码示例来源:origin: org.cytoscape/vizmap-gui-impl
ModalityType.MODELESS);
dialog.setUndecorated(true);
dialog.setBackground(BG_COLOR);
代码示例来源:origin: HearthStats/HearthStats.net-Uploader
frame.setFont(FontHelper.bodyFont());
frame.setLayout(new GridBagLayout());
frame.setBackground(Color.LIGHT_GRAY);
GridBagConstraints constraints = new GridBagConstraints();
constraints.gridx = 0;
代码示例来源:origin: igvteam/igv
dialog.setBackground(Color.WHITE);
dialog.getContentPane().setBackground(Color.WHITE);
代码示例来源:origin: es.gob.afirma/afirma-ui-core-jse-keystores
/** Muestra el diálogo de selección de certificados.
* @return Alias del certificado seleccionado o {@code null} si el usuario
* cancela el diálogo o cierra sin seleccionar. */
public String showDialog() {
final JDialog certDialog = this.optionPane.createDialog(
this.parent,
CertificateSelectionDialogMessages.getString("CertificateSelectionDialog.0") //$NON-NLS-1$
);
certDialog.setBackground(Color.WHITE);
certDialog.setModal(true);
certDialog.setAlwaysOnTop(true);
final KeyEventDispatcher dispatcher = new CertificateSelectionDispatcherListener(
this.optionPane,
this
);
KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher);
certDialog.setVisible(true);
if (this.optionPane.getValue() == null || ((Integer) this.optionPane.getValue()).intValue() != JOptionPane.OK_OPTION) {
KeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(dispatcher);
certDialog.dispose();
return null;
}
final String selectedAlias = this.csd.getSelectedCertificateAlias();
KeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(dispatcher);
certDialog.dispose();
return selectedAlias;
}
内容来源于网络,如有侵权,请联系作者删除!