public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { Component defaultRenderer = super.prepareRenderer(renderer, row, column); if (UISupport.isMac()) { JTableFactory.applyStripesToRenderer(row, defaultRenderer); } return defaultRenderer; }
public FindAndReplaceDialog(FindAndReplaceable target) { super("Find / Replace"); if (UISupport.isMac()) { putValue(Action.ACCELERATOR_KEY, UISupport.getKeyStroke("meta F")); } else { putValue(Action.ACCELERATOR_KEY, UISupport.getKeyStroke("control F")); } this.target = new ProxyFindAndReplacable(target); }
public PropertiesHolderJTable() { super(propertiesModel); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setSurrendersFocusOnKeystroke(true); setRowHeight(19); if (UISupport.isMac()) { setShowGrid(false); setIntercellSpacing(new Dimension(0, 0)); } }
@Override public boolean getShowVerticalLines() { return !UISupport.isMac(); }