Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » hyperlink is not wrapping
hyperlink is not wrapping [message #458087] Sat, 09 July 2005 14:32
Eclipse UserFriend
Originally posted by: eclipsewiki.yahoo.de

hi, i'm new to eclipse and i hope someone can help me with my little
problem.

i created a new view and wanted to try this example but my link is not
wrapping - it is working in eclipse 3.0 but not in 3.1

---

public class SampleView extends ViewPart {
private FormToolkit toolkit;

private ScrolledForm form;

public void createPartControl(Composite parent) {
toolkit = new FormToolkit(parent.getDisplay());

form = toolkit.createScrolledForm(parent);
form.setText("Hello, Eclipse Forms");

TableWrapLayout layout = new TableWrapLayout();
layout.makeColumnsEqualWidth = true;
form.getBody().setLayout(layout);

Hyperlink link = toolkit.createHyperlink(form.getBody(), "This is
an example of a form that is
much longer and will need to wrap.",
SWT.WRAP);
link.addHyperlinkListener(new HyperlinkAdapter() {
public void linkActivated(HyperlinkEvent e) {
System.out.println("Link activated!");
}
});

}
public void setFocus() {
form.setFocus();
}
public void dispose() {
toolkit.dispose();
super.dispose();
}
}

---

thanks for your help
Previous Topic:glSelectBuffer problem
Next Topic:Tree with multiple cols
Goto Forum:
  


Current Time: Wed Apr 24 18:43:00 GMT 2024

Powered by FUDForum. Page generated in 0.03194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top