@Override public void mouseClicked(MouseEvent e) { panelFillColor.setBackground(showColorChooser("Select fill color", getCurrentFillColor())); currentSvgFillColor = getHexColor(panelFillColor.getBackground()); reloadSvgWithProperties(); reloadMorphing(false); }
@Override public void mouseClicked(MouseEvent e) { panelStrokeColor.setBackground(showColorChooser("Select stroke color", getCurrentStrokeColor())); currentSvgStrokeColor = getHexColor(panelStrokeColor.getBackground()); reloadSvgWithProperties(); reloadMorphing(false); } @Override
public void mouseClicked (MouseEvent e) { Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground()); if (color != null) setColor(color); } });
public void mouseClicked (MouseEvent e) { Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground()); if (color != null) setColor(color); } });
public void mouseClicked (MouseEvent e) { Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground()); if (color != null) setColor(color); } });
public void mouseClicked (MouseEvent e) { Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground()); if (color != null) setColor(color); } });
avatarAndRight.add(upAndContent, BorderLayout.CENTER); Color backgroundColor = avatarAndRight.getBackground(); Color hoverColor = backgroundColor.brighter().brighter(); Color pressedColor = hoverColor.brighter();
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)) {
/** * 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); }
message.setBackground(messagePanel.getBackground()); JPanel buttonPanel = new JPanel(); buttonPanel.add(Box.createHorizontalStrut(BORDER_SIZE));
Border border = new LineBorder(this.getPanel().getBackground(), 0); descLabel.setBorder(border); descLabel.setFont(new Font("Arial", Font.PLAIN, 11));
/** * 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); }
@ScriptFunction @Override public Color getBackground() { return super.getBackground(); }
@ScriptFunction(jsDoc = BACKGROUND_JSDOC) @Override public Color getBackground() { return super.getBackground(); }
@ScriptFunction(jsDoc = BACKGROUND_JSDOC) @Override public Color getBackground() { return super.getBackground(); }
@ScriptFunction(jsDoc = BACKGROUND_JSDOC) @Override public Color getBackground() { return super.getBackground(); }
@ScriptFunction(jsDoc = BACKGROUND_JSDOC) @Override public Color getBackground() { return super.getBackground(); }
public void mouseClicked (MouseEvent e) { Color color = JColorChooser.showDialog(colorPanel, "Set Color", colorPanel.getBackground()); if (color != null) setColor(color); } });
/** 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()); }
@Override public void updateUI() { super.updateUI(); if (samplePanel != null) { samplePanel.updateUI(); setBackground(samplePanel.getBackground()); updateUIData(); } }