本文整理了Java中javax.swing.text.JTextComponent.addMouseListener()
方法的一些代码示例,展示了JTextComponent.addMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextComponent.addMouseListener()
方法的具体详情如下:
包路径:javax.swing.text.JTextComponent
类名称:JTextComponent
方法名:addMouseListener
暂无
代码示例来源:origin: skylot/jadx
private void registerListeners() {
textComponent.addMouseListener(new MouseAdapter() {
@Override
public void mouseReleased(MouseEvent e) {
if (e.getButton() == 3 && e.getSource() == textComponent) {
process(e);
}
}
});
textComponent.getDocument().addUndoableEditListener(event -> undoManager.addEdit(event.getEdit()));
}
代码示例来源:origin: wiztools/rest-client
se_response.getEditorComponent().addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
代码示例来源:origin: wiztools/rest-client
se_req_body.getEditorComponent().addMouseListener(new MouseAdapter() {
private void eEnable() {
if(se_req_body.getEditorComponent().isEnabled()) {
代码示例来源:origin: pentaho/mondrian
(JTextComponent) listEditor.getEditor().getEditorComponent();
editor.addMouseListener(
new MouseAdapter() {
public void mousePressed(MouseEvent e) {
代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2
public static void installDefaultMouseListener(JTextComponent jtc){
jtc.addMouseListener(INSTANCE);
}
/**
代码示例来源:origin: T145/JTerm
ProtectedNavigationFilter(JTextComponent component) {
this.component = component;
this.component.addMouseListener(this);
}
代码示例来源:origin: de.sciss/scisslib
private void addTextComponent( JTextComponent c )
{
c.addMouseListener( this );
c.addFocusListener( this );
if( DEBUG ) System.err.println( "addFocus/MouseListener " + c.getClass().getName() + "(" + c.hashCode() + ")" );
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
public void run()
{
getTextComponent().addMouseListener(_sqlEntryMouseListener);
}
});
代码示例来源:origin: notzippy/JALOPY2-MAIN
public void add()
{
this.component.addMouseListener(this.mouseHandler);
this.component.addKeyListener(this.keyHandler);
}
代码示例来源:origin: realXuJiang/bigtable-sql
public void run()
{
getTextComponent().addMouseListener(_sqlEntryMouseListener);
}
});
代码示例来源:origin: khuxtable/seaglass
/**
* DOCUMENT ME!
*/
private void installMouseListeners() {
if (mouseListener == null) {
mouseListener = createMouseListener();
getComponent().addMouseListener(mouseListener);
getComponent().addMouseMotionListener(mouseListener);
}
}
代码示例来源:origin: net.sf.nimrod/nimrod-laf
protected void installListeners() {
super.installListeners();
miTextML = new MiTextML();
getComponent().addMouseListener( miTextML);
getComponent().addFocusListener( miTextML);
}
代码示例来源:origin: net.sf.nimrod/nimrod-laf
protected void installListeners() {
super.installListeners();
miTextML = new MiTextML();
getComponent().addMouseListener( miTextML);
getComponent().addFocusListener( miTextML);
}
代码示例来源:origin: com.bitplan.antlr/com.bitplan.antlr
public LinePainter(JTextComponent component, Color color) {
this.component = component;
setColor(color);
// Add listeners so we know when to change highlighting
component.addCaretListener(this);
component.addMouseListener(this);
component.addMouseMotionListener(this);
// Turn highlighting on by adding a dummy highlight
try {
component.getHighlighter().addHighlight(0, 0, this);
} catch (BadLocationException ble) {
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
protected void installListeners() {
super.installListeners();
getComponent().addMouseListener(TextComponentPopupHandler.getInstance());
getComponent().addFocusListener(TextComponentFocusListener.getInstance());
}
}
内容来源于网络,如有侵权,请联系作者删除!