/** Returns component which contains two synchronized scroll panes. Above left one is * placed table like header. */ JComponent compoundScrollPane() { JPanel leftPanel = new JPanel(new BorderLayout()); leftPanel.add(header, BorderLayout.NORTH); leftPanel.add(controllingView, BorderLayout.CENTER); compoundScrollPane = new CompoundScrollPane(); compoundScrollPane.setLayout(new BorderLayout()); compoundScrollPane.add(leftPanel, BorderLayout.CENTER); compoundScrollPane.add(this, BorderLayout.EAST); return compoundScrollPane; }
public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); }
public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); }
/** Returns component which contains two synchronized scroll panes. Above left one is * placed table like header. */ JComponent compoundScrollPane() { JPanel leftPanel = new JPanel(new BorderLayout()); leftPanel.add(header, BorderLayout.NORTH); leftPanel.add(controllingView, BorderLayout.CENTER); compoundScrollPane = new CompoundScrollPane(); compoundScrollPane.setLayout(new BorderLayout()); compoundScrollPane.add(leftPanel, BorderLayout.CENTER); compoundScrollPane.add(this, BorderLayout.EAST); return compoundScrollPane; }
public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); }
/** Returns component which contains two synchronized scroll panes. Above left one is * placed table like header. */ JComponent compoundScrollPane() { JPanel leftPanel = new JPanel(new BorderLayout()); leftPanel.add(header, BorderLayout.NORTH); leftPanel.add(controllingView, BorderLayout.CENTER); compoundScrollPane = new CompoundScrollPane(); compoundScrollPane.setLayout(new BorderLayout()); compoundScrollPane.add(leftPanel, BorderLayout.CENTER); compoundScrollPane.add(this, BorderLayout.EAST); return compoundScrollPane; }