From: Bearish <upperbear@gto.net>
To: java@gcc.gnu.org
Subject: can get mouse events with javac but not gcj ... what's wrong?
Date: Mon, 07 Jun 2010 18:46:00 -0000 [thread overview]
Message-ID: <87sk4y7k9i.fsf@gto.net> (raw)
Java code NoMouse.java is at the bottom of this posting.
NoMouse works with javac but not gcj.
You test by moving moving mouse in-and-out-of-window:
$ javac NoMouse.java ; java NoMouse
mouseEntered
mouseEntered
mouseEntered
...
But I do _not_ get "mouseEntered" whin compiling with gcj:
$ gcj --main=NoMouse NoMouse.java ; ./a.out
What am I doing wrong? Is there a workaround?
How can I get mouse events when using gcj?
--- NoMouse.java follows ---
import java.awt.event.*;
import javax.swing.*;
public class NoMouse extends JFrame {
public static void main(String [] args) { new NoMouse(); }
public NoMouse() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(500, 300);
addMouseListener(new MouseAdapter() {
@Override
public void mouseEntered(MouseEvent e) {
System.out.format("mouseEntered\n");
}
});
setVisible(true);
}
}
reply other threads:[~2010-06-07 18:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sk4y7k9i.fsf@gto.net \
--to=upperbear@gto.net \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).