• 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...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!