From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e092a534485c39a1 X-Google-Attributes: gid103376,public From: Ed Falis Subject: Re: What is the best Xwindow, window98 program to use frames withada? Date: 1999/12/11 Message-ID: <82tn88$n2k$1@nnrp1.deja.com>#1/1 X-Deja-AN: 559350864 References: <9BBB0C9AF506D311A68E00902745A537BB86C3@fsxqpz04.usafa.af.mil> <384FA59B.3234C478@acenet.com.au> <82p3sp$cds$1@lure.pipex.net> <38524EC0.3283808A@acenet.com.au> X-Http-Proxy: 1.0 x33.deja.com:80 (Squid/1.1.22) for client 216.120.49.221 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Dec 11 14:31:35 1999 GMT X-MyDeja-Info: XMYDJUIDfalis Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (Windows NT 5.0;US) Opera 3.60 [en] Date: 1999-12-11T00:00:00+00:00 List-Id: In article <38524EC0.3283808A@acenet.com.au>, Geoff Bull 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.