Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Default RCP jface tableviwer, can not display scroll bar

    Experts,

    Created RCP plugin.
    Inside viewpart, I used jface tableviewer. I can not have vertical scroll bar show up. Please see code section below and let me know what I missed. Thanks in advance.

    private void createTableViewer(Composite parent) {
    // pagebook = new PageBook(parent, SWT.NONE);
    my_tableviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER);

    my_tableviewer.getTable().setHeaderVisible(true);
    my_tableviewer.getTable().getVerticalBar().setEnab led(true);
    my_tableviewer.getTable().getVerticalBar().setVisi ble(true);


    createTableViewerColumn(pagebook, my_tableviewer);

    my_tableviewer.setContentProvider(new ArrayContentProvider());

    GridData gridData = new GridData();
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalSpan = 2;
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.horizontalAlignment = GridData.FILL;
    gridData.heightHint = 100;
    my_tableviewer.getControl().setLayoutData(gridData );

    }

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: RCP jface tableviwer, can not display scroll bar

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. SWT or Jface?
    By jackmatt2 in forum SWT / JFace
    Replies: 1
    Last Post: 10-04-2009, 07:57 AM
  2. JFACE CheckboxTreeViewer
    By pele in forum SWT / JFace
    Replies: 0
    Last Post: 07-14-2009, 08:11 AM
  3. Jface Viewer help
    By JohnTayler in forum SWT / JFace
    Replies: 2
    Last Post: 04-22-2009, 11:28 PM
  4. JFace Window
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 08:12 PM
  5. Jface + Gef
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •