本文整理了Java中javax.swing.JPanel.getBackground()
方法的一些代码示例,展示了JPanel.getBackground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPanel.getBackground()
方法的具体详情如下:
包路径:javax.swing.JPanel
类名称:JPanel
方法名:getBackground
暂无
代码示例来源:origin: bonnyfone/vectalign
@Override
public void mouseClicked(MouseEvent e) {
panelFillColor.setBackground(showColorChooser("Select fill color", getCurrentFillColor()));
currentSvgFillColor = getHexColor(panelFillColor.getBackground());
reloadSvgWithProperties();
reloadMorphing(false);
}
代码示例来源:origin: bonnyfone/vectalign
@Override
public void mouseClicked(MouseEvent e) {
panelStrokeColor.setBackground(showColorChooser("Select stroke color", getCurrentStrokeColor()));
currentSvgStrokeColor = getHexColor(panelStrokeColor.getBackground());
reloadSvgWithProperties();
reloadMorphing(false);
}
@Override
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent e) {
Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground());
if (color != null) setColor(color);
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent e) {
Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground());
if (color != null) setColor(color);
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent e) {
Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground());
if (color != null) setColor(color);
}
});
代码示例来源:origin: libgdx/libgdx
public void mouseClicked (MouseEvent e) {
Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground());
if (color != null) setColor(color);
}
});
代码示例来源:origin: runelite/runelite
avatarAndRight.add(upAndContent, BorderLayout.CENTER);
Color backgroundColor = avatarAndRight.getBackground();
Color hoverColor = backgroundColor.brighter().brighter();
Color pressedColor = hoverColor.brighter();
代码示例来源:origin: kiegroup/optaplanner
JPanel shiftDatePanel = new JPanel(new GridLayout(1, 0));
Color backgroundColor = weekendDefinition.isWeekend(shiftDate.getDayOfWeek())
? TangoColorFactory.ALUMINIUM_2 : shiftDatePanel.getBackground();
if (employee != null) {
if (employee.getDayOffRequestMap().containsKey(shiftDate)) {
shiftPanel.setEnabled(shiftDatePanel.isEnabled());
shiftPanel.setLayout(new BoxLayout(shiftPanel, BoxLayout.Y_AXIS));
Color backgroundColor = shiftDatePanel.getBackground();
if (employee != null) {
if (employee.getShiftOffRequestMap().containsKey(shift)) {
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Sets our background color to that of standard "panels" in this
* LookAndFeel. This is necessary because, otherwise, we'd inherit the
* background color of our parent component (the Gutter).
*/
private void updateBackground() {
Color bg = UIManager.getColor("Panel.background");
if (bg==null) { // UIManager properties aren't guaranteed to exist
bg = new JPanel().getBackground();
}
setBackground(bg);
}
代码示例来源:origin: apache/pdfbox
message.setBackground(messagePanel.getBackground());
JPanel buttonPanel = new JPanel();
buttonPanel.add(Box.createHorizontalStrut(BORDER_SIZE));
代码示例来源:origin: geotools/geotools
Border border = new LineBorder(this.getPanel().getBackground(), 0);
descLabel.setBorder(border);
descLabel.setFont(new Font("Arial", Font.PLAIN, 11));
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
/**
* Sets our background color to that of standard "panels" in this
* LookAndFeel. This is necessary because, otherwise, we'd inherit the
* background color of our parent component (the Gutter).
*/
private void updateBackground() {
Color bg = UIManager.getColor("Panel.background");
if (bg==null) { // UIManager properties aren't guaranteed to exist
bg = new JPanel().getBackground();
}
setBackground(bg);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public Color getBackground() {
return super.getBackground();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = BACKGROUND_JSDOC)
@Override
public Color getBackground() {
return super.getBackground();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = BACKGROUND_JSDOC)
@Override
public Color getBackground() {
return super.getBackground();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = BACKGROUND_JSDOC)
@Override
public Color getBackground() {
return super.getBackground();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = BACKGROUND_JSDOC)
@Override
public Color getBackground() {
return super.getBackground();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-tools
public void mouseClicked (MouseEvent e) {
Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground());
if (color != null) setColor(color);
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-project-jsf
/** Creates new form TemplatePanelVisual */
public PageLayoutChooserPanelGUI(PageLayoutChooserPanel wizPanel) {
initComponents();
wizardPanel = wizPanel;
templatesList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
templatesList.setListData(wizardPanel.getPageLayoutList());
templatesList.setCellRenderer(new CustomCellRenderer());
wizardPanel.setSelectedPageLayout(wizardPanel.getPageLayoutList().get(0));
templatesList.setSelectedIndex(0);
descriptionArea.setBackground(previewPanel.getBackground());
}
代码示例来源:origin: com.eas.platypus/platypus-js-grid
@Override
public void updateUI() {
super.updateUI();
if (samplePanel != null) {
samplePanel.updateUI();
setBackground(samplePanel.getBackground());
updateUIData();
}
}
内容来源于网络,如有侵权,请联系作者删除!