@AssistedInject
  public AllDownloadPanel(
      DownloadTableFactory downloadTableFactory, @Assisted EventList<DownloadItem> list) {
    super(new BorderLayout());

    table = downloadTableFactory.create(list);
    table.setTableHeader(null);
    JScrollPane pane = new JScrollPane(table);
    pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    add(pane, BorderLayout.CENTER);
  }
  public JXTable createConfigureDecadeDetailsTable(LinkTableModel model) {
    JXTable table = new JXTable();
    table.setCellSelectionEnabled(true);
    table.setFont(monthView.getFont());
    table.setShowGrid(false, false);
    table.setTableHeader(null);

    table.setDefaultRenderer(
        Date.class, createDateRenderer(model.selectAction, monthPaddingBorder, JLabel.CENTER));
    table.setHighlighters(createCurrentDateHighlighters());
    table.setModel(model);
    Component comp = table.prepareRenderer(table.getCellRenderer(1, 1), 1, 1);
    table.setRowHeight(comp.getPreferredSize().height);

    return table;
  }
Beispiel #3
0
  public JBeanEditor() {
    super();
    setLayout(new BorderLayout());

    //        setBackground(UIManager.getColor("window"));
    //        table.setBackground(UIManager.getColor("window"));
    table.setTableHeader(null);
    //        table.setBackground(null);
    table.setShowGrid(false);
    table.setCellSelectionEnabled(false);
    table.setFocusable(false);
    add(table, BorderLayout.CENTER);

    // should we expose spacing as a user property?
    Dimension spacing = new Dimension(5, 0);
    table.setIntercellSpacing(spacing);
  }