comp.lang.ada
 help / color / mirror / Atom feed
From: Ed Falis <falis@my-deja.com>
Subject: Re: What is the best Xwindow, window98 program to use frames withada?
Date: 1999/12/11
Date: 1999-12-11T00:00:00+00:00	[thread overview]
Message-ID: <82tn88$n2k$1@nnrp1.deja.com> (raw)
In-Reply-To: 38524EC0.3283808A@acenet.com.au

In article <38524EC0.3283808A@acenet.com.au>,
  Geoff Bull <gbull@acenet.com.au> wrote:

> Apart from the obviously difficulties that it's bindiings don't
> talk JNI, a lot of Java classes are only useful once you inherit
> from them. Thus you need to write Java code to do this inheritance
> and the call native methods. However, you'll find that most such
> methods are trivial and since you are writting some Java, you may
> as well write a bit more (easier than mucking around with the
> binding generator). Soon you find you whole GUI is written
> in Java. This is not necessarily a bad thing, I happen to think
> that is one of the few things for which  Java is particularly good.
> I have worked out a way to avoid writing any Java code (just have
> the native code generate the required Java byte code) but I haven't
> got around to implementing this yet.

The approach I've used with AdaJNI is that since I have a copy of Visual Age,
I use its "visual composition editor" to create the UI, export the event
hooks and produce it as a Java Bean.  Then I have (had, actually - it's been
a while) a small bean launcher package written in native Ada code to load it
in as part of the setup of the application.

Since the most common stuff you wind up subclassing is gui classes, this was
a way to minimize the amount of Java code to write.

I've used a version of AdaJNI that supports 1.2 - I don't think it's released
yet, though.

- Ed



Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~1999-12-11  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-08  0:00 What is the best Xwindow, window98 program to use frames with ada? Carlisle, Martin
1999-12-09  0:00 ` What is the best Xwindow, window98 program to use frames withada? Geoff Bull
1999-12-09  0:00   ` Paul Hussein
1999-12-12  0:00     ` Geoff Bull
1999-12-11  0:00       ` Ed Falis [this message]
1999-12-12  0:00         ` Paul Hussein
1999-12-13  0:00           ` Geoff Bull
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox