[4287] in java-interest
java-interest-digest V1 #270
daemon@ATHENA.MIT.EDU (java.sun.com!owner-java-interest-d)
Fri Dec 15 13:59:21 1995
From: java.sun.com!owner-java-interest-digest@asoft.msk.su
Date: Tue, 21 Nov 1995 11:59:45 -0800
To: java-interest-digest@java.sun.com
Reply-To: java.sun.com!java-interest@asoft.msk.su
java-interest-digest Tuesday, 21 November 1995 Volume 01 : Number 270
In this issue:
Re: Dynamic Object Instantiation ....
research post available
GridBagLayout example
Re: Instanciation by name
How to charge?
RE: What happend to net.www.html.Parser, Document, Tag and TagRef?
Benchmark
Re: Awt.Component, paint and update in Beta1
[very late] Re: How java apps get krb tickets?
Dependencies
HTML INPUT field and Applet
Re: linking java with c/c++
Re: Java is not slow ! (was: Introduction to Java - Questions)
Re: Java is not slow ! (was: Introduction to Java - Questions)
November 17th J*** Notes issue
[none]
[none]
[none]
[none]
Re: writing code that works for applications AND applets
Re: Java is not slow ! (was: Introduction to Java - Questions)
J*** Notes location
class hierarchy in postscript
Re: Simple Draw Image
Re: Simple Draw Image
Re: Dependencies
----------------------------------------------------------------------
From: garya@village.org (Gary Aitken)
Date: Mon, 20 Nov 1995 00:54:11 -0700
Subject: Re: Dynamic Object Instantiation ....
>I load a new class by a given name from a directory.
>Afterwards I instantiate a new Object that way:
>Object newObject = Class.forName("...")
>
>Everything works fine until the moment I try to call a method of this new
>object. I do have the problem, that the Class object does not provide the
>called method, e.g.:
>newObject.getOID();
>
>How can I instantiate the object with the right cast???
This isn't what you want; the above only gives you the class descriptor
for the type of object you want, not an object of that type.
To get an object of the proper type, you need to use the newInstance
method from the class description returned. You'll need to catch
all the relevant exceptions:
public class CloneTest {
public static void main( String argv[] ) {
Class cls; // Class description for desired class
String str; // new object
try {
cls = Class.forName( "java.lang.String" );
try {
str = (String) cls.newInstance();
System.out.println( str.length() );
System.out.println( str );
}
catch ( java.lang.IllegalAccessException ex) {
System.out.println( "IllegalAccessException" );
}
catch ( java.lang.InstantiationException ex) {
System.out.println( "InstantiationException" );
}
}
catch ( java.lang.ClassNotFoundException ex ) {
System.out.println( "Class not found" );
}
}
}
Gary Aitken garya@village.org
------------------------------
From: Tim Kindberg <T.Kindberg@dcs.qmw.ac.uk>
Date: Mon, 20 Nov 1995 11:14:45 +0100
Subject: research post available
A research assistant post is available which should interest people with
distributed systems/groupware experience and who are knowledgable about
HotJava and Java. An ad follows. More information about the project is
available at http://www.dcs.qmw.ac.uk/~timk/Mushroom.
Queen Mary & Westfield College, University of London
Department of Computer Science
Distributed Collaboration & Interaction
Research Assistant
Applications are invited to work on a research project investigating support
for collaboration and interaction via the World Wide Web. The project
addresses the sharing of workspaces, applications and information resources.
You should have a BSc (at least II.1) or MSc in Computer Science or a
closely related subject and ideally a PhD, preferably in groupware or
another area of distributed systems, with a string implementation background.
In addition, you should be thoroughly conversant with an object-oriented
language and ideally have programming experience in one or more of the
following areas: Java or C++, World Wide Web, multimedia, the Mbone,
multithreaded environments, windowing systems.
Informal enquiries may be made to Tim Kindberg on +44 171-975-5236
or email: timk@dcs.qmw.ac.uk.
The post is funded under the EPSRC's Multimedia and Networking Applications
programme for 1 year with a salary in the range UKL16451 - 18120 inclusive,
depending on experience. The project is being carried out in collaboration
with Active Media Solutions Ltd and SRL Data Ltd.
For an application form and further details please telephone our 24-hour
Recruitment Line on +44 171-975-5171 quoting Reference 95155. Only
completed application forms will be accepted and these should be returned
by 29 November 1995 to the Recruitment Coordinator, Personnel Office,
Queen Mary and Westfield College, Mile End Road, London E1 4NS.
------------------------------
From: davest@teleport.com (David C. Stewart)
Date: Mon, 20 Nov 1995 13:37:34 -0800
Subject: GridBagLayout example
The GridBagLayout page in the API docs has a piece of example code which
I would like to try to get working. However, the compiler blows up
on line 5. The problem:
GridBagEx1.java:5: Class GridBagConstraints not found in type declaration.
void makebutton(String name,
^
It almost looks like GridBagLayout is not in java.awt.* -- can anyone help
me with this?
Dave
- --
David C. Stewart -- davest@teleport.com
Home Page -- http://www.teleport.com/~davest/index.html
------------------------------
From: Sami.Shaio@Eng.Sun.COM (Sami Shaio)
Date: Sun, 19 Nov 1995 15:04:13 -0800
Subject: Re: Instanciation by name
The syntax changed. Try the following:
b = Class.forName("Class"+"A").newInstance();
- --sami
|From michel@mmania.com Sun Nov 19 08:40:23 1995
|Date: Sun, 19 Nov 1995 16:55:48 +0100
|X-Sender: meyerm@mail.francenet.fr (Unverified)
|Mime-Version: 1.0
|To: java-interest@java
|From: michel@mmania.com (Michel MEYER)
|Subject: Instanciation by name
|X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
|
|One can read in the JAVA Specification (4.6 Object Creation -- the new
|Operator) that there is a form of the new operator which allows name
|instanciation, by default calling the default constructor.
|
|Here is what's written:
|
|/-------- begin quote
|
|A third form of allocator allows the class name to be provided as a String
|expression. The String is
|evaluated at runtime, and new returns an object of type Object, which must
|be cast to the desired type.
|
|b = new ( "Class"+"A" );
|
|In this case, the constructor without arguments is called.
|
|/-------- end quote
|
|However, I tryed this and I got an error message at compile time:
|
|
|test.java:7: 'new(...)' not supported.
| add((A) new ("Class A"));
| ^
|
|
|So, as I understand it this feature is not yet implemented. As we are now
|already in beta, I am wondering if this will have any chance to be
|implemented in future releases, or is it a dropped feature ?
|
|Maybe I missed something ... in any case, I would appreciate any answer
|
|
|
|Michel (michel@mmania.com)
|
|########################################################
|## The (virtual) Baguette: http://www.mmania.com ##
|########################################################
|
|
|
|-
|This message was sent to the java-interest mailing list
|Info: send 'help' to java-interest-request@java.sun.com
|
------------------------------
From: "Brian D. Elliott" <belliott@world.nad.northrop.com>
Date: Mon, 20 Nov 1995 14:56:36 -0800 (PST)
Subject: How to charge?
How do you strict use of an applet so that only people who pay can use it?
Or how can you make money selling java applets? If someone accesses a
page with an applet, can he not disconnect from the server and still run
the applet? This I have done. But can he then in some way save the applet
from RAM to his hard disk, and reexecute it later? What about reverse
engineering of applets?
Any ideas?
Brian
=========================================================================
Brian Elliott | 310-948-7038
Northrop Grumman Corp. |
belliott@world.nad.northrop.com |
=========================================================================
------------------------------
From: Greg White <gwhite@inetmi.com>
Date: Mon, 20 Nov 1995 14:22:08 -0500
Subject: RE: What happend to net.www.html.Parser, Document, Tag and TagRef?
<< Much deleted>>
> A Java HTML parser available in:
>
> ftp://java.sun.com/pub/java/avh/html.tar.Z
>
>It needs more work.
What is the status of this? What more work does it need? I have spent =
a few hours looking at it and I don't know how to get the parsed output.
Is it true that I want to subclass Parser and override the protected =
methods to get the parsed output?
I am guessing that I want to override handleStartTag(), handleEndTag(), =
and
handleText(). Will handleText() only return text that needs to be =
rendered, or will it also return the text version of tags (I am confused =
to see calls to handleText() within other methods such as startTag()).
What about makeTag()? Do I need to override this? Can you give a code =
snippet to help me understand what it is supposed to do?
Are these the classes that will be shipped with HotJava? When will you =
be able to make a beta version of this code available? If only the =
alpha version is going to be available for a while, I should just =
continue using the classes that were shipped with the Alpha JDK correct?
Thanks,
Greg White I/NET, Inc.
gwhite@inetmi.com
616-344-3017 ext. 120
------------------------------
From: Christian Koechling c/o ROBERT BOSCH GmbH FV/SLH <"kl@hi02c342"@hic334.decnet.bosch.de>
Date: Mon, 20 Nov 95 10:02:28 CST
Subject: Benchmark
Hi there!
Following the discussion about performance of JAVA I'd like
to know weather somebody has found some good benchmark test programs for Java.
What about the compiler for the java byte code. When will it be available?
wish you all a lucky day!
Christian
------------------------------
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Sun, 19 Nov 1995 18:59:23 -0800
Subject: Re: Awt.Component, paint and update in Beta1
Hi Michel,
> I'm having a little problem with the paint and update method of an
> awt.Component: the basic idea is that I want an "invisible" component.
> No, this is not as stupid as it may seem, I just want to take advantage of
> the mouseEnter, mouseDown, ... methods without having any noticeable object
> on screen.
Unfortunately we have no support for transparent Components in this
release. All Components will have some background color, and although
you can paint over it as much as you want, you can't prevent it from
opaquely obscuring everything underneath you.
> So I thought that it should be easy to derive a testCanvas class from
> awt.Canvas, and overide paint and update as empty methods.
>
> However, it appears that "some other objects ..." are still erazing the
> testCanvas' position with the backgroundColor of the testCanvas object.
>
> In the src/java/awt/Component.java file, there's a comment next to the
> update method which says: "you can assume that the background has not been
> erazed" ... It does not seem to be right...
The update method only bypasses the background painting in one particular
case - when you call the "repaint()" method. All other causes for painting,
primarily display damage caused by moving or resizing windows, will cause
the background to be painted. On many platforms the system does this
without any chance for the application to prevent it.
Java does not generally allow drawing on an underlying Component to
show through an overlapping Component. Drawing is generally clipped to
all overlapping Components.
In a future release, we might implement an "input-only" Component which
received input, but which could not be drawn to. Would that satisfy
your needs?
...jim
------------------------------
From: "Larry S. Bartz" <lsbart35@emmo.indy.cr.irs.gov>
Date: Mon, 20 Nov 1995 19:50:29 -0500 (EST)
Subject: [very late] Re: How java apps get krb tickets?
I'm sorry to be so late in my reply. The furlough really slowed
me down.
On Tue, 14 Nov 1995, Mark Eichin wrote:
> Date: Tue, 14 Nov 1995 15:06:18 -0500
> From: Mark Eichin <eichin@cygnus.com>
> To: lsbart35@emmo.indy.cr.irs.gov
> Cc: acain@snapple.ncsa.uiuc.edu, java-kerberos@lists.Stanford.EDU,
> www-kerberos@lists.Stanford.EDU, java-interest@java.sun.com
> Subject: Re: How java apps get krb tickets?
>
>
> If you have the java app prompt for a password and get it's own non
> cached tickets, you've eliminated the entire single-signon aspect of
> kerberos... unless, of course, you expect that users will *only* be
> using kerberos through this java app; do you? Or are they just going
> to have to give eudora their password again because the cache isn't
> shared? (It also ignores forwarded credentials in V5, but presumably
> the user is running the app locally anyhow...)
> _Mark_
>
Yeah, when I said "tough applets" about the potential for a java applet
to manage its own private ticket cache I really shot my "Grand Integration"
argument in the head, didn't I? I really was only thinking about kerberized
Web apps, because right now there is no other Kerberos in my environment.
Having a suite of kerberized java applets which don't share the
ticket cache would satisfy only the ignorant. It wouldn't be a
Good Thing, I (being slightly less ignorant than I was last week)
must agree.
The good news is that messages from Adam Jack, Marc Horowitz, and David
Richardson on this subject last week appear to indicate that Sid Conklin's
work may proceed with a significant potential for successful implementation.
What do you say, Sid? Has your alarm subsided? Do you see a way, based
upon the suggestions that Kerberos could be supported by native methods
which are not loaded interactively?
What is the potential for this approach in non-UNIX clients? Are the
necessary kerberos libraries freely available?
I really expected a little more "official" input on this question, since
Sun's HotJava White Paper made such a big deal over HotJava/Java's
potential for accomodating various authentication, authorization, and
security schemes.
- --
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
# Larry Bartz | |
# lbartz@infostream.cr.irs.gov | Ooo, ooo, |
# | Ooo, ooo, oooooo! |
# | I've got a gnu attitude! |
# voice (317) 226-7060 | |
# FAX (317) 226-6378 | |
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
------------------------------
From: David.Geary@Central.Sun.COM (David Geary)
Date: Mon, 20 Nov 1995 18:37:02 -0700
Subject: Dependencies
Kind Java Folks,
I've got two classes: View and Controller. View contains a Controller,
and Controller contains a View.
Evidently, when importing a class, javac looks for a XXX.class, where
XXX is the class being imported. If not found in $CLASSPATH, the import
fails.
Therefore, in order to get Controller to compile, I must comment out all
references to View in Controller, then compile Controller. Once Controller
is compiled, I can compile View, being careful to comment out all references
to Controller methods invoked in View, which I commented out of Controller to
begin with. Once View is compiled, I must go back into Controller, and
uncomment all references to View (now those references are resolved because
javac can import View). Then I must go back into View and uncomment out all
references to Controller methods I had commented out previously and compile
View once more.
Surely I am a total idiot and am doing something horrendously wrong.
Someone please enlighten me.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Geary "It's easier not to be wise"
geary@rmtc.Central.Sun.COM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
From: Suresh Payankannur <suresh@acgeas.com>
Date: Mon, 20 Nov 1995 19:30:32 -0800 (PST)
Subject: HTML INPUT field and Applet
Hi Folks,
Hope things are going good with everybody. I ran into another problem
recently.
I have an input field in a HTML form and would like to attach a smart
applet to it to do some kind of formatting. Say it it is amount formatter,
the user is allowed to enter only nuemerical chars and if the user
enters, say, 10000, the formatter automatically displays 10,000.
I can capture the key/mouse events by overloading the appropriate
methods, and can get the x, y position. Then I need to find out the field using
this postional information. This will be annoying when one adds a new field
in between the exising ones, resizing, use different font types etc. On the
other hand, when I overload the focus related methods, I get an Object,
which is obviously a Java object, and for which (I think) I have to write
the entire UI using Java components.
Is it possible to pass the INPUT field name/some-other-tag to the Event ?
Or is there is anyother way I can solve this problem ?
thanks,
suresh
------------------------------
From: Pat Niemeyer <pat@icon-stl.net>
Date: Mon, 20 Nov 1995 21:50:57 -0600 (CST)
Subject: Re: linking java with c/c++
On Mon, 20 Nov 1995, Marko Gargenta wrote:
> I want to use Java for the new project, but I also need to use Lex/Yacc
> for it too.
>
> Is there any way to link c/c++ to Java somehow, or are the
> tools like Lex/Yacc going to be designed for Java too?
Yes on both counts.
You can link in native methods, however you lose a lot in doing so
(for all the obvious reasons).
I'm sure that there will be a Lex/Yacc for Java eventually (or sooner).
Pat
------------------------------
From: Kevin Sawad Brooks <sawad@media.mit.edu>
Date: Mon, 20 Nov 1995 23:00:45 -0500 (EST)
Subject: Re: Java is not slow ! (was: Introduction to Java - Questions)
On Fri, 17 Nov 1995, tahmed wrote:
> What's better, is that you need to be a programmer to write
> Java. Which will eliminate all those fools out there putting up
> garbage 0 content pages overnight.
>
I hardly think that being a programmer automatically
makes one able to provide non-zero "content."
programmers have been involved in video games and
cdroms, and i don't think that the latter are so filled
with "content." it seems that what motivates your
statement is an elitism threatened
by the fact that so many people have a chance to voice
something in a field where before they were merely only
"users" on the receiving end of things.
by the way, i am a programmer.
>
> +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
> Bell SYGMA Telecom Solutions - Service Assurance ALPINE TDM7534 Full
> 160 Elgin St. Tel: 613-781-9820 Logic Deck, 12 CD Changer
> Room 250 Fax: 613-567-2482 Tweeter 4 X 100W=400
> Ottawa, Ontario Internet: tahmed@on.bell.ca MidRange 4 X 100W=400
> K2P 2C4 http://www.spyder.org/ratt/ SubWoofer 1 X 350W=350
>
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
>
S A W A D B R O O K S T H E M E D I A L A B
M a s s a c h u s s e t s I n s t i t u t e o f T e c h n o l o g y
20 Ames Street, Room E15-443 Learning & Commonsense Section
Cambridge, MA 02139-4307 v.617.253.4406 f.617.258.6264
WEB + www.media.mit.edu/~sawad/ EMAIL + sawad@media.mit.edu
------------------------------
From: tahmed <tahmed@on.bell.ca>
Date: Mon, 20 Nov 1995 23:23:16 -0500 (EST)
Subject: Re: Java is not slow ! (was: Introduction to Java - Questions)
> makes one able to provide non-zero "content."
> programmers have been involved in video games and
> cdroms, and i don't think that the latter are so filled
> with "content." it seems that what motivates your
> statement is an elitism threatened
> by the fact that so many people have a chance to voice
> something in a field where before they were merely only
> "users" on the receiving end of things.
>
> by the way, i am a programmer.
True, being a programmer doesn't save you from putting
on no content sites. But it decreases the chance. But give me a break,
wander around the web, most of it is 100% useless. HTML is so easy,
but writing content isn't. So you have 99% of web pages of
"hi, I really like ___, here's some links to ___ sites.." And everyone
just points to everyone, with NO ONE wanting to write about ____.
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
Bell SYGMA Telecom Solutions - Service Assurance
160 Elgin St. Room 250. Ottawa, Ontartio. K2P 2C4. (613)781-9820 F:567-2482
inet: tahmed@on.bell.ca IIS: TAHMED HomePage: http://cygnus.igs.net/ratt/
------------------------------
From: mentor@io.org (David Forster)
Date: Tue, 21 Nov 1995 02:23:42 -0500
Subject: November 17th J*** Notes issue
Hello all!
The latest issue (Nov. 17) is now online!
Check out the page!
For those not yet familiar with the summaries, here's the standard blurb:
Are you tired of wading through hundreds of messages on the Java-related
mailing lists to get to the real nuggets of information? Don't you wish
there was some place where you could just read the high points?
Well, search no longer!
Announcing J*** Notes!
J*** Notes is a weekly summary of the traffic appearing in the Java mailing
lists and news groups. We hope that the summaries are unbiased and a clear
reflection of what the various authors intended, but we are human,
so some errorrs or misconceptions may creep in.
Each issue contains entries in the following categories:
1.Announcements: brief notices of happenings, course offerings, etc.
2.Features: J*** Notes exclusives and summaries of important discussions
3.Discussions: summaries of multi-message exchanges
4.Bugs and Warnings: listings of known or suspected bugs or odd behaviour
5.Comments: short statements of fact or opinion
6.Queries: short questions, sometimes with answers
7.Class Exchange: Got a class to give away? Need a class developed?
8.FAQ candidates: questions of the FAQ sort, with answers
9.Help wanted: offers of employment, etc.
Please check out our latest issue today!
Cheers,
David Forster <br><a href="http://www.io.org/~mentor">
Mentor Software Solutions </a><br>
+1 905 832 4837 <br>
------------------------------
From:
Date:
Subject: [none]
------------------------------
From:
Date:
Subject: [none]
------------------------------
From:
Date:
Subject: [none]
------------------------------
From:
Date:
Subject: [none]
------------------------------
From: Caskey Dickson <caskey@perfectmarket.com>
Date: Tue, 21 Nov 1995 11:41:09 -0800
Subject: Re: writing code that works for applications AND applets
At 11:49 AM 11/17/95 -0700, you wrote:
>Hi,
>
>I'm just curious what needs to be done to write a program
>that will work as both an application and an applet.
>
>I currently see two options:
>
>1. have the "main" class be a subtype of the class java.applet.Applet
>and add a "main" method that does a new and then calls init()
>and start()
>
>2. have the main functionality hidden and have two front-end
>classes, one for running the program as an applet and one for
>running the program as an application.
>
>The latter seems like it would be more complicated, but the
>first means that all my programs will be subclasses of applet--
>is that going to be a problem in the long run?
>
>Thanks,
>--james
James,
Here's my take on it...
I would build all the components and parts of my appl(et/ication)
(appletication?) like normal and simply change the instantiation of the
final class which made use of all those classes.
One option is that your application is culminated in a subclass of frame
which implements runnable. The applet simply creates and shows this frame,
the application does something similar. Would this work?
- - -
- -Caskey Dickson caskey@perfectmarket.com-
- -Director of Programming 818.542.3820-
- -PerfectMarket Inc. (fax)818.542.3837-
- - -
------------------------------
From: Ben Black <benb@velocity.com>
Date: Tue, 21 Nov 95 11:17:12 -0600
Subject: Re: Java is not slow ! (was: Introduction to Java - Questions)
>(In seriousness, even ignoring portability, Java is still tres cool --
>it is the only strongly-typed AND true-OO language I know of -- but
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Eiffel springs to mind. I'm sure there are others out there.
>many massively cool languages swirl down the tubes every year. It is
>the portability and interpretability that gives Java its marketing
>legs.)
very true. dynamic native compilation would give java performance similar to
C++ without sacrificing that wonderful portability and interpretability (what
an ugly word). just an implementation issue :).
ben
black@velocity.com
------------------------------
From: mentor@io.org (David Forster)
Date: Tue, 21 Nov 1995 13:59:20 -0500
Subject: J*** Notes location
At 07:31 21/11/95, James Roseli wrote:
>>Hello all!
>>
>>The latest issue (Nov. 17) is now online!
>>
>>
>>Check out the page!
>>
>Okay. Where?
>
>James P. Roseli
>jroseli@primenet.com
<Blush>
Oops, the last few messages have been sent out sans URL:
http://www.io.org/~mentor/J___Notes.html (don't forget to reload the page).
Sorry to take up the bandwidth.
Cheers,
David Forster <br><a href="http://www.io.org/~mentor">
Mentor Software Solutions </a><br>
+1 905 832 4837 <br>
------------------------------
From: "R.Volkmann" <m224873@svxtrm14.mdc.com>
Date: Tue, 21 Nov 1995 13:19:37 -0600
Subject: class hierarchy in postscript
Where can I find a postscript version of the Java class hierarchy?
|----------------------------------------------------------------------------|
| 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 |
|----------------------------------------------------------------------------|
"As the light changed from red to green to yellow and back to red again,
I sat there thinking about life. Was it nothing more than a bunch of
honking and yelling? Sometimes it seemed that way." -- Jack Handy
------------------------------
From: jshermer@BASISinc.com (Jill Shermer)
Date: Tue, 21 Nov 1995 11:32:41 -0800
Subject: Re: Simple Draw Image
Hi,
I followed your suggestion as well, and am happy with the results.
Thank you!
If you don't mind another question, can you respond to the following:
I have a top-left black border which is drawn at the beginning
of each iteration of my image loop; it disappears after the 1st
image is drawn. Specifically, the border runs along the top and
left side of the area where my first image is to be drawn.
The border is not in my gif images. I would like
to get rid of it. My images are drawn at the same location, without
any offset. When my system load is heavy, I notice this top-left border
is drawn before any image is draw; the left portion is less about
10 pixels wide and the top portion is about 5 pixels in height.
This border appears in both the appletviewer and in Netscape 2.0 beta.
Any suggestions on how to solve this would be appreciated!
Thanks in advance,
- -Jill
> Subject: Re: Simple Draw Image
> Mime-Version: 1.0
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
>
> Overload update do that it does not clear the applet first:
>
> public void update(Graphics g) {
> paint(g);
> }
>
> That should do it.
>
> Aleph One / aleph1@dfw.net
> http://underground.org/
> KeyID 1024/948FD6B5
> Fingerprint EE C9 E8 AA CB AF 09 61 8C 39 EA 47 A8 6A B8 01
------------------------------
From: jshermer@BASISinc.com (Jill Shermer)
Date: Tue, 21 Nov 1995 11:54:31 -0800
Subject: Re: Simple Draw Image
Hmmm, I have figured out, by resizing my appletviewer window to
cover my root window, that the first image in my image loop is drawn to
a very large scale before my image loop is drawn. That is why I
am seeing this unexpected top-left border interferring with my expected image
loop. How do I turn this off? Any clues?
- -Jill
jshermer@basisinc.com
- ----- Begin Included Message -----
From jshermer Tue Nov 21 11:32:39 1995
To: aleph1@dfw.net
Subject: Re: Simple Draw Image
Cc: java-interest@java.sun.com
Hi,
I followed your suggestion as well, and am happy with the results.
Thank you!
If you don't mind another question, can you respond to the following:
I have a top-left black border which is drawn at the beginning
of each iteration of my image loop; it disappears after the 1st
image is drawn. Specifically, the border runs along the top and
left side of the area where my first image is to be drawn.
The border is not in my gif images. I would like
to get rid of it. My images are drawn at the same location, without
any offset. When my system load is heavy, I notice this top-left border
is drawn before any image is draw; the left portion is less about
10 pixels wide and the top portion is about 5 pixels in height.
This border appears in both the appletviewer and in Netscape 2.0 beta.
Any suggestions on how to solve this would be appreciated!
Thanks in advance,
- -Jill
- ----- End Included Message -----
------------------------------
From: David.Geary@Central.Sun.COM (David Geary)
Date: Tue, 21 Nov 1995 12:58:44 -0700
Subject: Re: Dependencies
Folks,
Thanks for all your replies; I've distilled this to it's simplest form,
and am still stuck:
In package java.awt, I've added 2 classes: A and B:
- --------------------------------------------------------------------------------
trilby >> cat A.java
package java.awt;
import B.java;
class A {
B b = null;
A() {
}
}
trilby >> cat B.java
package java.awt;
import A.java;
class B {
A a = null;
B() {
}
}
- --------------------------------------------------------------------------------
trilby >> javac A.java
A.java:3: Class B.java not found in import.
import B.java;
^
A.java:6: Class java.awt.B not found in type declaration.
B b = null;
^
2 errors
- --------------------------------------------------------------------------------
Some folks have suggested that I compile both at the same time:
- --------------------------------------------------------------------------------
trilby >> javac A.java B.java
A.java:3: Class B.java not found in import.
import B.java;
^
B.java:3: Class A.java not found in import.
import A.java;
^
2 errors
Setting CLASSPATH to a variety of directories (including the awt directory)
seems to have no effect.
I've tried all sorts of things: taking out the package declarations and
import statements for instance, all of which obviously have no effect.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David Geary "That's totally feather-pluckin insane"
geary@rmtc.Central.Sun.COM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
End of java-interest-digest V1 #270
***********************************
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com