Hallo zusammen
In meinem Tabb erscheinen zwei rote Flächen (siehe Anhang) und ich habe keine Ahnung, wie die dahin kommen.
Der Code sieht folgendermassen aus:
Das Feeder- und das Maschinen-Composite sind identisch:
Woher kommen diese roten Flächen?
Vielen Dank für Tipps.
In meinem Tabb erscheinen zwei rote Flächen (siehe Anhang) und ich habe keine Ahnung, wie die dahin kommen.
Der Code sieht folgendermassen aus:
Java:
// Main Panel
Composite compositeMain = new Composite(parent, SWT.NONE);
GridLayout layoutMain = new GridLayout(2, false);
layoutMain.horizontalSpacing = HORIZONTAL_SPACING;
compositeMain.setLayout(layoutMain);
compositeMain.setBackground(WHITE);
compositeMain.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false));
// InnerMainPanelLeft
Composite compositeInnerMainPanelLeft = new Composite(compositeMain, SWT.NONE);
GridLayout layoutMainRight = new GridLayout(1, false);
layoutMainRight.verticalSpacing = VERTICAL_SPACING;
compositeInnerMainPanelLeft. setLayout(layoutMainRight);
compositeInnerMainPanelLeft.setBackground(WHITE);
// Feeder
FeederComposite feederComposite = new FeederComposite(compositeInnerMainPanelLeft, SWT.NONE);
feederComposite.setBackground(RED);
// Machine
MachineComposite machinePage = new MachineComposite(compositeInnerMainPanelLeft, SWT.NONE);
machinePage.setBackground(RED);
...
Das Feeder- und das Maschinen-Composite sind identisch:
Java:
public MachineComposite(Composite parent, int style) {
super (parent, style);
Group groupMachine = new Group(parent, SWT.NONE);
groupMachine.setText("Machine");
Font font = new Font(null, "Arial",10, SWT.BOLD);
groupMachine.setFont(font);
groupMachine.setBackground(WHITE);
groupMachine.setLayout(new GridLayout(1, false));
groupMachine.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false));
Composite compositeInnerGroupMachine = new Composite(groupMachine, SWT.NONE);
compositeInnerGroupMachine.setLayout(new GridLayout(2, false));
Label labelMachineType = new Label(compositeInnerGroupMachine, SWT.NONE);
labelMachineType.setText("Type");
labelMachineType.setLayoutData(new GridData(LABEL_WIDTH, SWT.DEFAULT));
...
Woher kommen diese roten Flächen?
Vielen Dank für Tipps.