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 JPanel getForm() { if (sensitiveInfoTableForm == null) { sensitiveInfoTableForm = new JPanel(new BorderLayout()); JXToolBar toolbar = UISupport.createToolbar(); toolbar.add(UISupport.createToolbarButton(new AddTokenAction())); toolbar.add(UISupport.createToolbarButton(new RemoveTokenAction())); tokenTable = JTableFactory.getInstance().makeJXTable(sensitiveInformationTableModel); tokenTable.setPreferredSize(new Dimension(200, 100)); sensitiveInfoTableForm.add(toolbar, BorderLayout.NORTH); sensitiveInfoTableForm.add(new JScrollPane(tokenTable), BorderLayout.CENTER); } return sensitiveInfoTableForm; }