javax.swing.border.CompoundBorder Java Examples
The following examples show how to use
javax.swing.border.CompoundBorder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SignIn.java From dctb-utfpr-2018-1 with Apache License 2.0 | 6 votes |
public JButton styleButtons(){ JButton submit = new JButton(); Color colorForeground = new Color(0x8D8D8D); Color colorBackground = new Color(0xF1F1F1); submit.setForeground(colorForeground); submit.setBackground(colorBackground); Border line = new LineBorder(colorForeground); Border margin = new EmptyBorder(5, 15, 5, 15); Border compound = new CompoundBorder(line, margin); submit.setBorder(compound); submit.setAlignmentX(Component.CENTER_ALIGNMENT); return submit; }
Example #2
Source File: ContrastMetalTheme.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public void addCustomEntriesToTable(UIDefaults table) { Border blackLineBorder = new BorderUIResource(new LineBorder(getBlack())); Border whiteLineBorder = new BorderUIResource(new LineBorder(getWhite())); Object textBorder = new BorderUIResource(new CompoundBorder( blackLineBorder, new BasicBorders.MarginBorder())); table.put("ToolTip.border", blackLineBorder); table.put("TitledBorder.border", blackLineBorder); table.put("Table.focusCellHighlightBorder", whiteLineBorder); table.put("Table.focusCellForeground", getWhite()); table.put("TextField.border", textBorder); table.put("PasswordField.border", textBorder); table.put("TextArea.border", textBorder); table.put("TextPane.font", textBorder); }
Example #3
Source File: GhidraIconCache.java From ghidra with Apache License 2.0 | 6 votes |
private Icon createIcon(AttributedVertex vertex) { rendererLabel.setText(ProgramGraphFunctions.getLabel(vertex)); rendererLabel.setFont(new Font(DEFAULT_FONT_NAME, Font.BOLD, DEFAULT_FONT_SIZE)); rendererLabel.setForeground(Color.black); rendererLabel.setBackground(Color.white); rendererLabel.setOpaque(true); Border lineBorder = BorderFactory.createLineBorder((Color) Colors.getColor(vertex), 2); Border marginBorder = BorderFactory.createEmptyBorder(DEFAULT_MARGIN_BORDER_SIZE, DEFAULT_MARGIN_BORDER_SIZE, DEFAULT_MARGIN_BORDER_SIZE, DEFAULT_MARGIN_BORDER_SIZE); rendererLabel.setBorder(new CompoundBorder(lineBorder, marginBorder)); Dimension labelSize = rendererLabel.getPreferredSize(); rendererLabel.setSize(labelSize); Shape shape = ProgramGraphFunctions.getVertexShape(vertex); IconShape.Type shapeType = iconShapeFunction.apply(shape); return createImageIcon(vertex, shapeType, rendererLabel, labelSize, shape); }
Example #4
Source File: RevokedCertsTableHeadRend.java From portecle with GNU General Public License v2.0 | 6 votes |
/** * Returns the rendered header cell for the supplied value and column. * * @param jtRevokedCerts The JTable * @param value The value to assign to the cell * @param bIsSelected True if cell is selected * @param iRow The row of the cell to render * @param iCol The column of the cell to render * @param bHasFocus If true, render cell appropriately * @return The rendered cell */ @Override public Component getTableCellRendererComponent(JTable jtRevokedCerts, Object value, boolean bIsSelected, boolean bHasFocus, int iRow, int iCol) { // Get header renderer JLabel header = (JLabel) jtRevokedCerts.getColumnModel().getColumn(iCol).getHeaderRenderer(); // The headers contain text header.setText(value.toString()); header.setHorizontalAlignment(LEFT); // Set tool tips if (iCol == 0) { header.setToolTipText(RB.getString("RevokedCertsTableHeadRend.SerialNumberColumn.tooltip")); } else { header.setToolTipText(RB.getString("RevokedCertsTableHeadRend.RevocationDateColumn.tooltip")); } header.setBorder(new CompoundBorder(new BevelBorder(BevelBorder.RAISED), new EmptyBorder(0, 5, 0, 5))); return header; }
Example #5
Source File: BorderBuilders.java From netbeans with Apache License 2.0 | 6 votes |
static BorderBuilder fromField(Instance instance, String field, boolean uiresource, Heap heap) { Object _border = instance.getValueOfField(field); if (!(_border instanceof Instance)) return null; Instance border = (Instance)_border; // Make sure subclasses are listed before base class if using isSubclassOf if (DetailsUtils.isSubclassOf(border, BevelBorder.class.getName())) { return new BevelBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, MatteBorder.class.getName())) { // Must be before EmptyBorder (extends EmptyBorder) return new EmptyBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, EmptyBorder.class.getName())) { return new MatteBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, EtchedBorder.class.getName())) { return new EtchedBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, LineBorder.class.getName())) { return new LineBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, TitledBorder.class.getName())) { return new TitledBorderBuilder(border, heap); } else if (DetailsUtils.isSubclassOf(border, CompoundBorder.class.getName())) { return new CompoundBorderBuilder(border, heap); } return null; }
Example #6
Source File: VersioningPanel.java From netbeans with Apache License 2.0 | 6 votes |
private void adjustToolbarComponentSize(JComponent button) { if (adjusted.contains(button)) return; // as we cannot get the button small enough using the margin and border... if (button.getBorder() instanceof CompoundBorder) { // from BasicLookAndFeel Dimension pref = button.getPreferredSize(); // XXX #41827 workaround w2k, that adds eclipsis (...) instead of actual text if ("Windows".equals(UIManager.getLookAndFeel().getID())) { // NOI18N pref.width += 9; } button.setPreferredSize(pref); } adjusted.add(button); }
Example #7
Source File: QComboBoxUI.java From pumpernickel with MIT License | 6 votes |
@Override public void installUI(JComponent c) { super.installUI(c); // an unpleasant quirk of the BasicComboBoxUI: // the background is always used for the renderer. // if we set the background to a transparent color // then we get the expected results. comboBox.setBackground(new Color(0, 0, 0, 0)); comboBox.setOpaque(false); // add some left padding because when you click an item: the popup is // much wider than the original JComboBox because it includes a // checkmark. The popup will still jut out to the left of the popup a // little bit, but with this offset it's a little less conspicuous comboBox.setBorder(new CompoundBorder(buttonUI .createBackground(comboBox), new EmptyBorder(0, 8, 0, 0))); // this can't be called in installListeners because arrowButton is not // initialized there arrowButton.getModel() .addChangeListener(arrowButtonModelChangeListener); comboBox.setRenderer(new QComboBoxRenderer(this)); refreshButtonState(); }
Example #8
Source File: ContrastMetalTheme.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
@Override public void addCustomEntriesToTable(UIDefaults table) { Border blackLineBorder = new BorderUIResource(new LineBorder(getBlack())); Border whiteLineBorder = new BorderUIResource(new LineBorder(getWhite())); Object textBorder = new BorderUIResource(new CompoundBorder( blackLineBorder, new BasicBorders.MarginBorder())); table.put("ToolTip.border", blackLineBorder); table.put("TitledBorder.border", blackLineBorder); table.put("Table.focusCellHighlightBorder", whiteLineBorder); table.put("Table.focusCellForeground", getWhite()); table.put("TextField.border", textBorder); table.put("PasswordField.border", textBorder); table.put("TextArea.border", textBorder); table.put("TextPane.font", textBorder); }
Example #9
Source File: ContrastMetalTheme.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override public void addCustomEntriesToTable(UIDefaults table) { Border blackLineBorder = new BorderUIResource(new LineBorder(getBlack())); Border whiteLineBorder = new BorderUIResource(new LineBorder(getWhite())); Object textBorder = new BorderUIResource(new CompoundBorder( blackLineBorder, new BasicBorders.MarginBorder())); table.put("ToolTip.border", blackLineBorder); table.put("TitledBorder.border", blackLineBorder); table.put("Table.focusCellHighlightBorder", whiteLineBorder); table.put("Table.focusCellForeground", getWhite()); table.put("TextField.border", textBorder); table.put("PasswordField.border", textBorder); table.put("TextArea.border", textBorder); table.put("TextPane.font", textBorder); }
Example #10
Source File: ContrastMetalTheme.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override public void addCustomEntriesToTable(UIDefaults table) { Border blackLineBorder = new BorderUIResource(new LineBorder(getBlack())); Border whiteLineBorder = new BorderUIResource(new LineBorder(getWhite())); Object textBorder = new BorderUIResource(new CompoundBorder( blackLineBorder, new BasicBorders.MarginBorder())); table.put("ToolTip.border", blackLineBorder); table.put("TitledBorder.border", blackLineBorder); table.put("Table.focusCellHighlightBorder", whiteLineBorder); table.put("Table.focusCellForeground", getWhite()); table.put("TextField.border", textBorder); table.put("PasswordField.border", textBorder); table.put("TextArea.border", textBorder); table.put("TextPane.font", textBorder); }
Example #11
Source File: OptionsPanel.java From netbeans with Apache License 2.0 | 6 votes |
void setHighlighted() { if (!isMac) { setBorder(new CompoundBorder( new CompoundBorder( new LineBorder(getTabPanelBackground()), new LineBorder(highlightedB) ), new EmptyBorder(0, 2, 0, 2) )); setBackground(highlighted); } if (!category.isHighlited()) { if (categoryModel.getHighlitedCategoryID() != null) { CategoryButton b = buttons.get(categoryModel.getHighlitedCategoryID()); if (b != null && !b.category.isCurrent()) { b.setNormal(); } } categoryModel.setHighlited(category,true); } }
Example #12
Source File: ParametersPanel.java From netbeans with Apache License 2.0 | 6 votes |
private void showProblem(Problem problem) { if(dialog == null) { return; } if (problem == null) { label.setText(" "); // NOI18N innerPanel.setBorder(null); next.setEnabled(!isPreviewRequired()); previewButton.setEnabled(true); return; } innerPanel.setBorder(new CompoundBorder(new javax.swing.border.LineBorder(java.awt.Color.gray), new EmptyBorder(0, 2, 2, 2))); progressPanel.setVisible(true); if (problem.isFatal()) { displayError(problem.getMessage()); } else { displayWarning(problem.getMessage()); } dialog.pack(); }
Example #13
Source File: ExitDialog.java From netbeans with Apache License 2.0 | 6 votes |
/** Constructs rest of dialog. */ private void draw () { list = new JList(listModel); list.setBorder(new EmptyBorder(2, 2, 2, 2)); list.addListSelectionListener (new ListSelectionListener () { @Override public void valueChanged (ListSelectionEvent evt) { updateSaveButton (); } } ); // bugfix 37941, select first item in list if (!listModel.isEmpty ()) { list.setSelectedIndex (0); } else { updateSaveButton (); } JScrollPane scroll = new JScrollPane (list); scroll.setBorder (new CompoundBorder (new EmptyBorder (12, 12, 11, 0), scroll.getBorder ())); add(scroll, BorderLayout.CENTER); list.setCellRenderer(new ExitDlgListCellRenderer()); list.getAccessibleContext().setAccessibleName((NbBundle.getBundle(ExitDialog.class)).getString("ACSN_ListOfChangedFiles")); list.getAccessibleContext().setAccessibleDescription((NbBundle.getBundle(ExitDialog.class)).getString("ACSD_ListOfChangedFiles")); this.getAccessibleContext().setAccessibleDescription((NbBundle.getBundle(ExitDialog.class)).getString("ACSD_ExitDialog")); }
Example #14
Source File: DarkSpinnerUI.java From darklaf with MIT License | 6 votes |
private JButton createArrow(final int direction) { int buttonPad = UIManager.getInt("Spinner.buttonPad"); Insets insets = new Insets(0, buttonPad, 0, buttonPad); JButton button = ArrowButton.createUpDownArrow(spinner, getArrowIcon(direction), getArrowInactiveIcon(direction), direction, false, true, insets); Border buttonBorder = UIManager.getBorder("Spinner.arrowButtonBorder"); if (buttonBorder instanceof UIResource) { // Wrap the border to avoid having the UIResource be replaced by // the ButtonUI. This is the opposite of using BorderUIResource. button.setBorder(new CompoundBorder(buttonBorder, null)); } else { button.setBorder(buttonBorder); } button.setInheritsPopupMenu(true); return button; }
Example #15
Source File: DetailsPanel.java From netbeans with Apache License 2.0 | 6 votes |
private void initComponents2() { header = new HeaderPanel(); title = header.getTitle(); button = header.getButton(); button2 = header.getButton2(); Border outsideBorder = BorderFactory.createMatteBorder(0, 0, 1, 0, Color.gray); Border insideBorder = BorderFactory.createEmptyBorder(3, 3, 3, 3); CompoundBorder compoundBorder = BorderFactory.createCompoundBorder(outsideBorder, insideBorder); header.setBorder(compoundBorder); button.setVisible(false); button2.setVisible(false); rightCornerHeader = new JPanel(); rightCornerHeader.setBorder(compoundBorder); Color headerBgColor = UnitTable.getDarkerColor(getBackground()); header.setBackground(headerBgColor); if (button != null) { button.setOpaque(false); } if (button2 != null) { button2.setOpaque(false); } rightCornerHeader.setBackground(headerBgColor); setBorder(BorderFactory.createEmptyBorder(3, 3, 0, 0)); }
Example #16
Source File: ColumnFilterDialog.java From ghidra with Apache License 2.0 | 5 votes |
private JComponent buildHeaderPanel() { JPanel headerPanel = new JPanel(new FilterPanelLayout(200, 0)); headerPanel.add(new GLabel("Table Column", SwingConstants.CENTER)); headerPanel.add(new GLabel("Filter", SwingConstants.CENTER)); headerPanel.add(new GLabel("Filter Value", SwingConstants.CENTER)); headerPanel.setBorder(new CompoundBorder( BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY.brighter().brighter()), BorderFactory.createEmptyBorder(4, 0, 4, 0))); return headerPanel; }
Example #17
Source File: DiscoveryCellRenderer.java From nanoleaf-desktop with MIT License | 5 votes |
public DiscoveryCellRenderer() { setOpaque(true); setBorder(new CompoundBorder( new LineBorder(java.awt.Color.GRAY, 1), new EmptyBorder(0, 0, 10, 0))); setVerticalTextPosition(JLabel.BOTTOM); setHorizontalTextPosition(JLabel.CENTER); setIconTextGap(10); setFont(new Font("Tahoma", Font.PLAIN, 22)); setForeground(java.awt.Color.WHITE); }
Example #18
Source File: Test8039750.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void test(Object value, String one, String two) { if (value instanceof CompoundBorder) { CompoundBorder border = (CompoundBorder) value; test(border.getOutsideBorder(), one); test(border.getInsideBorder(), two); } else { throw new Error("CompoundBorder"); } }
Example #19
Source File: ErrorHandler.java From opsu-dance with GNU General Public License v3.0 | 5 votes |
private static JTextArea readonlyTextarea(String contents) { JTextArea textArea = new JTextArea(15, 80); textArea.setEditable(false); textArea.setBackground(UIManager.getColor("Panel.background")); textArea.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR)); textArea.setTabSize(2); textArea.setLineWrap(false); textArea.setWrapStyleWord(true); textArea.setFont(new JLabel().getFont()); textArea.setText(contents); final EmptyBorder padding = new EmptyBorder(5, 5, 5, 5); textArea.setBorder(new CompoundBorder(textArea.getBorder(), padding)); return textArea; }
Example #20
Source File: InternalFrameDemo.java From darklaf with MIT License | 5 votes |
@Override public JComponent createComponent() { desktop = new JDesktopPane(); JPanel panel = new JPanel(); panel.setBorder(new CompoundBorder(new EmptyBorder(20, 20, 20, 20), DarkBorders.createLineBorder(1, 1, 1, 1))); panel.setLayout(new BorderLayout()); panel.add(desktop, BorderLayout.CENTER); createFrame(); desktop.setDragMode(JDesktopPane.LIVE_DRAG_MODE); return new DemoPanel(desktop, new BorderLayout(), 10); }
Example #21
Source File: TableDemo.java From littleluck with Apache License 2.0 | 5 votes |
private void showCredits() { credits = new JLabel(getString("TableDemo.credits", "<html><p align=\"center\">Academy Award data<br>courtesy of Howard Katz</p></html>")); credits.setFont(UIManager.getFont("Table.font").deriveFont(24f)); credits.setHorizontalAlignment(JLabel.CENTER); credits.setBorder(new CompoundBorder(new TitledBorder(""), new EmptyBorder(20,20,20,20))); dataPanel.showMessageLayer(credits, .75f); }
Example #22
Source File: CalendarPanelTest.java From LGoodDatePicker with MIT License | 5 votes |
/** * initializeComponents, This will set up our form, panels, and the layout managers. Most of * this code only exists to make the demo program look pretty. */ private static void initializeComponents() { // Set up our main frame. frame.setTitle("LGoodDatePicker Independent Calendar Panel Demo " + InternalUtilities.getProjectVersionString()); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLayout(new GridBagLayout()); // Set up our panels and layouts. JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS)); frame.getContentPane().add(mainPanel); container.setLayout(new GridBagLayout()); mainPanel.add(informationLabel); mainPanel.add(new JLabel(" ")); mainPanel.add(new JLabel(" ")); mainPanel.add(container); // Set up an information label to display the selected date. informationLabel.setOpaque(true); informationLabel.setBackground(Color.white); informationLabel.setBorder(new CompoundBorder( new LineBorder(Color.black), new EmptyBorder(2, 4, 2, 4))); informationLabel.setText("The selected date will be displayed here."); informationLabel.setAlignmentX(Component.CENTER_ALIGNMENT); // Pack and resize the frame, and center it on the screen. frame.pack(); frame.validate(); frame.setSize(640, 480); frame.setLocationRelativeTo(null); }
Example #23
Source File: VarInspector.java From plugins with GNU General Public License v3.0 | 5 votes |
private void addVarLog(VarType type, String name, String old, String neew) { if (!type.getCheckBox().isSelected()) { return; } int tick = client.getTickCount(); SwingUtilities.invokeLater(() -> { if (tick != lastTick) { lastTick = tick; JLabel header = new JLabel("Tick " + tick); header.setFont(FontManager.getRunescapeSmallFont()); header.setBorder(new CompoundBorder( BorderFactory.createMatteBorder(0, 0, 1, 0, ColorScheme.LIGHT_GRAY_COLOR), BorderFactory.createEmptyBorder(3, 6, 0, 0) )); tracker.add(header); } tracker.add(new JLabel(String.format("%s %s changed: %s -> %s", type.getName(), name, old, neew))); // Cull very old stuff while (tracker.getComponentCount() > MAX_LOG_ENTRIES) { tracker.remove(0); } tracker.revalidate(); }); }
Example #24
Source File: SignIn.java From dctb-utfpr-2018-1 with Apache License 2.0 | 5 votes |
public JButton styleButtons(){ JButton submit = new JButton(); Color colorForeground = new Color(0x8D8D8D); Color colorBackground = new Color(0xF1F1F1); submit.setForeground(colorForeground); submit.setBackground(colorBackground); Border line = new LineBorder(colorForeground); Border margin = new EmptyBorder(5, 15, 5, 15); Border compound = new CompoundBorder(line, margin); submit.setBorder(compound); submit.setAlignmentX(Component.CENTER_ALIGNMENT); return submit; }
Example #25
Source File: SignIn.java From dctb-utfpr-2018-1 with Apache License 2.0 | 5 votes |
public JButton styleButtons(){ JButton submit = new JButton(); Color colorForeground = new Color(0x8D8D8D); Color colorBackground = new Color(0xF1F1F1); submit.setForeground(colorForeground); submit.setBackground(colorBackground); Border line = new LineBorder(colorForeground); Border margin = new EmptyBorder(5, 15, 5, 15); Border compound = new CompoundBorder(line, margin); submit.setBorder(compound); submit.setAlignmentX(Component.CENTER_ALIGNMENT); return submit; }
Example #26
Source File: BannerPanel.java From orbit-image-analysis with GNU General Public License v3.0 | 5 votes |
public BannerPanel() { setBorder( new CompoundBorder(new EtchedBorder(), LookAndFeelTweaks.PANEL_BORDER)); setOpaque(true); setBackground(UIManager.getColor("Table.background")); titleLabel = new JLabel(); titleLabel.setOpaque(false); subtitleLabel = new JEditorPane("text/html", "<html>"); subtitleLabel.setFont(titleLabel.getFont()); LookAndFeelTweaks.makeBold(titleLabel); LookAndFeelTweaks.makeMultilineLabel(subtitleLabel); LookAndFeelTweaks.htmlize(subtitleLabel); iconLabel = new JLabel(); iconLabel.setPreferredSize(new Dimension(50, 50)); setLayout(new BorderLayout()); JPanel nestedPane = new JPanel(new BorderLayout()); nestedPane.setOpaque(false); nestedPane.add("North", titleLabel); nestedPane.add("Center", subtitleLabel); add("Center", nestedPane); add("East", iconLabel); }
Example #27
Source File: CompoundBorderBeanInfo.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected PropertyDescriptor[] createPropertyDescriptors() throws IntrospectionException { return new PropertyDescriptor[] { createRO(CompoundBorder.class, "outsideBorder"), // NOI18N createRO(CompoundBorder.class, "insideBorder"), // NOI18N }; }
Example #28
Source File: ComponentsFactory.java From MercuryTrade with MIT License | 5 votes |
/** * Get bordered default button with icon * * @param iconPath icon path from maven resources * @param iconSize icon size * @return bordered JButton with icon */ public JButton getBorderedIconButton(String iconPath, int iconSize, String tooltip) { CompoundBorder compoundBorder = BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(AppThemeColor.BORDER, 1), BorderFactory.createLineBorder(AppThemeColor.BUTTON, 2) ); JButton iconButton = getIconButton(iconPath, iconSize, AppThemeColor.FRAME_ALPHA, tooltip); iconButton.setBorder(BorderFactory.createLineBorder(AppThemeColor.BUTTON, 2)); return iconButton; }
Example #29
Source File: Toolbar.java From gcs with Mozilla Public License 2.0 | 5 votes |
public Toolbar() { super(true); super.setLayout(this); setOpaque(true); setBackground(DockColors.BACKGROUND); setBorder(new CompoundBorder(new LineBorder(DockColors.SHADOW, 0, 0, 1, 0), new EmptyBorder(0, 4, 0, 4))); }
Example #30
Source File: ETable.java From netbeans with Apache License 2.0 | 5 votes |
/** * Sets all the cells in the <code>ETable</code> to be editable if * <code>fullyEditable</code> is true. * if <code>fullyEditable</code> is false, sets the table cells into * their default state as in JTable. * * @param fullyEditable true if the table is meant to be fully editable. * false if the table is meant to take the defalut * state for editing. * @see #isFullyEditable() */ public void setFullyEditable(boolean fullyEditable) { if (fullyEditable) { editing = FULLY_EDITABLE; if(!getShowHorizontalLines()) { setShowHorizontalLines(true); } Color colorBorderAllEditable = UIManager.getColor("Table.borderAllEditable"); Border border = null; if (colorBorderAllEditable != null) { border = BorderFactory.createLineBorder(colorBorderAllEditable); } else { border = BorderFactory.createLineBorder(Color.GRAY); } Border filler = BorderFactory.createLineBorder(getBackground()); CompoundBorder compound = new CompoundBorder(border, filler); setBorder(new CompoundBorder(compound, border)); } else { editing = DEFAULT; setBorder( null ); } Color c = UIManager.getColor("Table.defaultGrid"); if (c != null) { setGridColor(c); } if (isFullyNonEditable()) { setupSearch(); } }