Re: Newbie re:deprecated API ?

1998-06-14 Thread Rani Pinchuk

Hi,

>From http://java.sun.com/products/jdk/1.1/docs/guide/awt/DeprecatedMethods.html: 
The AWT changed significantly between the 1.0.2 and 1.1 releases. 
Certain old ways of doing things are deprecated -- no longer 
recommended -- and might not be supported in a future major release

Look also in 
http://java.sun.com/products/jdk/1.1/docs/relnotes/deprecatedlist.html

I guess the book you use writes in jdk1.0.

Rani.

On Sun, Jun 14, 1998 at 06:50:06AM +, Glenn Valenta wrote:
> When I compile application(not applets) examples out of most of my 
> books, (Java-how to program) I get the error ...
> 
> "Addition.java uses a deprecated API.  
>   Recompile with "-deprecation" for details."
> 
> And when I recompile with "-deprecation", I get this message...
> 
> Addition.java:21: Note: The method boolean action(java.awt.Event, 
> java.lang.Object) in class java.awt.Component has been deprecated, 
> and class Addition (which is not deprecated) overrides it.
>   public boolean action(Event e,Object o)
>  ^
> Note: Addition.java uses a deprecated API.  Please consult the 
> documentation for a better alternative.
> 
> What does it mean and where in the documentation?
> 
> Source and example are at.
> 
> http://ouray.cudenver.edu/~gavalent/java/test2/Addition.html
> 
> TIA!
> 
> -- 
> Glenn Valenta  Engineering http://www.coloradostudios.com
> [EMAIL PROTECTED]   http://ouray.cudenver.edu/~gavalent/
> [EMAIL PROTECTED]  <-main mail account
> 
> 

-- 
--
Rani Pinchuk <[EMAIL PROTECTED]> Tel:  +32-3-326-79-97
http://www.kinetica.com/home/pinchuk
--




Re: Is there a linux java editing tool?

1998-06-14 Thread CyberPsychotic

> >
> > Matt
> 
> I reccomend vi,  but many people think emacs is a good editor.
> 

 will it do sintaxis highlighting and stuff?





Re: Is there a linux java editing tool?

1998-06-14 Thread Wuff

> 
> > >
> > > Matt
> > 
> > I reccomend vi,  but many people think emacs is a good editor.
> > 
> 
>  will it do sintaxis highlighting and stuff?

NEdit v5.0 is an excellent X-based editor, which does syntax
highlighting for a wide variety of languages, including java.

You can customise it to your own tastes easily, it has built-
in support for running external applications such as 'javac',
and is available as a precompiled binary for linux at : 

ftp://ftp.fnal.gov/pub/nedit/v5_0

Regards,

Vin




Re: Newbie re:deprecated API ?

1998-06-14 Thread Marcus Johnson

Hi Glenn,

To expand on what Rani said, there are certain classes and methods which
were done one way in JDK 1.0.2 and have been dramatically changed in 1.1 .
When you get a deprecated warning on a class/method the compiler is
telling you've used an old way of doing things which is in the process of
being phased out.  Specifically, the message you're getting is reflecting
the fact the most significant thing that changed between JDK 1.0.2 and 1.1
is the way events are handled.  1.1 has a much simpler, more efficient way
of handling events where instead of passing event up the stack to be
handled, you implement listener interfaces which catch the specific event
types you're looking for.  As Rani said you must be using code or a book
which is using the 1.0.2 event model.  It will still work fine (for the
time being), but you'll get those deprecation warnings.

For instructions on how to upgrade your events to 1.1 style see.
http://java.sun.com/products/jdk/1.1/docs/guide/awt/HowToUpgrade.html#events

Marcus
P.S. (I'm an alum of CU-Boulder!)

On Sun, 14 Jun 1998, Rani Pinchuk wrote:

> Hi,
> 
> >From http://java.sun.com/products/jdk/1.1/docs/guide/awt/DeprecatedMethods.html: 
>   The AWT changed significantly between the 1.0.2 and 1.1 releases. 
>   Certain old ways of doing things are deprecated -- no longer 
>   recommended -- and might not be supported in a future major release
> 
> Look also in 
> http://java.sun.com/products/jdk/1.1/docs/relnotes/deprecatedlist.html
> 
> I guess the book you use writes in jdk1.0.
> 
> Rani.
> 
> On Sun, Jun 14, 1998 at 06:50:06AM +, Glenn Valenta wrote:
> > When I compile application(not applets) examples out of most of my 
> > books, (Java-how to program) I get the error ...
> > 
> > "Addition.java uses a deprecated API.  
> > Recompile with "-deprecation" for details."
> > 
> > And when I recompile with "-deprecation", I get this message...
> > 
> > Addition.java:21: Note: The method boolean action(java.awt.Event, 
> > java.lang..Object) in class java.awt.Component has been deprecated, 
> > and class Addition (which is not deprecated) overrides it.
> >   public boolean action(Event e,Object o)
> >  ^
> > Note: Addition.java uses a deprecated API.  Please consult the 
> > documentation for a better alternative.
> > 
> > What does it mean and where in the documentation?
> > 
> > Source and example are at.
> > 
> > http://ouray.cudenver.edu/~gavalent/java/test2/Addition.html
> > 
> > TIA!
> > 
> > -- 
> > Glenn Valenta  Engineering http://www.coloradostudios.com
> > [EMAIL PROTECTED]   http://ouray.cudenver.edu/~gavalent/
> > [EMAIL PROTECTED]  <-main mail account
> > 
> > 
> 
> -- 
> --
> Rani Pinchuk <[EMAIL PROTECTED]> Tel:  +32-3-326-79-97
> http://www.kinetica.com/home/pinchuk
> --
> 




Re: Getting TYA to compile

1998-06-14 Thread peter johnson

Dear Peter,
I had the same problem initially with tya 0.7.  I fixed it by including the /bin directory in my path.  If you look in the configure file, it's trying to
find the java executable by using the which command.  If the java executable isn't
in your path, you get the message you described. Don't even try to modify tya.h -
that way lies madness.

Hope this helps,
Peter Johnson [EMAIL PROTECTED]


Peter Schuller wrote:

> Hi!
>
> I'm having problem getting TYA to compile... I've done alot of programming but
> I still haven't learned to figure out those automatic configure stuff etc so
> I'm not sure how to fix it.
>
> Configure givs me this:
>
> checking java port... UNRECOGNIZED
> Uknown version of java. Try to config manually by
>
> I've played with the manual settings to no avail. I'm using Steve Byrne's
> 1.1.5v7.
>
> When compiling the header files aren't found, probably because configure by
> some reason identifies Netscape VM as the JDK (?!?!?).
>
> BUT! It does include netscape's headers, here's the comandline :
>
> gcc -Wall -pipe -shared -O6 -m486 -malign-loops=4 -malign-functions=4
> -malign-jumps=4-I/usr/local2/netscape/../include
> -I/usr/local2/netscape/../include/genunix -o libtya.so tya.c tyarecode.c
> tyaruntime.c tyaasm.S
>
> Noteice the "../".
>
> But as I said, I haven't figured all these autoconfig stuff out yet, so I don't
> know where to edit Makefile templates and stuff to replace is with the real path
> to the JDK.
>
> Anyone?
>
> I'm using TYA 06. I know 07 is out and I'll download it ASAP. But this problem
> will most likely persist.
>
> Thanks!
>
> / Peter Schuller
>
> ---
> WWW: hem.passagen.se/petersch/ (might change)
> ---
> PGP public key: Available at hkp://pgpkeys.mit.edu
> PGP user ID: "Peter Schuller <[EMAIL PROTECTED]>"
> ---
> Linux - The Choice of a GNU Generation
> Be Microsoft FREE!!! Check out www.linux.org






Re: Newbie re:deprecated API ?

1998-06-14 Thread peter johnson

Dear Glenn,
Deprecated APIs, components, etc. are those that have been changed or
dropped in the current Java implementation and will not be supported at
all in the next major revision.  You can go ahead and use them, but be
aware they won't work with some other people's JVM, browser, etc. as
THEY upgrade.
Peter Johnson [EMAIL PROTECTED]

Glenn Valenta wrote:

> When I compile application(not applets) examples out of most of my
> books, (Java-how to program) I get the error ...
>
> "Addition.java uses a deprecated API.
> Recompile with "-deprecation" for details."
>
> And when I recompile with "-deprecation", I get this message...
>
> Addition.java:21: Note: The method boolean action(java.awt.Event,
> java.lang.Object) in class java.awt.Component has been deprecated,
> and class Addition (which is not deprecated) overrides it.
>   public boolean action(Event e,Object o)
>  ^
> Note: Addition.java uses a deprecated API.  Please consult the
> documentation for a better alternative.
>
> What does it mean and where in the documentation?
>
> Source and example are at.
>
> http://ouray.cudenver.edu/~gavalent/java/test2/Addition.html
>
> TIA!
>
> --
> Glenn Valenta  Engineering http://www.coloradostudios.com
> [EMAIL PROTECTED]   http://ouray.cudenver.edu/~gavalent/
> [EMAIL PROTECTED]  <-main mail account






Re: Accessing the serial port with Java for Linux

1998-06-14 Thread Karl Asha

Check the javacom and rxtx packages within the 3rd part products
area at http://www.blackdown.org/java-linux.html. 

Cheers, 
Karl


[EMAIL PROTECTED] (Ian Goldberg) writes:
> Is it possible (with Java 1.1.x under Linux) to write a Java program
> which can access a device attached to the serial port?  I need to be
> able to get and set the bps rate, flags, etc. as well as send and receive
> unbuffered bytes.
> 
> Thanks,
> 
>- Ian




Newbie re:deprecated API ?

1998-06-14 Thread Glenn Valenta

When I compile application(not applets) examples out of most of my 
books, (Java-how to program) I get the error ...

"Addition.java uses a deprecated API.  
Recompile with "-deprecation" for details."

And when I recompile with "-deprecation", I get this message...

Addition.java:21: Note: The method boolean action(java.awt.Event, 
java.lang.Object) in class java.awt.Component has been deprecated, 
and class Addition (which is not deprecated) overrides it.
  public boolean action(Event e,Object o)
 ^
Note: Addition.java uses a deprecated API.  Please consult the 
documentation for a better alternative.

What does it mean and where in the documentation?

Source and example are at.

http://ouray.cudenver.edu/~gavalent/java/test2/Addition.html

TIA!

-- 
Glenn Valenta  Engineering http://www.coloradostudios.com
[EMAIL PROTECTED]   http://ouray.cudenver.edu/~gavalent/
[EMAIL PROTECTED]  <-main mail account




Where can I get a GUI builder for Java/Linux?

1998-06-14 Thread Monkiki

I am developing Java programs on my Linux, but constructing the GUI for my
programs by hand is very difficult. There is any visual GUI builder?

--
-

 * 2+1=3. 3+1=4. 4+1=4. Well! let's name it Pentium!!

-

Red Hat Linux release 5.0 (Hurricane)
Kernel 2.0.32 on an i586

E-mail: [EMAIL PROTECTED]
Web: http://www.ctv.es/USERS/monkiki







Re: Minor WM in jdk1.1.6v1

1998-06-14 Thread Albrecht Kleine

Steve wrote:

> Fixed in v2 -- coming soon.
> 
>  > Kevin Fitch
>  > 
>  > ps I think that you are doing great wirk w/ this port. 1.1.6v1 combined
>  > w/ tya is just as fast as my regular apps!!
^^^
Cool! 
> 
> Cool!  Thanks!
> 
> Steve
> 

Thanks!
Albrecht ;-)




Re: Minor WM in jdk1.1.6v1

1998-06-14 Thread Louis-David Mitterrand

On Sat, Jun 13, 1998 at 06:48:36PM +0200, Albrecht Kleine wrote:
> >  > ps I think that you are doing great wirk w/ this port. 1.1.6v1 combined
> >  > w/ tya is just as fast as my regular apps!!
> ^^^
> Cool! 
> > 
> > Cool!  Thanks!
> > 
> > Steve
> > 
> 
> Thanks!
> Albrecht ;-)

I must concur here: TYA has reached maturity and is AWSOME... It runs
all my apps perfectly and much faster, almost as fast as M$'s jview.exe
under Win32 (and this is no mean compliment ;).

Congratulations to Albrecht and the TYA team for such a great job.

-- 
Louis-David Mitterrand
http://www.aparima.com
[EMAIL PROTECTED]




Re: Is there a linux java editing tool?

1998-06-14 Thread Jason Gilbert

CyberPsychotic wrote:
> 
> > >
> > > Matt
> >
> > I reccomend vi,  but many people think emacs is a good editor.
> >
> 
>  will it do sintaxis highlighting and stuff?

It does if you get vim 5.0.  http://www.vim.org/

jason

-- 
Jason Gilbert | http://www.scott.net/~jason/
  | http://www.homewood.net
--
I wish I could make the garbage collector thread in my
brain less agressive.




Profiler for Linux?

1998-06-14 Thread Dustin Lang


Hi,

I've been playing with GIF images and am having major performance issues -
it's just taking too long to read and write the files!  I'm interested in
getting some profile information on my code.  I tried the
"java_g -prof" option, and I guess that's enough information, but
Metrowerks (makers of codewarrior), has a pretty good profiler... for
Macintosh (ouch!).  Can anyone point me to a good profiler for Linux?

Thanks,
dstn.

-
Dustin Lang, [EMAIL PROTECTED]




Accessing the serial port with Java for Linux

1998-06-14 Thread Ian Goldberg

Is it possible (with Java 1.1.x under Linux) to write a Java program
which can access a device attached to the serial port?  I need to be
able to get and set the bps rate, flags, etc. as well as send and receive
unbuffered bytes.

Thanks,

   - Ian




Profiling? (Part II)

1998-06-14 Thread Dustin Lang


Oh yes, another thing I forgot to mention: is anyone aware of a way of
profiling a server or other program that doesn't normally exit?  I have a
server program doing some dynamic image creation, but I can't get a
profile on it without rewriting the code (which I'm not eager to do!),
since it never normally exits.

Thanks,
dstn.

-
Dustin Lang, [EMAIL PROTECTED]




1.1.6v1 bug report

1998-06-14 Thread Peter Schuller

Hi!

First, is there a list of knows bugs for Steve Byrne's JDK ports? If this one's
already been reported, I want to avoid duplicating bug reports again.

I'm not sure if this is a JDK or Swing bug, but as it worked on all previous
JDK's I've used, I'll report it here first and see what you think:

After moving from 1.1.5v7 to 1.1.6v1, Swing 1.0.1's JMenu:s, at least when
managed by a standard JMenuBar, behaives rather strangely. They are sometimes,
not always, "popped" at the wrong position, placing the first menuitem at the
level of the JMenu's name on the JMenuBar's display. Besides the visual
"weirdness", it has the sideeffect that if the JMenu has time to "react" so to
speak (display) before you release the mouse button, you automatically choose
the first item available.

This is of course not a major issue, but somewhat annoying.

PS.
   Does anyone know a mailinglist dealing with Java in general?
DS.

/ Peter Schuller


---
WWW: hem.passagen.se/petersch/ (might change)
---
PGP public key: Available at hkp://pgpkeys.mit.edu
PGP user ID: "Peter Schuller <[EMAIL PROTECTED]>"
---
Linux - The Choice of a GNU Generation
Be Microsoft FREE!!! Check out www.linux.org




Re: Accessing the serial port with Java for Linux

1998-06-14 Thread Jauvane Cavalcante de Oliveira

Hi Ian,

> Is it possible (with Java 1.1.x under Linux) to write a Java program
> which can access a device attached to the serial port?  I need to be
> able to get and set the bps rate, flags, etc. as well as send and receive
> unbuffered bytes.

Yes, it is possible. Have a look at the communication API at
http://developer.java.sun.com/developer/earlyAccess/communications.html

Good luck,

-
 _/ _/_/ Jauvane Cavalcante de Oliveira
_/ _/   _/  University of Ottawa
   _/ _/  _/ _/_/  School of Information Technology & Engineering
  _/ _/ _/ _/ Multimedia Communications Research Laboratory
_/   _/ _/_/  _/ Phone:1(613)562-5800 Ext.6243/6248  FAX:562-5175
_/_/_/ _/ _/_/  Canada http://www2.mcrlab.uottawa.ca/~jauvane
-
|Bolsista da CAPES - Brasilia/Brasil|
-





tya07

1998-06-14 Thread Geoffrey S. Knauth

After looking at the official TYA web site and only finding versions
up to tya06 there, I finally found a tya07 at:

   ftp://gonzalez.cyberus.ca/pub/Linux/java/tya07.tgz  (June 10)

-- 
Geoffrey S. Knauth   http://world.std.com/~gsk




java.lang.UnsatisfiedLinkError: readImage

1998-06-14 Thread Stefaan A Eeckels

Hi List,

I've just subscribed (and just installed jdk1.1.6-v1 on
my Linux 2.0.34 S.u.S.E based box, and I get the following
error when running some of the demo programs:

java.lang.UnsatisfiedLinkError: readImage

I also get this with tya's Iview demo package.

Sorry if this is a FAQ, but www.mail-archive.com
seems to be down.

Thanks a lot,

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




jdk1.1.6v1 bug

1998-06-14 Thread pepr

Hi all,
   I am new to this list and looking forward to participate. I just
installed the jdk1.1.6v1 this morning and the two problems I encountered,
menu not displaying properly and title bar displaying AWt... have already
been discussed on this list. (I checked the archive).

   It always feel securing to see others experiencing the same problem as
we do.

Keep in touch,
Richard.