Java Swing Mouse convertPoint(MouseEvent evt, Component target)

Here you can find the source of convertPoint(MouseEvent evt, Component target)

Description

convert Point

License

Open Source License

Declaration

public static Point convertPoint(MouseEvent evt, Component target) 

Method Source Code


//package com.java2s;
/*/*from w  ww. ja  va 2 s.c om*/
 * This file is part of the Jose Project
 * see http://jose-chess.sourceforge.net/
 * (c) 2002-2006 Peter Sch?fer
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 */

import javax.swing.*;

import java.awt.*;

import java.awt.event.MouseEvent;

public class Main {
    public static Point convertPoint(MouseEvent evt, Component target) {
        return SwingUtilities.convertPoint(evt.getComponent(), evt.getPoint(), target);
    }
}

Related

  1. clickedInSelection(MouseEvent e)
  2. convert(MouseEvent event, Component newSource)
  3. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
  4. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
  5. convertMouseEvent(java.awt.Component source, java.awt.event.MouseEvent sourceEvent, java.awt.Component destination)
  6. createButton(JComponent parent, String description, MouseListener listener)
  7. decorateComponentWithMouseOverCursorChange(final JComponent toDecorate, final int mouseEntered, final int mouseExited)
  8. delegateEventToParent(Component component, MouseEvent e)
  9. disableDoubleMouseClick(Component c)