Re: [JAVA3D] Icon

2001-08-13 Thread Christopher Collins
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 =

Re: [JAVA3D] mixing Swing w/ Java3D [keyboard issues]

2001-08-09 Thread Christopher Collins
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.

Re: [JAVA3D] confession of a demoralised j3d sucker

2001-07-26 Thread Christopher Collins
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

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
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

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread Christopher Collins
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

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
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

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
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

[JAVA3D] Picking exception

2001-07-12 Thread Christopher Collins
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)

Re: [JAVA3D] Update2

2001-07-12 Thread Christopher Collins
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

Re: [JAVA3D] By reference or by value

2001-07-05 Thread Christopher Collins
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

Re: [JAVA3D] Geometry Array - getColors(index, Color3f[ ])

2000-08-03 Thread Christopher Collins
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

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Christopher Collins
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

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Christopher Collins
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

Re: [JAVA3D] Virtual World to Local Coordinates

2000-07-24 Thread Christopher Collins
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

[JAVA3D] Virtual World to Local Coordinates

2000-07-24 Thread Christopher Collins
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

Re: [JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Christopher Collins
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

Re: [JAVA3D] Simplest dot.

2000-07-12 Thread Christopher Collins
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

Re: [JAVA3D] PickResult on Shape3D with multiple geometry

2000-06-21 Thread Christopher Collins
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

Re: [JAVA3D] bug 4295524 - jmenu causes frame to flash

2000-06-16 Thread Christopher Collins
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