• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT Group scroll bars ....  RSS feed

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everbody :

Im having trouble with SWT groups and scroll bars.

The following code always throws a null pointer exception :

******************************************
Group g = new Group (parent, SWT.V_SCROLL);

//Exception thrown here ...
g.getVerticalBar().setVisible(true);
******************************************

Why is the vertical bar null ? I have tried this same strategy on Lists
and it works just fine...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!