Class Cleanup

This commit is contained in:
Konloch 2024-09-25 20:09:07 -06:00
parent 02749d6913
commit 68da280933

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -18,6 +18,7 @@
package the.bytecode.club.bytecodeviewer.gui.components.listeners;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
@ -25,29 +26,21 @@ import java.awt.event.MouseListener;
* @author Konloch
* @since 6/25/2021
*/
public class MouseClickedListener implements MouseListener
public class MouseClickedListener extends MouseAdapter
{
private final MouseClickedEvent mouseClickedEvent;
public MouseClickedListener(MouseClickedEvent mouseClickedEvent) {this.mouseClickedEvent = mouseClickedEvent;}
public MouseClickedListener(MouseClickedEvent mouseClickedEvent)
{
this.mouseClickedEvent = mouseClickedEvent;
}
@Override
public void mouseClicked(MouseEvent e) {
mouseClickedEvent.mouseClicked(e);
super.mouseClicked(e);
}
@Override
public void mouseEntered(MouseEvent arg0) { }
@Override
public void mouseExited(MouseEvent arg0) { }
@Override
public void mousePressed(MouseEvent arg0) { }
@Override
public void mouseReleased(MouseEvent e) { }
public interface MouseClickedEvent
{
void mouseClicked(MouseEvent e);