1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
| scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.V_SCROLL);
scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
//
composite = new Composite(scrolledComposite, SWT.NONE);
composite.setLayout(new GridLayout(1, false));
Composite composite_2 = new Composite(composite, SWT.NONE);
composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
composite_2.setLayout(new GridLayout(1, false));
StyledText styledText_1 = new StyledText(composite_2, SWT.BORDER | SWT.READ_ONLY | SWT.WRAP);
GridData gd_styledText_1 = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
gd_styledText_1.widthHint = 50;
styledText_1.setLayoutData(gd_styledText_1);
styledText_1
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
Composite composite_5 = new Composite(composite, SWT.NONE);
composite_5.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite_5.setLayout(new GridLayout(1, false));
StyledText styledText_5 = new StyledText(composite_5, SWT.BORDER | SWT.WRAP | SWT.READ_ONLY);
styledText_5
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
// gd_styledText_1.heightHint = 20;
// gd_styledText_1.minimumHeight = 30;
GridData gd_styledText_5 = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
gd_styledText_5.widthHint = 100;
styledText_5.setLayoutData(gd_styledText_5);
Composite composite_6 = new Composite(composite, SWT.NONE);
composite_6.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite_6.setLayout(new GridLayout(1, false));
StyledText styledText_6 = new StyledText(composite_6, SWT.BORDER | SWT.WRAP | SWT.READ_ONLY);
styledText_6
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
GridData gd_styledText_6 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_styledText_6.widthHint = 100;
// gd_styledText_1.heightHint = 20;
// gd_styledText_1.minimumHeight = 30;
styledText_6.setLayoutData(gd_styledText_6);
Composite composite_7 = new Composite(composite, SWT.NONE);
composite_7.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite_7.setLayout(new GridLayout(1, false));
StyledText styledText_7 = new StyledText(composite_7, SWT.BORDER | SWT.WRAP | SWT.READ_ONLY);
styledText_7
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
// gd_styledText_1.heightHint = 20;
// gd_styledText_1.minimumHeight = 30;
GridData gd_styledText_7 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_styledText_7.widthHint = 100;
styledText_7.setLayoutData(gd_styledText_7);
Composite composite_8 = new Composite(composite, SWT.NONE);
composite_8.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite_8.setLayout(new GridLayout(1, false));
StyledText styledText_8 = new StyledText(composite_8, SWT.BORDER | SWT.WRAP | SWT.READ_ONLY);
styledText_8
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
GridData gd_styledText_8 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_styledText_8.widthHint = 100;
// gd_styledText_1.heightHint = 20;
// gd_styledText_1.minimumHeight = 30;
styledText_8.setLayoutData(gd_styledText_8);
Composite composite_9 = new Composite(composite, SWT.NONE);
composite_9.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite_9.setLayout(new GridLayout(1, false));
StyledText styledText_9 = new StyledText(composite_9, SWT.BORDER | SWT.WRAP | SWT.READ_ONLY);
styledText_9
.setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
GridData gd_styledText_9 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_styledText_9.widthHint = 100;
// gd_styledText_1.heightHint = 20;
// gd_styledText_1.minimumHeight = 30;
styledText_9.setLayoutData(gd_styledText_9);
scrolledComposite.setContent(composite);
scrolledComposite.setOrigin(composite.getSize());
scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true); |
Partager