Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5386
| X-Received | by 10.66.221.137 with SMTP id qe9mr1833304pac.4.1385025345669; Thu, 21 Nov 2013 01:15:45 -0800 (PST) |
|---|---|
| X-Received | by 10.182.118.170 with SMTP id kn10mr71667obb.20.1385025345599; Thu, 21 Nov 2013 01:15:45 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!y3no10816765pbx.0!news-out.google.com!9ni890qaf.0!nntp.google.com!dz2no421956qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.gui |
| Date | Thu, 21 Nov 2013 01:15:45 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=61.95.229.148; posting-account=1BCEmAoAAABqbz92QO86X9LTEAfcTR2L |
| NNTP-Posting-Host | 61.95.229.148 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <75e31d97-900b-4523-b866-849f5b4bdecd@googlegroups.com> (permalink) |
| Subject | Scroll bar issue... |
| From | saranya.harigopal@gmail.com |
| Injection-Date | Thu, 21 Nov 2013 09:15:45 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.java.gui:5386 |
Show key headers only | View raw
I am new to SWT...struggling to make the content to scroll,i got the scroll bar but i couldn't scroll the content in that particular tabfolder...
protected void setControls(Composite parent)
{
final ScrolledComposite sc2 = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
sc2.setExpandHorizontal(true);
sc2.setExpandVertical(true);
final Composite c2 = new Composite(sc2, SWT.NONE);
sc2.setContent(c2);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
c2.setLayout(layout);
sc2.setMinSize(c2.computeSize(SWT.DEFAULT, SWT.DEFAULT));
OptionGroup = new Group(this, SWT.SCROLL_LINE);
OptionGroup.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
OptionGroup.setLayout(new GridLayout());
final GridLayout gl_fileOptionGroup1 = new GridLayout();
gl_fileOptionGroup1.numColumns = 2;
OptionGroup.setLayout(gl_fileOptionGroup1);
Label label = new Label(OptionGroup, SWT.NULL);
label.setText("Directory:");
label.setToolTipText("The directory to write files to");
label.setLayoutData(new GridData());
directoryText = new StyledText(OptionGroup, SWT.BORDER | SWT.SINGLE);
directoryText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
directoryText.addModifyListener(modifyListener);
try
{
directoryNameProposal = new ParameterProposals(directoryText);
}
catch (Exception e1)
{
}.......
Like this i have mang groups....where i am going wrong...any help on this would be great....
Thanks.
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar
Scroll bar issue... saranya.harigopal@gmail.com - 2013-11-21 01:15 -0800 Re: Scroll bar issue... FredK <fred.l.kleinschmidt@gmail.com> - 2013-11-21 09:24 -0800
csiph-web