[4092] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (postmaster@wipinfo.soft.net)
Sun Dec 10 17:22:52 1995

From: postmaster@wipinfo.soft.net
To: @s.sun.com:java-interest@java.sun.com
Date: Mon Dec 11 01:55:58     1995
Not-Delivered-To: ricoh!ksa due to Message Transfer Agent Congestion
	(Cannot reach host. Delivery attempts will continue.)

From smtp Sat Dec  9 17:04 SST 1995 remote from mission
Received: from java.sun.com by mission.wipinfo.soft.net; Sat,  9 Dec 95 17:04 SST
Received: from wipinfo.soft.net (infotech) by rolex.rnd.blr (4.1/SMI-4.1)
	id AA29096; Sat, 9 Dec 95 17:05:31+050
Received: by wipinfo.soft.net (4.1/SMI-4.1)
	id AA01622; Sat, 9 Dec 95 17:04:31 IST
Received: (from majordom@localhost) by java.sun.com (8.6.12/8.6.12) id JAA23583 for java-interest-digest-outgoing; Fri, 8 Dec 1995 09:47:51 -0800
Errors-To: owner-java-interest-digest@java.sun.com
Errors-To: owner-java-interest-digest@java.sun.com
Date: Fri, 8 Dec 1995 09:47:51 -0800
Message-Id: <199512081747.JAA23583@java.sun.com>
From: owner-java-interest-digest@java.sun.com
To: java-interest-digest@java.sun.com
Subject: java-interest-digest V1 #4
Reply-To: java-interest@java.sun.com
Errors-To: owner-java-interest-digest@java.sun.com
Content-Length: 30594
Content-Type: text
Precedence: bulk


java-interest-digest      Friday, 8 December 1995      Volume 01 : Number 004

In this issue:

       java to C translator
       Re: const
       Re: Can someone please help me on 3 java things.
       VJ Day!
       Re: InetAddress
       Netscape 2.0b3 Memory Hog ?
       malformed URL's
       Re: VJ Day!
       Remote loading ... HOW ???
       Java in my home page
       peer classes
       [Re]   How to get Java to work with Netscape 2.0b3 and up
       Can I read and write file to my web site
       String in java
       porting to Unixware.
       Re: Mac availability
       System.loadLibrary() problem
       Re: Painting Images
       Help: writing to a server file
       Looking for Graphic Artist for Java
       Re: VJ Day!
       Java and Hotjava
       Linux and Java
       RE: String in java
       Re: Help: writing to a server file

----------------------------------------------------------------------

From: niftyserve.or.jp!NBC02365@fujitsuI.fujitsu.com
Date: Fri, 8 Dec 95 09:15:16 JST
Subject: java to C translator

Java to C translator alpha-001 for Solaris 2.x available

j2c is a translator from java .class to C program.
j2c produces(generates) C program from .class to build a.out executing
without java interpreter.

As simple benchmark program, it makes fast about from 2 times to 6
times(with -O). (You know Sun's implementation of java interpreter is
good, I think)


If you have java benchmark program, please send to me.



Available from here
http <http://www.webcity.co.jp/info/andoh/java/j2c-001.tar.gz>
ftp  <ftp://ftp.webcity.co.jp/pub/andoh/java/j2c-001.tar.gz>

a. only for JDK-1.0beta
  Please don't use with 1.0alpha.

b. restriction

  jsr and athrow instruction has not been supported yet.
  java.lang.* java.io.* runtime only available
  no gabage collector, and no finalization
  exception not supported, if exception occur, byebye!!

c. Email address

  NBC02365@niftyserve.or.jp 

  If you find something wrong or something to be better, please mail to
this address in English( or Japanese).

Thank you for your time.
  
Regards.


------------------------------

From: michael@w3media.com (Michael Mehrle)
Date: Thu, 7 Dec 1995 16:33:41 -0700
Subject: Re: const

>As far as I can see the C++ "const" keyword is not present in Java.
>In Java, how can you write an accessor function for a class data member
>that returns the data member object but doesn't allow callers to modify it?
>Was this deemed to be an unimportant feature of C++?
>

Mark,

this is not the fact. You *can* define a constant like this:

static final int HEREITIS = 99;

Creating a constant that nobody can meddle with is one way, but consider
the following, which is more elegant (I think ;):

class Safe {

        private boolean locked = true;
        private int combination = 456;

        public boolean isLocked() { // here is one accessor, which returns the
                                    // the status of *locked*
                return(locked);
        }

        public void keyLock(int thisCombination) { // here is another one
                if (thisCombination == combination) unLock();
        }

        private void unLock() {
                locked = false;
        }

        Safe() {}
}

So if you write:

Safe aSafe = new Safe();

you can't access the combination like this:

int = aSafe.combination;

you also can't say:

aSafe.locked = false;

won't work.

.............................

Did this answer your question? I hope, I didn't misunderstand your point.

Michael




                  \\///
                 [ o-o ]
____________OOOo___(.)___oOOO_______________

     http://www.w3media.com/w3media
          michael@w3media.com
           Tel. 310.441.9599
           Fax  310.441.5919

"One man's mundane and desperate existence
     is someone else's Technicolor."
            -Strange Days-



------------------------------

From: ton@cc.gatech.edu (Lein Ton)
Date: Thu, 7 Dec 1995 20:33:45 -0500 (EST)
Subject: Re: Can someone please help me on 3 java things.

- ----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 51

Hi Jonathan,

1)
saving to and reading from files is not possible from applets if
they run under Netscape (security). With the appletviewer it works
though.
What I'm currently coding is saving through email, and loading 
through an URL. It's not ideal, but I seem to be able to get it 
to work. 

Reading and writing are performed with FileOutputStream and
FileInputStream (how unexpected!)

2 small examples:

FileInputStream fi = new FileInputStream(fileName);
aByte=fi.read();
fi.close();

FileOutputStream fo = new fileOutputStream(fileName);
fo.write(anInt);
fo.close; 

You most probably want to know how to write Strings etc. 
I still have to find out, but it will have something to do with
reading and writing arrays of bytes.

2)
I don't know how to use java as an CGI program, but I figure that
it works exactly the same as starting other scripts; you might
even be able to start it from a perl script.

I used a mailto cgi script to send mail within java by doing this:
	  try {
	    URL u= new URL("http://icg.resnet.upenn.edu/mailto.cgi?to=you@there
                           &from=me@here&subject=mysubject&body=mybody");
	    u.openConnection();
	    InputStream is=u.openStream();
 	    while (is.available()!=0) {
	      is.read();
	    }
	  } catch (IOException e) {
		System.out.println("exception");
	  }
Perhaps there's an easier way, but this works.

3)
see the included file (I don't know exactly what you mean by option buttons)

take care, 
Lein
- ----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: Test2.java
X-Sun-Content-Lines: 109

import java.awt.*;
import java.applet.*;

public class Test2 extends Applet
{
        Panel infobar;
        Panel mainbar;
        TextField name;
        TextField email;
        TextField usrl;
	Choice myChoice;

        public void init()
        {
                setLayout(new BorderLayout());
                setBackground(Color.gray);
                setFont(new Font("Helvetica", Font.BOLD, 12));
        }

        public void start()
        {
                Panel p = new Panel();
                p.setLayout(new GridLayout(2,2));
                p.add(name = new TextField("Name", 30));
                p.add(email = new TextField("E-mail address",30));
                p.add(usrl = new TextField("URL",30));
               
                mainbar = new Panel();
                mainbar.setLayout(new BorderLayout());
                mainbar.add("West", p);

                
		/*                List l = new List();
                l.setMultipleSelections(false);
                l.addItem("Java is Cool");
                l.addItem("This applet is cool");
                l.addItem("I want more");
                l.addItem("John is greats");
                */


		myChoice=new Choice();
		  myChoice.addItem("Java is Cool");
		  myChoice.addItem("This applet is cool");
		  myChoice.addItem("I want more");
		  myChoice.addItem("John is greats");
                add("West", myChoice);


                add("Center", mainbar);
 
                infobar = new Panel();
                infobar.add(new Button("Send data to Site"));
                infobar.add(new Button("Clear all Fields"));
                infobar.add(new Button("Reset all Fields"));
                infobar.setBackground(Color.red);
                add("South", infobar);
        }

        public boolean action(Event evt, Object arg)
        {
                if("Send data to Site".equals(arg))
                {
                        
                        showStatus("If this worked... the data would be submitting");
                        return true;
                }
                else if("Clear all Fields".equals(arg))
                {
                        name.setText("");
                        email.setText("");
                        usrl.setText("");
                        return true;
                }
                else if("Reset all Fields".equals(arg))
                {
                        name.setText("Your name here please");
                        email.setText("Your e-mail address here please");
                        usrl.setText("Your URL have please");
                        return true;
                }
                else if(evt.target instanceof List)
                {
                        showStatus(arg.toString());
                        return true;
                }
	if (evt.target == myChoice) {
	  switch(myChoice.getSelectedIndex()) {
	  case 0: {
	    break;
	  }
	  case 1: {
	    break;
	  }
	  case 2: {
	    break;
	  }
	  case 3: {
	    break;
	  }
	  }
	  return true;
	}
                return false;           
        }

}



------------------------------

From: Pat Niemeyer <pat@icon-stl.net>
Date: Thu, 7 Dec 1995 21:06:35 -0600 (CST)
Subject: VJ Day!

Victory for Java Day!

(http://java.sun.com/pr-ms.html)


> December 7, 1995 - Today Microsoft has announced that it has signed a
> letter of intent with Sun for a Java technology source license and that
> Sun and Microsoft are working through the licensing details. In
> addition, Microsoft has agreed in principle to provide to Sun
> Microsoft's reference implementation of the Java virtual machine and
> AAPI (applet application programming interface) for Windows.



Pat

------------------------------

From: Pradeep Badri <pbadri@cisco.com>
Date: Thu, 7 Dec 95 19:59:04 PST
Subject: Re: InetAddress

Hi,

InetAddress devAddr ;
devAddr = InetAddress.getByName("199.1.32.90") ;

is what you are looking for.

- -pb.
Pradeep Badri.
Cisco Systems.

> 
> Is there a way to create a new InetAddress pointing at a particular 
> IP #?  e.g.. 199.1.32.90?  In my application I do not necessarily 
> know the host name.  What I need is an InetAddress constructor that 
> can take either a byte array or a string like "199.1.32.90"
> 
> Alternately I could use a method that would convert a numeric address 
> into a valid hostname.  Any suggestions?
> 
> 
> --
> Elliotte Rusty Harold    Black Star Publishing Co., Inc.
> elliotte@blackstar.com   116 East 27th Street
> elharo@shock.njit.edu    NY NY 10016
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
> 


------------------------------

From: Tim Bass (Java) <java@dune.silkroad.com>
Date: Fri, 8 Dec 1995 00:09:06 -0500 (EST)
Subject: Netscape 2.0b3 Memory Hog ?

Hi.

We're looking at Netscape running no applet:
(linux P5-100 46MB ram)

 12:05am  up  1:44,  1 user,  load average: 0.26, 0.16, 0.11
34 processes: 32 sleeping, 2 running, 0 zombie, 0 stopped
CPU states:  0.7% user,  1.3% system,  0.0% nice, 98.1% idle
Mem:  47740K av, 33852K used, 13888K free, 12808K shrd, 16608K buff
Swap: 18412K av,     0K used, 18412K free

  PID USER     PRI  NI SIZE  RES SHRD STAT %CPU %MEM  TIME COMMAND
  847 root      17   0   97  316  180 R     1.3  0.6  0:02 top
  328 root      26   0 6844 5720  860 R     0.5 11.9  2:41 /usr/X11/bin/X :0
  838 root       2   0  365 1200  816 S     0.1  2.5  0:00 /usr/bin/X11/xterm -
    1 root       1   0   48  232  136 S     0.0  0.4  0:06 init auto
  317 root       1   0  160  296  196 S     0.0  0.6  0:00 -ksh

(top five, no netscape)

Now:  do XmasTree applet

34 processes: 32 sleeping, 2 running, 0 zombie, 0 stopped
CPU states:  8.9% user,  1.7% system,  0.0% nice, 89.6% idle
Mem:  47740K av, 33872K used, 13868K free, 12808K shrd, 16608K buff
Swap: 18412K av,     0K used, 18412K free

  PID USER     PRI  NI SIZE  RES SHRD STAT %CPU %MEM  TIME COMMAND
  368 root      23   0 1842088 7572 2792 S     5.0 15.8  3:15 /usr/local/bin/netsc
  328 root      26   0 6844 5720  860 R     3.5 11.9  2:42 /usr/X11/bin/X :0
  847 root      20   0   97  316  180 R     1.5  0.6  0:03 top
  838 root       7   0  365 1200  816 S     0.3  2.5  0:02 /usr/bin/X11/xterm -
  329 root       2   0  576 1056  668 S     0.1  2.2  0:00 /usr/openwin/bin/olv
    1 root       1   0   48  232  136 S     0.0  0.4  0:06 init auto

(wow: memory running applet higher than X !)

Now do the Kalideo applet:

  PID USER     PRI  NI SIZE  RES SHRD STAT %CPU %MEM  TIME COMMAND
  328 root      20   0 6844 5720  860 R     1.1 11.9  2:44 /usr/X11/bin/X :0
  847 root      22   0   97  316  180 R     1.1  0.6  0:04 top
  368 root      24   0 1842088 7600 2796 S     0.9 15.9  3:18 /usr/local/bin/netsc
    1 root       1   0   48  232  136 S     0.0  0.4  0:06 init auto
  317 root       1   0  160  296  196 S     0.0  0.6  0:00 -ksh

( memory still about 15 percent..... single threaded as well, compared
  to the multithread XmasTree applet )

This seems a little high, don't you think?

Tim



+--------------------------------------------------------------------------+
| Tim Bass                           | #include<campfire.h>                | 
| Principal Network Systems Engineer |       for(beer=100;beer>1;beer++){  |
| The Silk Road Group, Ltd.          |           take_one_down();          |
|                                    |           pass_it_around();         |
| http://www.silkroad.com/           |       }                             |
|                                    |  back_to_work(); /*never reached */ | 
+--------------------------------------------------------------------------+


------------------------------

From: daconta@primenet.com (Michael Daconta)
Date: Thu, 7 Dec 1995 23:29:41 -0700 (MST)
Subject: malformed URL's

Hi Java team and fellow java coders,

I've been playing around with the URL classes.
I have a simple program that receives a URL from
the command lines and opens a stream to it and
dumps the stream to a file.

The only URL's I get to work our with the http protocol.
I cannot get it to accept an ftp or gopher URL.

I've tried URL's like:

ftp://mystech.com/pub

but I always get MalformedURLException...

any ideas?

Thanks for the help,

 - Mike Daconta


------------------------------

From: starck@bridge.net (Alex Starckmann)
Date: Thu, 7 Dec 1995 14:17:54 -0400
Subject: Re: VJ Day!

>Victory for Java Day!
>
>(http://java.sun.com/pr-ms.html)
>
>
>> December 7, 1995 - Today Microsoft has announced that it has signed a
>> letter of intent with Sun for a Java technology source license and that
>> Sun and Microsoft are working through the licensing details. In
>> addition, Microsoft has agreed in principle to provide to Sun
>> Microsoft's reference implementation of the Java virtual machine and
>> AAPI (applet application programming interface) for Windows.
>
>
>
>Pat
>-
>This message was sent to the java-interest mailing list
>Info: send 'help' to java-interest-request@java.sun.com

I think this is a great move from Gate (who has a lot of problem lately
with wall street's big firm ) and the timing of this "deal" is excellent
but I'm afraid that this move is only a trick from gates to turn more
attention on is browser production. I wouldn't be surprise if a rename
"blackbird" would reappear in the near future...

    --        O
 ---     </\_      Alex
 -----\/\
     ---     /_



------------------------------

From: Joan Maria Mas Ribes <mas@tele.ucl.ac.be>
Date: Fri, 8 Dec 1995 11:40:09 +0100 (MET)
Subject: Remote loading ... HOW ???

Does any of you know how could I remotely load objects from a URL into an
application ??? 

I need something similar to java.applet.AppletContext.getXXXXX

But want I want to dowload are objects, handlers or whatever to execute
them localy. 

Any clue ????

Thnx

- --------------------------------------------------------------------------------
     _/ _/   _/ _/   _/ _/_/      JoanMa MAS RIBES
     _/ _/_/_// _/_/_// _/ _/
     _/ _/ _/_/ _/ _/_/ _/_/      Universite Catholique de Louvain
 _/  _/ _/   _/ _/   _/ _/ _/     Laboratoire de Telecommunications
  _/_/  _/   _/ _/   _/ _/  _/    Batiment Stevin
                                  2, Place du Levant
                                  B-1348 - Louvain La Neuve
                                  
  mailto:mas@tele.ucl.ac.be       Tel.: +32 - (0)10 - 478067
                                  Fax : +32 - (0)10 - 472089
                                  
           Security is when everything is settled.  
           When nothing can happen to you.  
           Security is the denial of life.   
- --------------------------------------------------------------------------------

------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 07:33:03 EST
Subject: Java in my home page

     I want to add my java class to my home page Do I just ftp the class to 
     the same dir as my htmls?
     
     How can I tell if the brower can see the java applet

------------------------------

From: Aaron Shtromas <ams@mci.net>
Date: Fri, 8 Dec 1995 07:44:20 -0500 (EST)
Subject: peer classes

hi,

of all the things that i'm vague about in java, the awt peer
classes are the ones i'm truly ignorant. is there a description
of their use somewhere? alternatively, can some kind soul provide
one? an example of peer class use would be nice.

i also noticed, that posting a request like this, often leads
to me finding an answer on my own within half an hour on my own.
perhaps, i ought to post more often... ;-)

- -a

- ----------------------------------------------------------------
Aaron Shtromas                          MCI Internet Engineering
ams@mci.net                             2100 Reston Parkway
Tel. 703-715-7334                       Reston, VA 22091


------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 07:49:25 EST
Subject: [Re]   How to get Java to work with Netscape 2.0b3 and up

     A lot of user been trying to get java to with in Netscape 2.0b3.  Will 
     Dr Java. Found a way.
     
     
     First download the JDK. from sun.
     
     After install the JDK you need to set two environment variables.
     
     I install the JDK on my c drive so you may have to change my samples
     
     the two variable are:
     HOME=C:\JDK\JAVA
     CLASSPATH=C:\JDK\JAVA\CLASSES;.
     
     and in your home directory create a directory called ".hotjava"
     
     You should add the environment variables to your autoexec.bat but 
     adding the following lines.
     SET HOME=C:\JDK\JAVA
     SET CLASSPATH=C:\JDK\JAVA\CLASSES;.
     
     
     After doing all of the above things will run great as long a the java 
     class was made with teh beta.
     
     
     Johnathan Mark Smith
     smithj@walrus.com
     http://www.walrus.com/~smithj   :   We have java links

------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 08:36:11 EST
Subject: Can I read and write file to my web site

     A lot of user or saying yes and a lot of users are saying no.
     
     In applet can I read and write a flat file to my web site using 
     netscape.
     

------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 08:54:51 EST
Subject: String in java

     Java string class does not have a split function
     
     Can someone please show me how to break up the following string in 
     code;
     
     String "user=smith&password=master"
     
     I want to get 4 strings out of this one string.
     
     
     Can you please send me source code

------------------------------

From: "Vania Joloboff" <vania@gr.osf.org>
Date: Fri, 08 Dec 1995 15:20:50 +0100
Subject: porting to Unixware.

Kuldeep wrote:

	I would appreciate any info re : porting or availability of java
	compilers on UnixWare2.x plateforms.

OSF is porting Java to Unixware, [ under Novell sponsorship, funny that you ask ]

We expect to release free binaries to the world  of Java runtime, Java compiler
and HotJava browser running on Unixware 2.0, this month !

More info at http://www.gr.osf.org/projects/web/java/index.html

	Vania

------------------------------

From: "R.Volkmann" <m224873@svxtrm14.mdc.com>
Date: Tue, 28 Nov 1995 10:17:33 -0600
Subject: Re: Mac availability

>Date: Tue, 28 Nov 1995 10:58:05 -0500 (EST)
>From: Ryan Garcia <ryandhoz@umich.edu>
>X-Sender: ryandhoz@ren.us.itd.umich.edu
>Cc: jsmart@smartny.com, tgibson@li.net, java-interest@java.sun.com
>Mime-Version: 1.0
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>On Tue, 28 Nov 1995, R.Volkmann wrote:
>
>> I read somewhere, maybe on this mailing list, that Sun is writing a Java
>> version of their Workshop development environment which is currently
>> available for FORTRAN, C, C++, and Ada.  The interesting thing about
>> this is that it is being written in Java.  I assume from this that
>> "Workshop for Java" will run on a Macintosh as long as you have a Java
>> bytecode interpreter.  Is Sun going to release a free Macintosh Java bytecode
>> interpreter?
>
>I don't recall that, but since Sun is keeping Java closed, it might be 
>possible.  But seeing as how they agreed to put the stuff in with 
>Metrowerks, I dunno.  Besides, if you're used to developing on 
>CodeWarrior, it makes sense to just drop in the Java libraries and code 
>away.  Nothing could be easier.  Unless you paid someone to do it.  
>Yikes, that sounded like a commercial.
>
>> 
>> Of course, the Sun Workshop product could be much more expensive than the
>> Metroworks product.
>
>And since with CodeWarrior you wouldn't be getting *just* Java, but you'd 
>be getting Pascal, C, C++, and all their utilities, why bother with 
>anything else?  :)

Easy for you to say Mr. I Get An Educational Discount! ;-)
If you're not interested in using Pascal can you delete that part to save
disk space?  If so then maybe you could do the same thing to the C and C++
portions if you only want to use Java.  I'm currently a C++ programmer but
if I could save money by not buying that part of CodeWarrior that would be
great.

|----------------------------------------------------------------------------|
| R. Mark Volkmann - Principal Specialist Programmer/Analyst                 |
| McDonnell Douglas Aerospace, St. Louis, Missouri, USA                      |
| EMAIL m224873@svmstr01.mdc.com, VOICE (314)232-0498, FAX (314)233-5489     |
|----------------------------------------------------------------------------|
 Reality is so unreal;  Like walking up a flight of stairs that lead nowhere;
 Like swimming in mashed potatoes;  Where's the gravy baby?;
 If you wish to place a call please hang up and dial again;
 Bunch of balloons;  Funny clown;  Is the circus in town?
 - poem by Cool Cat, Dirty Dog, and Chicky Baby from Pee Wee's Playhouse

------------------------------

From: Clinton Combs <ccombs@ucs.att.com>
Date: Fri, 8 Dec 1995 10:23:25 -0500
Subject: System.loadLibrary() problem

What's the story w/ System.loadLibrary and Netscape?  I'm running
Netscape 2.0 Beta 3 on SunOS and have written an applet that uses
a class containing some native methods.  I've built the native
implementation as well as the Java "stub" class, but when Netscape
loads my applet it can't find my shared library.

I've included the directory where my library is in my LD_LIBRARY_PATH
and even tried putting it in my PATH variable.  But to no avail!  I
still get "# Applet exception: error: java.lang.UnsatisfiedLinkError:
no libjavaAK.so.1.0 in shared library path".  Note: I've tried
specifying the library as javaAK, libjavaAK, and libjavaAK.so.1.0 and
none of these work.  What am I doing wrong?

Also, here's one I haven't researched to much so it may be easy...
How does one force Netscape to reload an Applet.  Pressing the Reload
button doesn't seem to do it.  At best you get a new copy of the HTML,
but no new applet.  Restarting netscape is really time consuming during
debugging.

Thanks,
Clint


------------------------------

From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Fri, 8 Dec 1995 07:32:54 -0800
Subject: Re: Painting Images

Jamie Cristini asks:
> > Howdie java folks,
> > I have an easy question, which is driving me crazy!  How does one load   
> > images in completely
> > before the applet starts?  My applets seem to display the images while   
> > their loading.  Is it possible to hold off on starting the applet until   
> > these images are loaded?

Use the java.awt.MediaTracker class.  The documentation for it is online:

	http://java.sun.com/JDK-beta/api/packages.html
	http://java.sun.com/JDK-beta/converting/images.html

> Try checking the width of the image you want to wait for.
> It will be -1 until it's loaded. Put it in a while-loop
> with a sleep() inside or someting like that.

The getWidth() method will return -1 until the width of the image is
known.  This has very little bearing on when the image will be completely
loaded since the width is one of the first things at the beginning of
most image file formats.  Also, it's bad practice to poll waiting for
information, especially when there are much better methods to use (i.e.
the MediaTracker).

				...jim

------------------------------

From: "Mark J. McArdle" <markm@opentext.com>
Date: Fri, 8 Dec 1995 11:17:15 -0500
Subject: Help: writing to a server file

Can anyone tell me if it is possible to create and write to a file on =
the server where the applet loaded?  I've read in  J*** Notes that it =
isn't possible in the Beta.  This must be implemented?  What use is a =
Java Applet which cannot read or write to the client AND cannot write to =
the server?  Where would you save transaction data?

------------------------------

From: bignate <bignate@internext.com>
Date: Fri, 08 Dec 1995 11:38:42 -0500
Subject: Looking for Graphic Artist for Java

I was thinking of starting a part time business of creating web pages 
for companies.  This would include Java programs and JavaScript.  I can 
do all the programming and creation aspects, but I was looking for 
someone who might like to join me in a partnership with this business 
who can design graphics for the web pages.  Someone located in the 
VAarea is preferred.  Skills in graphic design a must, also a plus if 
you know CGI and Java.
- -- 

- -Nathan Barnett
bignate@internext.com

------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 11:28:10 EST
Subject: Re: VJ Day!

     
 Is blackbird off bill list for the day.   

______________________________ Forward Header __________________________________
Subject: Re: VJ Day!
Author:  owner-java-interest@java.sun.com at INTERNET
Date:    12/8/95 10:47 AM


>Victory for Java Day!
>
>(http://java.sun.com/pr-ms.html)
>
>
>> December 7, 1995 - Today Microsoft has announced that it has signed a 
>> letter of intent with Sun for a Java technology source license and that 
>> Sun and Microsoft are working through the licensing details. In
>> addition, Microsoft has agreed in principle to provide to Sun
>> Microsoft's reference implementation of the Java virtual machine and 
>> AAPI (applet application programming interface) for Windows.
>
>
>
>Pat
>-
>This message was sent to the java-interest mailing list 
>Info: send 'help' to java-interest-request@java.sun.com
     
     
I think this is a great move from Gate (who has a lot of problem lately 
with wall street's big firm ) and the timing of this "deal" is excellent 
but I'm afraid that this move is only a trick from gates to turn more 
attention on is browser production. I wouldn't be surprise if a rename 
"blackbird" would reappear in the near future...
     
    --        O
 ---     </\_      Alex
 -----\/\
     ---     /_
     
     
- -
This message was sent to the java-interest mailing list 
Info: send 'help' to java-interest-request@java.sun.com


------------------------------

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Fri, 08 Dec 95 11:31:21 EST
Subject: Java and Hotjava

     
     If Hotjava was made with Java
     
     Would it take once day to get the Hotjava 
     browser up to beta???
     
     
     Y is it taking so long?????
     
     
     

------------------------------

From: Michael McKenzie <michaelm@clark.edu>
Date: Fri, 8 Dec 1995 09:10:11 -0800 (PST)
Subject: Linux and Java

I am in the process of writing some Java apps, but would really like to 
do it under Linux (1.3.9) instead of Win95(personal preference mostly) but 
all of the ports that I have seen have been in ELF format.  Does anyone know if 
there is an a.out format port to Linux, or should I go ahead and get the 
source from Sun to do my own port?  Has anyone attempted this before?  
This is my first post to the list, so please excuse any faux-pas.

Thanks

Mike Mckenzie
michaelm@clark.edu

------------------------------

From: "Tim Pearson (Starwave)" <TimPE@starwave.com>
Date: Fri, 08 Dec 95 09:30:00 PST
Subject: RE: String in java

Check out StringTokenizer in java.util:

     String s = "user=smith&password=master";
     String d = "=&";
     StringTokenizer st = new StringTokenizer(s,d);
     while (st.hasMoreTokens()) {
          println(st.nextToken());
      }

Tim Pearson
timpe@starwave.com
 ----------
From: daemon
To: java-interest
Subject: String in java
Date: Friday, December 08, 1995 8:54AM

     Java string class does not have a split function

     Can someone please show me how to break up the following string in
     code;

     String "user=smith&password=master"

     I want to get 4 strings out of this one string.


     Can you please send me source code

 -
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

------------------------------

From: "Elliotte Rusty Harold" <Elliotte@blackstar.com>
Date: Fri, 8 Dec 1995 13:24:42 EST
Subject: Re: Help: writing to a server file

> Can anyone tell me if it is possible to create and write to a file
> on = the server where the applet loaded?  I've read in  J*** Notes
> that it = isn't possible in the Beta.  This must be implemented? 
> What use is a = Java Applet which cannot read or write to the client
> AND cannot write to = the server?  Where would you save transaction
> data?

You can read or write to the server using cgi and/or a custom server. 
You just have to roll a lot of your own code. If you've written cgi's 
before and understand Java's URL and Socket classes it's not 
partiucalrly difficult.

- --
Elliotte Rusty Harold    Black Star Publishing Co., Inc.
elliotte@blackstar.com   116 East 27th Street
elharo@shock.njit.edu    NY NY 10016

------------------------------

End of java-interest-digest V1 #4
*********************************

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post