Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Point;
import java.awt.event.MouseEvent;

import javax.swing.JButton;

public class Main {
    public static void main(String[] argv) throws Exception {

        JButton button = new JButton("My Button") {
            public Point getToolTipLocation(MouseEvent event) {
                return new Point(0, 0);
            }
        };

    }
}