本文整理了Java中javax.swing.JLabel.processMouseEvent()
方法的一些代码示例,展示了JLabel.processMouseEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.processMouseEvent()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:processMouseEvent
暂无
代码示例来源:origin: tinyMediaManager/tinyMediaManager
/**
* Processes mouse events and responds to clicks.
*
* @param evt
* the evt
*/
@Override
protected void processMouseEvent(MouseEvent evt) {
super.processMouseEvent(evt);
if (evt.getID() == MouseEvent.MOUSE_CLICKED)
fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, getNormalText()));
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
@Override
protected void processMouseEvent(MouseEvent e) {
if (e.getButton()==MouseEvent.BUTTON1) {
switch (e.getID()) {
case MouseEvent.MOUSE_CLICKED:
if (!UIUtil.browse(getAddress())) {
UIManager.getLookAndFeel().
provideErrorFeedback(this);
}
break;
}
}
super.processMouseEvent(e);
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
protected void processMouseEvent(MouseEvent e) {
super.processMouseEvent(e);
if (e.getID() == MouseEvent.MOUSE_CLICKED) {
parentTabControl.setSelectedIndex(tabIndex);
if (component instanceof JPanel &&
component.getComponents() != null && component.getComponents().length > 0) {
Component comp = component.getComponent(0);
comp.requestFocusInWindow();
} else {
component.requestFocusInWindow();
}
if (component instanceof JTextField)
SwingUtilities.invokeLater(() -> {
((JTextField) component).setCaretPosition(((JTextField) component).getDocument().getLength());
});
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
protected void processMouseEvent(MouseEvent me) {
super.processMouseEvent(me);
if (me.getID() == me.MOUSE_CLICKED) {
Graphics g = getGraphics();
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
protected void processMouseEvent(MouseEvent me) {
super.processMouseEvent(me);
if (me.getID() == me.MOUSE_CLICKED) {
Graphics g = getGraphics();
内容来源于网络,如有侵权,请联系作者删除!