public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: <joseph.north@mail.mcgill.ca>
To: <gcc-help@gcc.gnu.org>
Cc: <joseph.north@gmail.com>
Subject: [Fwd: Java Help Request, et caetera!]
Date: Wed, 22 Sep 2004 00:55:00 -0000	[thread overview]
Message-ID: <3172.24.153.177.203.1095814518.squirrel@www.alumni.mcgill.ca> (raw)

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]


Dear gcc-help:


   Mayday, m'aider, s'il vous plait (see below)!
   Tempus fugit et ad augusta per angusta.




                       Nil desparare (Gauss),


                       Joseph Roy D. North

Scientia est Potentia!


-------- Original Message --------
Subject: Java Help Request, et caetera!
From: <joseph.north@mail.mcgill.ca>
Date: Mon, September 20, 2004 2:39 pm
To: <llee4@austin.rr.com>
Cc: "Danny Dineen" <ddineen@usa.com>, <joseph.north@gmail.com>


Hi Lance,


   Please look at the attached file, and help me to get it
to work, please!  You could come over, or I could visit you.
   I am running under Red Hat Linux Fedora Core 1.
   Do you want to try Knoppix 3.4 on live CD, and KStars
1.0, which I told you I have when I last returned your
Java book?  Can you now burn a copy for yourself, please?



                       Thanks,


                       Joseph Roy D. North
                       3220 Duval Road, Apt. 1110
                       Austin, TX 78759-3524, USA

Scientia est Potentia!



[-- Attachment #2: javas1.txt --]
[-- Type: text/plain, Size: 1974 bytes --]

[jos1@JNorth java1]$ date
Mon Sep 20 11:32:33 CDT 2004
[jos1@JNorth java1]$ cat StandaloneScribble.java
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
 
public class StandaloneScribble extends Applet
{
    public static void main(String[] args)
    {
        Frame f = new Frame();
        Applet a = new StandaloneScribble();
        f.add(a, "Center");
        a.init();
        f.setSize(400, 400);
        f.show();
        f.addWindowListener(new WindowAdapter()
            {
                public void windowClosing(WindowEvent e) {System.exit(0);}
            });
    }
 
    public void init()
    {
        this.addMouseListener(new MouseAdapter()
            {
        public void MousePressed(MouseEvent e)
            {
                lastx = e.getX();
                lasty = e.getY();
            }
    });
 
        this.addMouseMotionListener(new MouseMotionAdapter()
            {
        public void MouseDragged(MouseEvent e)
            {
                Graphics g = getGraphics();
                int x = e.getX(), y = e.getY();
                g.setColor(Color.black);
                g.drawLine(lastx, lasty, x, y);
                lastx = x;
                lasty = y;
            }
    });
    }
    protected int lastx, lasty;
}
[jos1@JNorth java1]$ gcj --main=StandaloneScribble  StandaloneScribble.java
[jos1@JNorth java1]$ a.out
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.awt.
gtk.GtkToolkit not found in [file:./, core:/]
   at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.4.0.0)
   at java.awt.Window.getToolkit() (/usr/lib/libgcj.so.4.0.0)
   at java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int)
(/usr/lib/libgcj.so.4.0.0)
   at java.awt.Container.add(java.awt.Component, java.lang.Object)
(/usr/lib/libgcj.so.4.0.0)
   at StandaloneScribble.main(java.lang.String[]) (Unknown Source)
[jos1@JNorth java1]$ emacs javas1.txt &
[1] 8173
[jos1@JNorth java1]$


             reply	other threads:[~2004-09-22  0:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22  0:55 joseph.north [this message]
2004-09-22  0:58 joseph.north

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=3172.24.153.177.203.1095814518.squirrel@www.alumni.mcgill.ca \
    --to=joseph.north@mail.mcgill.ca \
    --cc=gcc-help@gcc.gnu.org \
    --cc=joseph.north@gmail.com \
    /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).