Codota Logo
DefaultTreeCellEditor$EditorContainer
Code IndexAdd Codota to your IDE (free)

How to use
DefaultTreeCellEditor$EditorContainer
in
javax.swing.tree

Best Java code snippets using javax.swing.tree.DefaultTreeCellEditor$EditorContainer (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

  @Override
  public Dimension getPreferredSize() {
    if (isRightToLeft()) {
      if(editingComponent != null) {
        Dimension         pSize = editingComponent.getPreferredSize();

        pSize.width += offset + 5;

        Dimension         rSize = (renderer != null) ?
                     renderer.getPreferredSize() : null;

        if(rSize != null)
          pSize.height = Math.max(pSize.height, rSize.height);
        if(editingIcon != null)
          pSize.height = Math.max(pSize.height,
                      editingIcon.getIconHeight());

        // trying to enforce a minimum size leads to field being painted over the icon
        // Make sure width is at least 100.
//                pSize.width = Math.max(pSize.width, 100);
        return pSize;
      }
      return new Dimension(0, 0);
    }
    return super.getPreferredSize();
    
  }
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
public void doLayout() {
  if (isRightToLeft()) {
    Dimension             cSize = getSize();
    editingComponent.getPreferredSize();
    editingComponent.setLocation(0, 0);
    editingComponent.setBounds(0, 0,
                  cSize.width - offset,
                  cSize.height);
  } else {
    super.doLayout();
  }
}
origin: org.swinglabs.swingx/swingx-all

@Override
public void doLayout() {
  if (isRightToLeft()) {
    Dimension             cSize = getSize();
    editingComponent.getPreferredSize();
    editingComponent.setLocation(0, 0);
    editingComponent.setBounds(0, 0,
                  cSize.width - offset,
                  cSize.height);
  } else {
    super.doLayout();
  }
}
origin: org.swinglabs.swingx/swingx-core

@Override
public void paint(Graphics g) {
  if (isRightToLeft()) {
    Dimension size = getSize();
    // Then the icon.
    if (editingIcon != null) {
      int yLoc = Math.max(0, (size.height - editingIcon
          .getIconHeight()) / 2);
      int xLoc = Math.max(0, size.width - offset);
      editingIcon.paintIcon(this, g, xLoc, yLoc);
    }
    // need to prevent super from painting the icon
    Icon rememberIcon = editingIcon;
    editingIcon = null;
    super.paint(g);
    editingIcon = rememberIcon;
    
  } else {
    super.paint(g);
  }
}
 
origin: com.haulmont.thirdparty/swingx-core

@Override
public void paint(Graphics g) {
  if (isRightToLeft()) {
    Dimension size = getSize();
    // Then the icon.
    if (editingIcon != null) {
      int yLoc = Math.max(0, (size.height - editingIcon
          .getIconHeight()) / 2);
      int xLoc = Math.max(0, size.width - offset);
      editingIcon.paintIcon(this, g, xLoc, yLoc);
    }
    // need to prevent super from painting the icon
    Icon rememberIcon = editingIcon;
    editingIcon = null;
    super.paint(g);
    editingIcon = rememberIcon;
    
  } else {
    super.paint(g);
  }
}
 
origin: com.haulmont.thirdparty/swingx-core

@Override
public void doLayout() {
  if (isRightToLeft()) {
    Dimension             cSize = getSize();
    editingComponent.getPreferredSize();
    editingComponent.setLocation(0, 0);
    editingComponent.setBounds(0, 0,
                  cSize.width - offset,
                  cSize.height);
  } else {
    super.doLayout();
  }
}
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
public void paint(Graphics g) {
  if (isRightToLeft()) {
    Dimension size = getSize();
    // Then the icon.
    if (editingIcon != null) {
      int yLoc = Math.max(0, (size.height - editingIcon
          .getIconHeight()) / 2);
      int xLoc = Math.max(0, size.width - offset);
      editingIcon.paintIcon(this, g, xLoc, yLoc);
    }
    // need to prevent super from painting the icon
    Icon rememberIcon = editingIcon;
    editingIcon = null;
    super.paint(g);
    editingIcon = rememberIcon;
    
  } else {
    super.paint(g);
  }
}
 
origin: org.codehaus.jtstand/jtstand-desktop

@Override
public void paint(Graphics g) {
  if (isRightToLeft()) {
    Dimension size = getSize();
    // Then the icon.
    if (editingIcon != null) {
      int yLoc = Math.max(0, (size.height - editingIcon
          .getIconHeight()) / 2);
      int xLoc = Math.max(0, size.width - offset);
      editingIcon.paintIcon(this, g, xLoc, yLoc);
    }
    // need to prevent super from painting the icon
    Icon rememberIcon = editingIcon;
    editingIcon = null;
    super.paint(g);
    editingIcon = rememberIcon;
    
  } else {
    super.paint(g);
  }
}
 
origin: com.haulmont.thirdparty/swingx-core

  @Override
  public Dimension getPreferredSize() {
    if (isRightToLeft()) {
      if(editingComponent != null) {
        Dimension         pSize = editingComponent.getPreferredSize();

        pSize.width += offset + 5;

        Dimension         rSize = (renderer != null) ?
                     renderer.getPreferredSize() : null;

        if(rSize != null)
          pSize.height = Math.max(pSize.height, rSize.height);
        if(editingIcon != null)
          pSize.height = Math.max(pSize.height,
                      editingIcon.getIconHeight());

        // trying to enforce a minimum size leads to field being painted over the icon
        // Make sure width is at least 100.
//                pSize.width = Math.max(pSize.width, 100);
        return pSize;
      }
      return new Dimension(0, 0);
    }
    return super.getPreferredSize();
    
  }
origin: org.swinglabs.swingx/swingx-core

  @Override
  public Dimension getPreferredSize() {
    if (isRightToLeft()) {
      if(editingComponent != null) {
        Dimension         pSize = editingComponent.getPreferredSize();

        pSize.width += offset + 5;

        Dimension         rSize = (renderer != null) ?
                     renderer.getPreferredSize() : null;

        if(rSize != null)
          pSize.height = Math.max(pSize.height, rSize.height);
        if(editingIcon != null)
          pSize.height = Math.max(pSize.height,
                      editingIcon.getIconHeight());

        // trying to enforce a minimum size leads to field being painted over the icon
        // Make sure width is at least 100.
//                pSize.width = Math.max(pSize.width, 100);
        return pSize;
      }
      return new Dimension(0, 0);
    }
    return super.getPreferredSize();
    
  }
origin: org.swinglabs.swingx/swingx-core

@Override
public void doLayout() {
  if (isRightToLeft()) {
    Dimension             cSize = getSize();
    editingComponent.getPreferredSize();
    editingComponent.setLocation(0, 0);
    editingComponent.setBounds(0, 0,
                  cSize.width - offset,
                  cSize.height);
  } else {
    super.doLayout();
  }
}
origin: org.codehaus.jtstand/jtstand-desktop

  @Override
  public Dimension getPreferredSize() {
    if (isRightToLeft()) {
      if(editingComponent != null) {
        Dimension         pSize = editingComponent.getPreferredSize();

        pSize.width += offset + 5;

        Dimension         rSize = (renderer != null) ?
                     renderer.getPreferredSize() : null;

        if(rSize != null)
          pSize.height = Math.max(pSize.height, rSize.height);
        if(editingIcon != null)
          pSize.height = Math.max(pSize.height,
                      editingIcon.getIconHeight());

        // trying to enforce a minimum size leads to field being painted over the icon
        // Make sure width is at least 100.
//                pSize.width = Math.max(pSize.width, 100);
        return pSize;
      }
      return new Dimension(0, 0);
    }
    return super.getPreferredSize();
    
  }
origin: org.codehaus.jtstand/jtstand-desktop

@Override
public void doLayout() {
  if (isRightToLeft()) {
    Dimension             cSize = getSize();
    editingComponent.getPreferredSize();
    editingComponent.setLocation(0, 0);
    editingComponent.setBounds(0, 0,
                  cSize.width - offset,
                  cSize.height);
  } else {
    super.doLayout();
  }
}
origin: org.swinglabs.swingx/swingx-all

  @Override
  public Dimension getPreferredSize() {
    if (isRightToLeft()) {
      if(editingComponent != null) {
        Dimension         pSize = editingComponent.getPreferredSize();

        pSize.width += offset + 5;

        Dimension         rSize = (renderer != null) ?
                     renderer.getPreferredSize() : null;

        if(rSize != null)
          pSize.height = Math.max(pSize.height, rSize.height);
        if(editingIcon != null)
          pSize.height = Math.max(pSize.height,
                      editingIcon.getIconHeight());

        // trying to enforce a minimum size leads to field being painted over the icon
        // Make sure width is at least 100.
//                pSize.width = Math.max(pSize.width, 100);
        return pSize;
      }
      return new Dimension(0, 0);
    }
    return super.getPreferredSize();
    
  }
origin: org.swinglabs.swingx/swingx-all

@Override
public void paint(Graphics g) {
  if (isRightToLeft()) {
    Dimension size = getSize();
    // Then the icon.
    if (editingIcon != null) {
      int yLoc = Math.max(0, (size.height - editingIcon
          .getIconHeight()) / 2);
      int xLoc = Math.max(0, size.width - offset);
      editingIcon.paintIcon(this, g, xLoc, yLoc);
    }
    // need to prevent super from painting the icon
    Icon rememberIcon = editingIcon;
    editingIcon = null;
    super.paint(g);
    editingIcon = rememberIcon;
    
  } else {
    super.paint(g);
  }
}
 
javax.swing.treeDefaultTreeCellEditor$EditorContainer

Most used methods

  • doLayout
  • getPreferredSize
  • paint

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
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