Codota Logo
Composite.setBackground
Code IndexAdd Codota to your IDE (free)

How to use
setBackground
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setBackground (Showing top 20 results out of 540)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

protected void runConfigurationSectionLayout( Class<?> PKG, String prefix ) {
 cRunConfiguration = new Composite( shell, SWT.NONE );
 cRunConfiguration.setLayout( new FormLayout() );
 props.setLook( cRunConfiguration );
 FormData fdLocal = new FormData();
 fdLocal.top = new FormAttachment( 0, 15 );
 fdLocal.right = new FormAttachment( 100, -15 );
 fdLocal.left = new FormAttachment( 0, 15 );
 cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly
 cRunConfiguration.setLayoutData( fdLocal );
 Label wlRunConfiguration = new Label( cRunConfiguration, SWT.LEFT );
 props.setLook( wlRunConfiguration );
 wlRunConfiguration.setText( "Run configuration:" );
 FormData fdlRunConfiguration = new FormData();
 fdlRunConfiguration.top = new FormAttachment( 0 );
 fdlRunConfiguration.left = new FormAttachment( 0 );
 wlRunConfiguration.setLayoutData( fdlRunConfiguration );
 wRunConfiguration = new CCombo( cRunConfiguration, SWT.BORDER );
 props.setLook( wRunConfiguration );
 FormData fdRunConfiguration = new FormData();
 fdRunConfiguration.width = 200;
 fdRunConfiguration.top = new FormAttachment( wlRunConfiguration, 5 );
 fdRunConfiguration.left = new FormAttachment( 0 );
 wRunConfiguration.setLayoutData( fdRunConfiguration );
}
origin: pentaho/pentaho-kettle

final Composite composite = new Composite( wTree, SWT.NONE );
if ( !isCarbon ) {
 composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
origin: pentaho/pentaho-kettle

final Composite composite = new Composite( wTree, SWT.NONE );
if ( !isCarbon ) {
 composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
origin: pentaho/pentaho-kettle

final Composite composite = new Composite( wTree, SWT.NONE );
if ( !isCarbon ) {
 composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
origin: pentaho/pentaho-kettle

fdLocal.left = new FormAttachment( 0 );
cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly
cRunConfiguration.setLayoutData( fdLocal );
origin: pentaho/pentaho-kettle

composite.setLayout( compLayout );
composite.setBackground( display.getSystemColor( SWT.COLOR_INFO_BACKGROUND ) );
origin: pentaho/pentaho-kettle

fdLocal.left = new FormAttachment( 0 );
cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly
cRunConfiguration.setLayoutData( fdLocal );
origin: pentaho/pentaho-kettle

perfComposite.setBackground( GUIResource.getInstance().getColorBackground() );
perfComposite.setLayout( new FormLayout() );
origin: pentaho/pentaho-kettle

gButtonGroup.setBackground( shell.getBackground() ); // the default looks ugly
gButtonGroup.setLayoutData( fdButtonGroup );
origin: pentaho/pentaho-kettle

private void addViewTab( CTabFolder tabFolder ) {
 Composite viewComposite = new Composite( tabFolder, SWT.NONE );
 viewComposite.setLayout( new FormLayout()  );
 viewComposite.setBackground( GUIResource.getInstance().getColorDemoGray() );
origin: pentaho/pentaho-kettle

private void addDesignTab( CTabFolder tabFolder ) {
 Composite designComposite = new Composite( tabFolder, SWT.NONE );
 designComposite.setLayout( new FormLayout()  );
 designComposite.setBackground( GUIResource.getInstance().getColorDemoGray() );
origin: pentaho/pentaho-kettle

metricsComposite.setBackground( GUIResource.getInstance().getColorBackground() );
metricsComposite.setLayout( new FormLayout() );
origin: pentaho/pentaho-kettle

metricsComposite.setBackground( GUIResource.getInstance().getColorBackground() );
metricsComposite.setLayout( new FormLayout() );
origin: org.eclipse/org.eclipse.jdt.ui

private Composite createCompositeSeparator(Composite parent) {
  Composite composite = new Composite(parent, SWT.NONE);
  composite.setBackground(fSeparatorColor);
  return composite;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

private Composite createCompositeSeparator(Composite parent) {
  Composite composite = new Composite(parent, SWT.NO_FOCUS);
  composite.setBackground(fSeparatorColor);
  return composite;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setBackground (Color color) {
  super.setBackground(color);
  background = color;
  for (int i = 0; i < sashes.length; i++) {
    sashes[i].setBackground(background);
  }
}
@Override
origin: org.codehaus.openxma/xmartclient

  /**
   * Sets the background for this PagingControl.
   * the background color is also set for the labels 
   */    
  public void setBackground(Color color) {        
    super.setBackground(color);
    info.setBackground(color);
    pageSizeL.setBackground(color);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  public void propertyChange(PropertyChangeEvent event) {
    if (ACTIVE_TAB_BG_END.equals(event.getProperty())) {
      if (fComposite.isFocusControl()) {
        fComposite.setBackground(JFaceResources.getColorRegistry().get(ACTIVE_TAB_BG_END));
      }
    }
  }
};
origin: BiglySoftware/BiglyBT

@Override
public void setBackground(Color color) {
  if (null != label && !label.isDisposed()) {
    label.setBackground(color);
  }
  if (null != content && !content.isDisposed()) {
    content.setBackground(color);
  }
  super.setBackground(color);
}
origin: org.eclipse.mylyn.commons/workbench

@Override
public void setBackground(Color backgroundColor) {
  super.setBackground(backgroundColor);
  dateText.setBackground(backgroundColor);
  if ((getStyle() & SWT.FLAT) != 0) {
    pickButton.setBackground(backgroundColor);
    clearControl.setBackground(backgroundColor);
  } else {
    pickButton.setBackground(null);
    clearControl.setBackground(null);
  }
}
org.eclipse.swt.widgetsCompositesetBackground

Javadoc

Sets the background drawing mode to the argument which should be one of the following constants defined in class SWT: INHERIT_NONE, INHERIT_DEFAULT, INHERIT_FORCE.

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now