Scroll bar Problem-draw2d [message #238308] |
Wed, 05 September 2007 03:49 |
Eclipse User |
|
|
|
Originally posted by: abraham8331.gmail.com
Hi
I'm using draw2d to draw a flowchart.I tried to get the scroll
bars(both),they are visible but unable to drag.This is my code...
Shell shell = new Shell();
shell.open();
shell.setText("FlowDiagram");
LightweightSystem lws = new LightweightSystem(shell);
ScrollPane panel = new ScrollPane();
panel.setBounds(new Rectangle(0,0,200,100));
panel.getViewport().setBorder(new LineBorder());
panel.setBorder(new LineBorder());
panel.setSize(20, 30);
panel.setScrollBarVisibility(ScrollPane.ALWAYS);
final Figure SF = new Figure();
SF.setBorder(new LineBorder());
panel.setContents(SF);
lws.setContents(panel);
panel.setLayoutManager(new ScrollPaneLayout());
|
|
|
Powered by
FUDForum. Page generated in 0.03297 seconds