javax.swing.JTextField.processMouseEvent()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中javax.swing.JTextField.processMouseEvent()方法的一些代码示例,展示了JTextField.processMouseEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.processMouseEvent()方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:processMouseEvent

JTextField.processMouseEvent介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-explorer

@Override
public void processMouseEvent(MouseEvent me) {
  super.processMouseEvent(me);
  if (added) {
    handleInitialInputEvent(me);
  }
  added = false;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public void processMouseEvent(MouseEvent me) {
  super.processMouseEvent(me);
  if (added) {
    handleInitialInputEvent(me);
  }
  added=false;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public void processMouseEvent(MouseEvent me) {
  super.processMouseEvent(me);
  if (added) {
    handleInitialInputEvent(me);
  }
  added=false;
}

代码示例来源:origin: xyz.cofe/gui.swing

@Override
protected void processMouseEvent(MouseEvent e) {
  if( warningIconVisible && e.getID()==MouseEvent.MOUSE_PRESSED ){
    
    Rectangle rect = getWarningIconRect();
    String btxt = getBalloonText();
    
    if( rect!=null && 
      rect.contains(e.getX(), e.getY()) &&
      btxt!=null && btxt.trim().length()>0 ){
      
      BalloonTip balloon = new BalloonTip(this, btxt,new RoundedBalloonStyle(7,7,Color.white,Color.black),true);
      
      return;
    }
  }
  super.processMouseEvent(e);
}

代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit

protected void processMouseEvent(MouseEvent evt)
{
  if(!isEnabled())
    return;
  switch(evt.getID())
  {
  case MouseEvent.MOUSE_PRESSED:
    Border border = getBorder();
    Insets insets = border.getBorderInsets(HistoryTextField.this);
    if(evt.getX() >= getWidth() - insets.right
      || GUIUtilities.isPopupTrigger(evt))
    {
      controller.showPopupMenu(evt.isShiftDown());
    }
    else
      super.processMouseEvent(evt);
    break;
  case MouseEvent.MOUSE_EXITED:
    setCursor(Cursor.getDefaultCursor());
    super.processMouseEvent(evt);
    break;
  default:
    super.processMouseEvent(evt);
    break;
  }
} //}}}

相关文章

JTextField类方法