The org.eclipse.swt.widgets Composite getBounds method returns the bounds of the composite. This method can be used to get the dimensions of a composite widget.
Example:
Composite composite = new Composite(parent, SWT.NONE); Rectangle bounds = composite.getBounds();
In this example, a new composite is created with the parent widget as its parent. The getBounds method is then called on the composite and the resulting rectangle is stored in the bounds variable.
The package library for the org.eclipse.swt.widgets class is the Eclipse Standard Widget Toolkit (SWT). This library provides a set of GUI components for creating rich client applications.
Java Composite.getBounds - 16 examples found. These are the top rated real world Java examples of org.eclipse.swt.widgets.Composite.getBounds extracted from open source projects. You can rate examples to help us improve the quality of examples.