Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT Group scroll bars ....

 
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