X-Received: by 10.50.72.110 with SMTP id c14mr2741893igv.2.1385054641705; Thu, 21 Nov 2013 09:24:01 -0800 (PST) X-Received: by 10.182.158.167 with SMTP id wv7mr103177obb.29.1385054641647; Thu, 21 Nov 2013 09:24:01 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!dz2no811010qab.0!news-out.google.com!9ni1450qaf.0!nntp.google.com!i2no816167qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.gui Date: Thu, 21 Nov 2013 09:24:01 -0800 (PST) In-Reply-To: <75e31d97-900b-4523-b866-849f5b4bdecd@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.76.32.213; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0 NNTP-Posting-Host: 130.76.32.213 References: <75e31d97-900b-4523-b866-849f5b4bdecd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8e22c0f4-b246-4dd5-bc88-ca5bd84ffab6@googlegroups.com> Subject: Re: Scroll bar issue... From: FredK Injection-Date: Thu, 21 Nov 2013 17:24:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.gui:5387 On Thursday, November 21, 2013 1:15:45 AM UTC-8, saranya....@gmail.com wrot= e: > I am new to SWT...struggling to make the content to scroll,i got the scro= ll bar but i couldn't scroll the content in that particular tabfolder... pr= otected void setControls(Composite parent) { final ScrolledComposite sc2 = =3D new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER)= ; sc2.setExpandHorizontal(true); sc2.setExpandVertical(true); final Composi= te c2 =3D new Composite(sc2, SWT.NONE); sc2.setContent(c2); GridLayout layo= ut =3D new GridLayout(); layout.numColumns =3D 2; c2.setLayout(layout); sc2= .setMinSize(c2.computeSize(SWT.DEFAULT, SWT.DEFAULT)); OptionGroup =3D new = Group(this, SWT.SCROLL_LINE); OptionGroup.setLayoutData(new GridData(SWT.FI= LL, SWT.CENTER, true, false, 2, 1)); OptionGroup.setLayout(new GridLayout()= ); final GridLayout gl_fileOptionGroup1 =3D new GridLayout(); gl_fileOption= Group1.numColumns =3D 2; OptionGroup.setLayout(gl_fileOptionGroup1); Label = label =3D new Label(OptionGroup, SWT.NULL); label.setText("Directory:"); la= bel.setToolTipText("The directory to write files to"); label.setLayoutData(= new GridData()); directoryText =3D new StyledText(OptionGroup, SWT.BORDER |= SWT.SINGLE); directoryText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER= , true, false)); directoryText.addModifyListener(modifyListener); try { dir= ectoryNameProposal =3D new ParameterProposals(directoryText); } catch (Exce= ption e1) { }....... Like this i have mang groups....where i am going wrong= ...any help on this would be great.... Thanks. You create the component c2 controlled by the ScrolledComposite, but I don'= t see anywhere that you place anything in c2. --=20 Fred K