Java Code Examples for org.eclipse.swt.widgets.Label#setBounds()
The following examples show how to use
org.eclipse.swt.widgets.Label#setBounds() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SarlSplashHandler.java From sarl with Apache License 2.0 | 6 votes |
@Override public void init(Shell splash) { super.init(splash); if (this.image != null) { this.image.dispose(); this.image = null; } if (!SARLVersion.IS_STABLE) { this.image = SARLEclipsePlugin.getDefault().getImage(BETA_PNG); if (this.image != null) { final Rectangle betaRectangle = new Rectangle(X, Y, this.image.getImageData().width, this.image.getImageData().height); final Label betaCtrl = new Label(getContent(), 0); betaCtrl.setBackgroundImage(this.image); betaCtrl.setBounds(betaRectangle); } } // Do the event until. Ensure that the RCP is stopped until the splash UI has done. doEventLoop(); }
Example 2
Source File: WaitForUSBParser.java From Flashtool with GNU General Public License v3.0 | 6 votes |
/** * Open the dialog. * @return the result */ public Object open(String file, String folder) { createContents(file,folder); Label lblNewLabel = new Label(shlWaiForDevicesSync, SWT.NONE); lblNewLabel.setBounds(10, 32, 323, 15); lblNewLabel.setText("Please wait until the end of process"); shlWaiForDevicesSync.open(); shlWaiForDevicesSync.layout(); Display display = getParent().getDisplay(); while (!shlWaiForDevicesSync.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } return sess; }
Example 3
Source File: WaitForDevicesSync.java From Flashtool with GNU General Public License v3.0 | 6 votes |
/** * Open the dialog. * @return the result */ public Object open() { createContents(); Label lblNewLabel = new Label(shlWaiForDevicesSync, SWT.NONE); lblNewLabel.setBounds(10, 32, 323, 20); lblNewLabel.setText("Please wait until the end of process"); shlWaiForDevicesSync.open(); shlWaiForDevicesSync.layout(); Display display = getParent().getDisplay(); while (!shlWaiForDevicesSync.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } return result; }
Example 4
Source File: WaitForXperiFirm.java From Flashtool with GNU General Public License v3.0 | 6 votes |
/** * Open the dialog. * @return the result */ public Object open() { createContents(); Label lblNewLabel = new Label(shlWaiForXperiFirm, SWT.NONE); lblNewLabel.setBounds(10, 32, 323, 16); lblNewLabel.setText("Please wait until the end of process"); shlWaiForXperiFirm.open(); shlWaiForXperiFirm.layout(); Display display = getParent().getDisplay(); while (!shlWaiForXperiFirm.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } return result; }
Example 5
Source File: Header.java From nebula with Eclipse Public License 2.0 | 5 votes |
private void initialize() { label = new Label(this, SWT.NONE); label.setText("Name"); label.setBounds(new Rectangle(5, 5, 27, 13)); label1 = new Label(this, SWT.NONE); label1.setText("Department"); label1.setBounds(new Rectangle(37, 5, 57, 13)); label2 = new Label(this, SWT.NONE); label2.setText("Job"); label2.setBounds(new Rectangle(99, 5, 17, 13)); this.setLayout(null); this.setSize(new Point(178, 33)); }
Example 6
Source File: ViewFreezer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
public void freeze() { release(); if (sourceViewer instanceof SourceViewer) { Control viewerControl = ((SourceViewer) sourceViewer).getControl(); if (viewerControl instanceof Composite) { Composite composite = (Composite) viewerControl; Display display = composite.getDisplay(); // Flush pending redraw requests: while (!display.isDisposed() && display.readAndDispatch()) { } // Copy editor area: GC gc = new GC(composite); Point size; try { size = composite.getSize(); image = new Image(gc.getDevice(), size.x, size.y); gc.copyArea(image, 0, 0); } finally { gc.dispose(); gc = null; } // Persist editor area while executing refactoring: label = new Label(composite, SWT.NONE); label.setImage(image); label.setBounds(0, 0, size.x, size.y); label.moveAbove(null); } } }
Example 7
Source File: SWTLayoutPositionTracker.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
public static void main(String[] args) { Display display = new Display(); shell = new Shell(display); positiongLabel = new Label(shell, SWT.BORDER); int x= 60; int y=20; int width =400; int height=200; positiongLabel.setBounds(x, y, width, height); int toolbarSize = 30; shell.setBounds(200, 400, width+2*x , height + 2*y +toolbarSize); shell.open(); shell.addMouseMoveListener(e -> showSize(e)); positiongLabel.addMouseMoveListener(e -> showSize(e)); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
Example 8
Source File: TimeOptionDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
private void createRightComponent( Composite composite ) { Label formatLabel = new Label( composite, SWT.CENTER | SWT.SINGLE ); formatLabel.setText( LABEL_FORMAT ); formatLabel.setBounds( 0, 8, 60, 30 ); combo = new Combo( composite, SWT.READ_ONLY | SWT.DROP_DOWN ); List list = TimeFormat.getDefaultFormat( ).getSupportList( ); String[] items = new String[list.size( )]; list.toArray( items ); combo.setBounds( 60, 2, 150, 30 ); combo.setVisibleItemCount( 30 ); combo.setItems( items ); combo.select( 0 ); Label zoneLabel = new Label( composite, SWT.CENTER ); zoneLabel.setText( LABEL_TIMEZONE ); zoneLabel.setBounds( 0, 108, 60, 30 ); zoneCombo = new Combo( composite, SWT.READ_ONLY | SWT.SINGLE ); zoneCombo.setVisibleItemCount( 30 ); items = TimeZone.getAvailableIDs( ); zoneCombo.setBounds( 60, 102, 150, 30 ); zoneCombo.setItems( items ); zoneCombo.select( 0 ); }
Example 9
Source File: WeekHeader.java From nebula with Eclipse Public License 2.0 | 4 votes |
/** * This method initializes this * */ private void initialize() { this.setSize(new org.eclipse.swt.graphics.Point(536, 54)); GridData gridData6 = new GridData(); gridData6.horizontalAlignment = GridData.FILL; gridData6.grabExcessHorizontalSpace = true; gridData6.verticalAlignment = GridData.CENTER; GridData gridData5 = new GridData(); gridData5.horizontalAlignment = GridData.FILL; gridData5.grabExcessHorizontalSpace = true; gridData5.verticalAlignment = GridData.CENTER; GridData gridData4 = new GridData(); gridData4.horizontalAlignment = GridData.FILL; gridData4.grabExcessHorizontalSpace = true; gridData4.verticalAlignment = GridData.CENTER; GridData gridData3 = new GridData(); gridData3.horizontalAlignment = GridData.FILL; gridData3.grabExcessHorizontalSpace = true; gridData3.verticalAlignment = GridData.CENTER; GridData gridData2 = new GridData(); gridData2.horizontalAlignment = GridData.FILL; gridData2.grabExcessHorizontalSpace = true; gridData2.verticalAlignment = GridData.CENTER; GridData gridData1 = new GridData(); gridData1.horizontalAlignment = GridData.FILL; gridData1.grabExcessHorizontalSpace = true; gridData1.verticalAlignment = GridData.CENTER; GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; gridData.verticalAlignment = GridData.CENTER; setLayout(new GridLayout(7, true)); label = new Label(this, SWT.CENTER); label.setBounds(new org.eclipse.swt.graphics.Rectangle(23, 18, 53, 18)); label.setLayoutData(gridData6); label.setText("Monday"); label1 = new Label(this, SWT.CENTER); label1.setBounds(new org.eclipse.swt.graphics.Rectangle(98, 18, 79, 17)); label1.setLayoutData(gridData5); label1.setText("Tuesday"); label2 = new Label(this, SWT.CENTER); label2.setBounds(new org.eclipse.swt.graphics.Rectangle(187, 18, 47, 17)); label2.setLayoutData(gridData4); label2.setText("Wednesday"); label3 = new Label(this, SWT.CENTER); label3.setBounds(new org.eclipse.swt.graphics.Rectangle(256, 17, 67, 17)); label3.setLayoutData(gridData3); label3.setText("Thursday"); label4 = new Label(this, SWT.CENTER); label4.setBounds(new org.eclipse.swt.graphics.Rectangle(338, 17, 62, 20)); label4.setLayoutData(gridData2); label4.setText("Friday"); label5 = new Label(this, SWT.CENTER); label5.setBounds(new org.eclipse.swt.graphics.Rectangle(415, 16, 43, 21)); label5.setLayoutData(gridData1); label5.setText("Saturday"); label6 = new Label(this, SWT.CENTER); label6.setBounds(new org.eclipse.swt.graphics.Rectangle(469, 16, 61, 23)); label6.setLayoutData(gridData); label6.setText("Sunday"); }
Example 10
Source File: LinkAnswerDialog.java From CogniCrypt with Eclipse Public License 2.0 | 4 votes |
/** * Create contents of the dialog. * * @param parent */ @Override protected Control createDialogArea(final Composite parent) { final Composite container = (Composite) super.createDialogArea(parent); container.setLayout(new GridLayout(2, false)); getShell().setMinimumSize(700, 400); // executes when the question type is text if (this.question.getElement().equals(Constants.GUIElements.text)) { final Label lblLinkAnswersTabMessage = new Label(container, SWT.NONE); lblLinkAnswersTabMessage.setText("This type of question does not need to link answers"); } else { final Label lblQuestion_1 = new Label(container, SWT.NONE); lblQuestion_1.setText("Question:"); final Label qstnTxt = new Label(container, SWT.NONE); qstnTxt.setText(this.question.getQuestionText()); // Group containing the headers final Group groupHeaderLinkAnswer = new Group(container, SWT.NONE); final GridData gd_groupHeaderLinkAnswer = new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1); groupHeaderLinkAnswer.setLayoutData(gd_groupHeaderLinkAnswer); final Label lblAnswers = new Label(groupHeaderLinkAnswer, SWT.NONE); lblAnswers.setBounds(5, 5, 150, 25); lblAnswers.setText("Answers"); final Label lblSelectQuestion = new Label(groupHeaderLinkAnswer, SWT.NONE); lblSelectQuestion.setBounds(180, 5, 530, 25); lblSelectQuestion.setText("Jump to question"); // Scroll composite containing the needed widgets for linking the answers to other questions final CompositeToHoldSmallerUIElements scrollCompositeForAnswers = new CompositeToHoldSmallerUIElements(container, SWT.NONE, null, false, null); final GridData gd_LinkAns = new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1); gd_LinkAns.heightHint = 200; gd_LinkAns.widthHint = 700; scrollCompositeForAnswers.setLayoutData(gd_LinkAns); scrollCompositeForAnswers.setLayout(new GridLayout(2, false)); for (final Answer answer : this.question.getAnswers()) { scrollCompositeForAnswers.addElementsOfLinkAnswer(answer, this.question, this.listOfAllQuestions); } } return container; }
Example 11
Source File: MonkeyTest.java From AndroidRobot with Apache License 2.0 | 4 votes |
/** * Create contents of the dialog. * @param parent */ @Override protected Control createDialogArea(Composite parent) { Composite container = (Composite) super.createDialogArea(parent); GridLayout gridLayout = (GridLayout) container.getLayout(); gridLayout.numColumns = 2; Composite composite = new Composite(container, SWT.NONE); GridData gd_composite = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1); gd_composite.heightHint = 328; gd_composite.widthHint = 406; composite.setLayoutData(gd_composite); Group grpAbcd = new Group(composite, SWT.NONE); grpAbcd.setText("abcd"); grpAbcd.setBounds(0, 10, 396, 63); Combo combo = new Combo(grpAbcd, SWT.NONE); combo.setBounds(10, 33, 169, 25); Combo combo_1 = new Combo(grpAbcd, SWT.NONE); combo_1.setBounds(217, 33, 169, 25); TableViewer tableViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION); table = tableViewer.getTable(); table.setBounds(0, 211, 396, 287); Composite composite_1 = new Composite(container, SWT.NONE); GridData gd_composite_1 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1); gd_composite_1.heightHint = 502; gd_composite_1.widthHint = 183; composite_1.setLayoutData(gd_composite_1); Label label_3 = new Label(composite_1, SWT.NONE); label_3.setText("\u89E6\u6478\u4E8B\u4EF6:"); label_3.setBounds(21, 91, 61, 17); text_3 = new Text(composite_1, SWT.BORDER); text_3.setBounds(88, 88, 85, 23); Label label_7 = new Label(composite_1, SWT.NONE); label_7.setText("\u4E3B\u8981\u5BFC\u822A:"); label_7.setBounds(21, 307, 61, 17); text_7 = new Text(composite_1, SWT.BORDER); text_7.setBounds(88, 304, 85, 23); Label label_8 = new Label(composite_1, SWT.NONE); label_8.setText("\u7CFB\u7EDF\u6309\u952E:"); label_8.setBounds(21, 333, 61, 17); text_8 = new Text(composite_1, SWT.BORDER); text_8.setBounds(88, 330, 85, 23); Label label_9 = new Label(composite_1, SWT.NONE); label_9.setText("\u542F\u52A8\u6D3B\u52A8:"); label_9.setBounds(21, 362, 61, 17); text_9 = new Text(composite_1, SWT.BORDER); text_9.setBounds(88, 359, 85, 23); Label label_10 = new Label(composite_1, SWT.NONE); label_10.setText("\u5176\u4ED6\u4E8B\u4EF6:"); label_10.setBounds(21, 388, 61, 17); text_10 = new Text(composite_1, SWT.BORDER); text_10.setBounds(88, 385, 85, 23); return container; }
Example 12
Source File: SeriesPagePie.java From slr-toolkit with Eclipse Public License 1.0 | 4 votes |
public SeriesPagePie(Composite parent, int style) { super(parent, style); setLayout(new GridLayout(1, false)); compositeFirst = new Composite(this, SWT.NONE); compositeFirst.setLayout(new GridLayout(2, false)); compositeFirst.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); btnNewButton = new Button(compositeFirst, SWT.NONE); btnNewButton.setText("Select Term"); lblSelectedTermIs = new Label(compositeFirst, SWT.CENTER); GridData gd_lblSelectedTermIs = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_lblSelectedTermIs.widthHint = 367; lblSelectedTermIs.setLayoutData(gd_lblSelectedTermIs); lblSelectedTermIs.setText("No Term Selected"); btnNewButton.addSelectionListener(this); Composite compositeCentre = new Composite(this, SWT.NONE); compositeCentre.setLayout(new GridLayout(1, false)); compositeCentre.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); list = new List(compositeCentre, SWT.BORDER | SWT.V_SCROLL); GridData gd_list = new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1); gd_list.widthHint = 400; list.setLayoutData(gd_list); list.setBounds(0, 0, 71, 68); list.addSelectionListener(this); Composite compositeNorth = new Composite(this, SWT.NONE); compositeNorth.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); FillLayout fl_compositeNorth = new FillLayout(SWT.HORIZONTAL); fl_compositeNorth.marginWidth = 5; fl_compositeNorth.spacing = 5; compositeNorth.setLayout(fl_compositeNorth); lblColor = new Label(compositeNorth, SWT.NONE); lblColor.setText("Color:"); btnRadioButtonGrey = new Button(compositeNorth, SWT.RADIO); btnRadioButtonGrey.setText("Grey"); btnRadioButtonGrey.addSelectionListener(this); btnRadioButtonCustom = new Button(compositeNorth, SWT.RADIO); btnRadioButtonCustom.setText("Custom"); btnRadioButtonCustom.addSelectionListener(this); btnRadioButtonRandom = new Button(compositeNorth, SWT.RADIO); btnRadioButtonRandom.setSelection(true); btnRadioButtonRandom.setText("Random"); btnOneColor = new Button(compositeNorth, SWT.RADIO); btnOneColor.setText("One Color"); btnOneColor.addSelectionListener(this); btnRadioButtonRandom.addSelectionListener(this); Composite compositeSouth = new Composite(this, SWT.NONE); compositeSouth.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); compositeSouth.setLayout(new GridLayout(5, false)); btnCheckButton = new Button(compositeSouth, SWT.CHECK); btnCheckButton.setBounds(0, 0, 111, 20); btnCheckButton.setText("Show in Chart"); btnCheckButton.addSelectionListener(this); labelShowColor = new Label(compositeSouth, SWT.BORDER); GridData gd_labelShowColor = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_labelShowColor.widthHint = 100; labelShowColor.setLayoutData(gd_labelShowColor); labelShowColor.setBounds(0, 0, 70, 20); labelShowColor.setText(" "); labelShowColor.addMouseListener(this); new Label(compositeSouth, SWT.NONE); new Label(compositeSouth, SWT.NONE); new Label(compositeSouth, SWT.NONE); loadSettings(); }
Example 13
Source File: SeriesPageBubble.java From slr-toolkit with Eclipse Public License 1.0 | 4 votes |
public SeriesPageBubble(Composite parent, int style) { super(parent, style); setLayout(new GridLayout(1, false)); compositeFirst = new Composite(this, SWT.NONE); compositeFirst.setLayout(new GridLayout(4, true)); compositeFirst.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); btnGetYTerm = new Button(compositeFirst, SWT.NONE); btnGetYTerm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); btnGetYTerm.setText("Select Y Term"); btnGetYTerm.addSelectionListener(this); lblySelectedTermIs = new Label(compositeFirst, SWT.NONE); lblySelectedTermIs.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); lblySelectedTermIs.setText("No Term Selected"); btnGetXTerm = new Button(compositeFirst, SWT.NONE); btnGetXTerm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); btnGetXTerm.setText("Select X Term"); btnGetXTerm.addSelectionListener(this); lblxNewLabel = new Label(compositeFirst, SWT.NONE); lblxNewLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); lblxNewLabel.setText("No Term Selected"); Composite compositeCentre = new Composite(this, SWT.NONE); compositeCentre.setLayout(new FillLayout(SWT.HORIZONTAL)); GridData gd_compositeCentre = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1); gd_compositeCentre.widthHint = 218; compositeCentre.setLayoutData(gd_compositeCentre); list_y = new List(compositeCentre, SWT.BORDER | SWT.V_SCROLL); list_y.setBounds(0, 0, 71, 68); list_y.addSelectionListener(this); list_x = new List(compositeCentre, SWT.BORDER | SWT.V_SCROLL); list_x.addSelectionListener(this); Composite compositeNorth = new Composite(this, SWT.NONE); compositeNorth.setLayout(new GridLayout(2, false)); compositeNorth.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); btnShowInChartY = new Button(compositeNorth, SWT.CHECK); btnShowInChartY.setBounds(0, 0, 111, 20); btnShowInChartY.setText("Show in Chart"); btnShowInChartY.addSelectionListener(this); btnShowInChartX = new Button(compositeNorth, SWT.CHECK); btnShowInChartX.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1)); btnShowInChartX.setText("Show in Chart"); btnShowInChartX.addSelectionListener(this); Composite compositeSouth = new Composite(this, SWT.NONE); compositeSouth.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); compositeSouth.setLayout(new GridLayout(6, false)); lblColorYSeries = new Label(compositeSouth, SWT.NONE); GridData gd_lblColorYSeries = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_lblColorYSeries.widthHint = 100; lblColorYSeries.setLayoutData(gd_lblColorYSeries); lblColorYSeries.setText("Color Y Series:"); labelShowColor = new Label(compositeSouth, SWT.BORDER); GridData gd_labelShowColor = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_labelShowColor.widthHint = 100; labelShowColor.setLayoutData(gd_labelShowColor); labelShowColor.setBounds(0, 0, 70, 20); labelShowColor.setText(" "); btnRadioButtonGrey = new Button(compositeSouth, SWT.RADIO); btnRadioButtonGrey.setText("Grey"); btnRadioButtonCustom = new Button(compositeSouth, SWT.RADIO); btnRadioButtonCustom.setText("Custom"); btnRadioButtonRandom = new Button(compositeSouth, SWT.RADIO); btnRadioButtonRandom.setSelection(true); btnRadioButtonRandom.setText("Random"); btnOneColor = new Button(compositeSouth, SWT.RADIO); btnOneColor.setText("One color"); btnOneColor.addSelectionListener(this); btnRadioButtonRandom.addSelectionListener(this); btnRadioButtonCustom.addSelectionListener(this); btnRadioButtonGrey.addSelectionListener(this); labelShowColor.addMouseListener(this); loadSettings(); }
Example 14
Source File: SeriesPageBar.java From slr-toolkit with Eclipse Public License 1.0 | 4 votes |
public SeriesPageBar(Composite parent, int style) { super(parent, style); setLayout(new GridLayout(1, false)); compositeFirst = new Composite(this, SWT.NONE); compositeFirst.setLayout(new GridLayout(2, false)); compositeFirst.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); btnNewButton = new Button(compositeFirst, SWT.NONE); btnNewButton.setText("Select Term"); lblSelectedTermIs = new Label(compositeFirst, SWT.CENTER); GridData gd_lblSelectedTermIs = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_lblSelectedTermIs.widthHint = 367; lblSelectedTermIs.setLayoutData(gd_lblSelectedTermIs); lblSelectedTermIs.setText("No Term Selected"); btnNewButton.addSelectionListener(this); Composite compositeCentre = new Composite(this, SWT.NONE); compositeCentre.setLayout(new GridLayout(1, false)); compositeCentre.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); list = new List(compositeCentre, SWT.BORDER | SWT.V_SCROLL); GridData gd_list = new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1); gd_list.widthHint = 400; list.setLayoutData(gd_list); list.setBounds(0, 0, 71, 68); list.addSelectionListener(this); Composite compositeNorth = new Composite(this, SWT.NONE); compositeNorth.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); FillLayout fl_compositeNorth = new FillLayout(SWT.HORIZONTAL); fl_compositeNorth.marginWidth = 5; fl_compositeNorth.spacing = 5; compositeNorth.setLayout(fl_compositeNorth); lblColor = new Label(compositeNorth, SWT.NONE); lblColor.setText("Color: "); btnRadioButtonGrey = new Button(compositeNorth, SWT.RADIO); btnRadioButtonGrey.setText("Grey"); btnRadioButtonGrey.addSelectionListener(this); btnRadioButtonCustom = new Button(compositeNorth, SWT.RADIO); btnRadioButtonCustom.setText("Custom"); btnRadioButtonCustom.addSelectionListener(this); btnRadioButtonRandom = new Button(compositeNorth, SWT.RADIO); btnRadioButtonRandom.setSelection(true); btnRadioButtonRandom.setText("Random"); btnOneColor = new Button(compositeNorth, SWT.RADIO); btnOneColor.setText("One Color"); btnOneColor.addSelectionListener(this); btnRadioButtonRandom.addSelectionListener(this); Composite compositeSouth = new Composite(this, SWT.NONE); compositeSouth.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); compositeSouth.setLayout(new GridLayout(5, false)); btnCheckButton = new Button(compositeSouth, SWT.CHECK); btnCheckButton.setBounds(0, 0, 111, 20); btnCheckButton.setText("Show in Chart"); btnCheckButton.addSelectionListener(this); labelShowColor = new Label(compositeSouth, SWT.BORDER); GridData gd_labelShowColor = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); gd_labelShowColor.widthHint = 100; labelShowColor.setLayoutData(gd_labelShowColor); labelShowColor.setBounds(0, 0, 70, 20); labelShowColor.setText(" "); labelShowColor.addMouseListener(this); new Label(compositeSouth, SWT.NONE); new Label(compositeSouth, SWT.NONE); new Label(compositeSouth, SWT.NONE); loadSettings(); }