Package javax.swing

Examples of javax.swing.JApplet$AccessibleJApplet


    }
  }

  @Override
  public int getIndexOfChild(Component child) {
    JApplet japplet = (JApplet) getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    if (jmb == null)
      return contentAdapter.getIndexOfChild(child);
    else if (jmb == child)
      return 0;
    else
View Full Code Here


      return false;
    return contentAdapter.allowChildResize(child);
  }

  public Point convertToGlobal(Point p) {
    JApplet japplet = (JApplet) getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    if (jmb == null)
      return contentAdapter.convertToGlobal(p);
    else {
      p = SwingUtilities.convertPoint(jrootPane, p, contentPane);
      return contentAdapter.convertToGlobal(p);
View Full Code Here

    return this;
  }

  public boolean removeChild(Component child) {
    if (child instanceof JMenuBar) {
      JApplet japplet = (JApplet) getWidget();
      japplet.setJMenuBar(null);
      return true;
    } else
      return contentAdapter.removeChild(child);
  }
View Full Code Here

  private boolean isDroppingForbbiden() {
    return isDroppingMenu()||isDroppingMenuItem()||isDroppingPopup() || isDroppingMenuBar() && hasMenuBar();
  }

  private int getJMenuBarHeight() {
    JApplet japplet = (JApplet) adaptable.getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    return jmb.getHeight();
  }
View Full Code Here

    this.dropStatus = dropStatus;
  }
  @Override
  public void paintHovered(Graphics clipg) {
    if (dropStatus == NOOP) {
      JApplet japplet = (JApplet) adaptable.getWidget();
      JMenuBar jmb = japplet.getJMenuBar();
      if (jmb != null) {
        Rectangle bounds = adaptable.getContentPane().getBounds();
        bounds.x = bounds.y = 0;
        bounds = SwingUtilities.convertRectangle(adaptable.getContentPane(), bounds,
            adaptable.getRootPane());
View Full Code Here

    JMenuBar jmb = japplet.getJMenuBar();
    return jmb.getHeight();
  }

  private boolean hasMenuBar() {
    JApplet japplet = (JApplet) adaptable.getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    return jmb != null;
  }
View Full Code Here

    STROKE = new BasicStroke(2, BasicStroke.CAP_BUTT,
        BasicStroke.JOIN_BEVEL, 0, new float[] { 4 }, 0);
  }
  @Override
  public void paintHint(Graphics clipg) {
    JApplet japplet = (JApplet) adaptable.getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    if (jmb != null) {
      Rectangle bounds = adaptable.getContentPane().getBounds();
      bounds.x = bounds.y = 0;
      bounds = SwingUtilities.convertRectangle(adaptable.getContentPane(), bounds, adaptable.getRootPane());
      clipg = clipg.create(bounds.x, bounds.y, bounds.width,
View Full Code Here

      return false;
    } else if (isDroppingMenuBar()) {
      adaptable.setMascotLocation(p);
      WidgetAdapter target = adaptable.getDropWidget().get(0);
      JMenuBar jmb = (JMenuBar) target.getWidget();
      JApplet japplet = (JApplet) adaptable.getWidget();
      japplet.setJMenuBar(jmb);
      target.requestNewName();
      japplet.validate();
      adaptable.doLayout();
      adaptable.validateContent();
      adaptable.clearAllSelected();
      target.setSelected(true);
      adaptable.setDirty(true);
View Full Code Here

    if (jmb != null) {
      clipg.dispose();
    }
  }
  public void paintGrid(Graphics clipg) {
    JApplet japplet = (JApplet) adaptable.getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    if (jmb != null) {
      Rectangle bounds = adaptable.getContentPane().getBounds();
      bounds.x = bounds.y = 0;
      bounds = SwingUtilities.convertRectangle(adaptable.getContentPane(), bounds,
          adaptable.getRootPane());
View Full Code Here

    if (jmb != null) {
      clipg.dispose();
    }
  } 
  public void paintAnchor(Graphics g) {
    JApplet japplet = (JApplet) adaptable.getWidget();
    JMenuBar jmb = japplet.getJMenuBar();
    if (jmb != null) {
      Rectangle bounds = adaptable.getContentPane().getBounds();
      bounds.x = bounds.y = 0;
      bounds = SwingUtilities.convertRectangle(adaptable.getContentPane(), bounds,
          adaptable.getRootPane());
View Full Code Here

TOP

Related Classes of javax.swing.JApplet$AccessibleJApplet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.