Patrik:
If your application is of class MyClass, and your icon is "myIcon.gif"
in the same folder as your class file, you can use the following (for a
class extending JFrame):
this.setIconImage(Toolkit.getDefaultToolkit().getImage(MyClass.class.get
Resource("myIcon.gif")));
Chris
=
Kevin,
I also had the problem you mention about keyboard accelerators not
working after mouse interaction with the canvas. It is a focus issue as
far as I can tell. I worked around this issue using requestFocus() for
the content pane, to get focus back from the canvas after every mouse
click.
Well Markus,
I just saw the movie "Final Fantasy" (don't bother) and that made me
feel a little inadequate when I saw the amazing 3d animation in that,
compared to my J3D wireframes of simple boats!! However, my wireframe
boat program is ready for publication, so I don't feel stupid. :) Good
l
Oops! Big mistake!
Of course if I had actually referred to my working code, I would have
recalled the super.finalize() call and the throwable declaration...
Any text or FAQ can explain finalize and it's use more clearly. Sorry
for my mistake!
However, I think the following would be better th
Have your thought about using a JOptionPane? I think it's better if you
only want a warning message to show. Something like this has all the
buttons and closing methods built in:
JOptionPane.showConfirmDialog(ParentFrame, warnMessage, "Warning",
JOptionPane.YES_NO_OPTION );
There are also show
tion is never guaranteed to happen.
Ever. (This means that finalizers are never guaranteed to run, ever.)
System.gc is not guaranteed to do ANYTHING. For this reason, I fail to
see
the point of its existence, actually.
-Original Message-
From: Christopher Collins <[EMAIL PROTECTED]>
T
You can try a trial version of the program "OptimizeIt", which will
allow you to track the number of instances of each type of object while
your program is running, and the amount of memory they take up. This
program helped me out a lot last week. Just search for OptimizeIt on
any shareware site
Does anyone know about this exception:
java.lang.RuntimeException: Interp point outside quad
at
com.sun.j3d.utils.picking.PickIntersection.getInterpWeights(PickIntersec
tion.java:1429)
at
com.sun.j3d.utils.picking.PickIntersection.getPointCoordinates(PickInter
section.java:1071)
Calm down everyone! We all unfortunately got the attachments. We all
deleted them. Will it matter tomorrow? No. I think 6 messages is
enough to get the point out about etiquette.
Now we can get on with our lives and have a nice day rather than getting
all worked up and complaining to each ot
Hello Nikolaos,
I'm pretty sure that the appearance is assigned by reference. I am
using several Shape3D with IndexQuadArrays, all assigned the same
appearance object. To change the appearance fill state of the entire
scene, I just retrieve one appearance and change the PolygonAttributes,
and t
ood luck,
Chris
__
Christopher Collins http://www.ucs.mun.ca/~a62cmc
Oceanic Consulting Corporation (709) 754-2357 [home]
Memorial University of Newfoundland (709) 749-4383 [c
it.
Since the orientations are relative to the one below, removal of the top one
should not affect the others, right?
Good luck,
Chris
_________
Christopher Collins http://www.ucs.mun.ca/~a62cmc
Oceanic Consulting Corporation
have TransformGroup.detach(),
Shape3D.detach(), etc.
Chris
_
Christopher Collins http://www.ucs.mun.ca/~a62cmc
Oceanic Consulting Corporation (709) 754-2357 [home]
Memorial University of Newfoundland (709) 749-4383
effects were not
cancelling.
Confused? Sorry about that. Just never mind my question.
Thanks and have a great day,
Chris
-Original Message-
From: Christopher Collins [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 24, 2000 12:15 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Virtual World to
n
Please let me know if you have any suggestions on how to do this!
Chris
__
Christopher Collins http://www.ucs.mun.ca/~a62cmc
Oceanic Consulting Corporation (709) 754-2357
Hi
Bruno,
I've
been working on a geometry editing program for a while now, and part of it
includes simple point picking. You have to do a bit of work to set it
up. You have to set the picking capabilities of the geometries you want to
be able to pick. Also, you have to enable pick reporting
Hi Bob!
You can display dots using a PointArray geometry. With this you can have as
many or few dots as you want. You can also change the size or color by
setting the appearance of your point array with setAppearance( myAppearance
= new Appearance ()) then changing the PointAttributes with
myAp
There are still some restrictions, Andrew. With multiple geometries, they
must all be of the same sub class. For instance you can't have a PointArray
and an IndexedGeometryArray on the same Shape3D. You'll see when you read
the API.
Chris
-Original Message-
From: Andrew R. Thomas-Cram
I have the same flashing problem with the JMenu. It has not been fixed in
J3D release 1.2. I haven't tried to replace it with an awt Menu, but I
will.
Christoper Collins
Oceanic Consulting / Marineering Ltd.
-Original Message-
From: Tiziana Cimoli [mailto:[EMAIL PROTECTED]]
Sent: Frida
19 matches
Mail list logo