Description: The setVisible() method in the org.eclipse.swt.widgets Composite class is used to set the visibility of a composite widget. Composite widgets are containers that can contain other widgets.
Example 1: Composite composite = new Composite(parent, SWT.NONE); composite.setVisible(true);
This example creates a new composite widget with no style, adds it to the parent widget, and sets its visibility to true.
Example 2: Composite composite = new Composite(parent, SWT.NONE); composite.setVisible(false);
This example creates a new composite widget with no style, adds it to the parent widget, and sets its visibility to false.
Package library: The org.eclipse.swt.widgets package is part of the Eclipse Standard Widget Toolkit (SWT) library.
Java Composite.setVisible - 30 examples found. These are the top rated real world Java examples of org.eclipse.swt.widgets.Composite.setVisible extracted from open source projects. You can rate examples to help us improve the quality of examples.