714 byte By
khiduc at 2007-9-26 1:13:31
I am a beginner with JSSE so please do share your wisdom. :-)The segment of codes below is the starting point. I need to be able to use the public key and the cipher suite from the server certificate to encrypt something. Which APIs should I use? Code samples would be great.Thousands Thanks in ...
71 byte By
toytic at 2007-9-26 1:16:01
what are surface normals, how do I calculate them?
624 byte By
hdevaan at 2007-9-26 1:18:43
Hi everyone,I'm currently finishing the first parts of user interface built with Swing components. The canvas is used to display a 2D view on a model track. However, people have expressed interest in rendering a 3D view as well.Although I know a few things about Java 3D and 3D programming in ...
6599 byte By
aim4min at 2007-9-26 1:18:44
I wrote a simple program to create a thumbnail using JAI. After it is finished, the VM doesn't want to exit. Seems like there was a thread created that is not deleted. This only happens when converting file formats (gif2jpg) but it ends correctly when doing a jpg2jpg. Following is a ...
Hello, hello.I use this transformation string which is from JCE1.2.1 API user guide "DES/OFB32/PKCS5Padding" to create a Cipher object. No compiler error but a run-time I get NoSuchAlgorithm exception.Note: Using "DES/ECB/PKCS5Padding" is OK. I assume that there is nothing wrong with my ...
634 byte By
VijayJ at 2007-9-26 1:19:53
Hi, I am a beginner in JCE. I am using jsdk1.4 beta version. When I try to get a key of a self-signed certificate and use it to initialize cipher obect (DES algorithm), I am getting the following error:Exception in thread "main" java.security.InvalidKeyException at ...
430 byte By
MeTK at 2007-9-26 1:21:29
Are there any plans to make a Java 3D SDK for Linux anytime in the future? One of the things I like about Java would be its portability, but if I can't develop for that protibility, I suppose I could figure out a way to use WinE to do it.... .... but I would prefer to see a version of the Java ...
hi friends,I have a small problem. I need to create a small image which will contain the text given by the user. I have to send the same image to the clients's browser.Pl. give me an idea how to do?Thanks in advance.
Hi, there!Is it possible to send Video Streaming (using JMF) toWindows Media Player? If so, how could I do that?Thank You very much!!Cesar
319 byte By
Mazz at 2007-9-26 1:30:31
I am doing a project at University whereby I am creating a virtual village. I am creating the buildings etc. using the MAYA package and then exporting the buildings (individually) into VRML.I am unclear as to how I then get my models from VRML into JAVA 3D. Any help/suggestions welcome!Mazz ...
http://www.fruttalab.hu/labelements/3d/index.html
Hi, all I built some polyhedrons using IndexedTriangleArray, the normal for each vertex point is (0.0, -1.0, 0.0). I used the following code to set the appearance: PolygonAttributes pa = new PolygonAttributes(); pa.setCullFace(PolygonAttributes.CULL_NONE); pa.setBackFaceNormalFlip(true); ...
I'm trying to install Java3D and somehow it doesn't seem to be working. I'm not sure whether I should be installing the opengl or thedirectx version, but I've tried both with no luck. I'm running WindowsM.E.I downloaded the JSDK beta 1.4 version (I have previously tried alsowith the 1.3 ...
dumyvarX = (int)(dumyvarX * Math.cos(radiansZ) - dumyvarY * Math.sin(radiansZ) ); dumyvarY = (int)(dumyvarY * Math.cos(radiansZ) + dumyvarX * Math.sin(radiansZ) ); thanks in advance it does every thing except make my point go in a circle
3389 byte By
kenshin0 at 2007-9-26 1:37:22
Dear all,I'm new to cryptography in general and I have been modifying the symmetric key examples so that: a) the application can read data from a file, encrypt it, then overwrite contents of the file with the encrypted bytes. The generated secret key is saved to a different file. b) the ...
271 byte By
balusug at 2007-9-26 1:38:30
How to send signed hash in xml over internet. using this signed hash as input, signature verification has to done on the other end.kindly explain on what format I can send the signed hash.K.R.Balasubramaniamkrbalasubramaniam@dsqsoft.com
Does anyone know if there is a crypto provider for the "zip 2.0" format? I believe that "Zip 2.0" is the format used by WinZip. I need to produce encrypted zip files which can be opened by WinZip.Ravi
1051 byte By
hekeller at 2007-9-26 1:39:56
Hi,I would like to draw dynamically on displayed frames of a video. The program stops the video and lets the user draw. A previous "Draw on video" topic used an Effect to do this. Because the video is stopped, this won't work.Best would be using the setGlassPane() method. However, the ...
217 byte By
Appollo at 2007-9-26 1:43:37
My virtual universe has several shapes and each should be dragged differently (some along X axis and others along Y or Z axis).Can somebody pls help me with this, cuz Im really stuck.Thanx!
Is it at all possible to get a series of points on quadratic and for the matter cubic line using graphics2D.I've got a lineQuadCurve2D q = new QuadCurve2D.Float();q.setCurve( startX, startY,controlX,controlY,endX, endY);I need to find a series of points on this line. The maths is simple enough ...
import java.io.*;import java.math.*; import java.util.*; import java.awt.*; //Blowfish works with 64 bit words, "FF FF FF FF FF FF FF FF" is such a word.// a^b <= XOR!!! class pBlowfish{ static int[][] S= new int[4][256];static int[] P = new int[18]; public static void ...
hi everybody..I'm trying to add a mouseListener or a mouseMotionListener to a ScrollingImagePanel. When I tried to add a listener to the panel, the only event that was thrown was mouseEntered. Checking the API, I found that this object implements the mouseListener and mouseMotionListener, and ...
67 byte By
sunnics at 2007-9-26 1:49:25
Transform the "scene" (BranchGroup) picture to ".jpg"
278 byte By
Appollo at 2007-9-26 1:51:52
I have an object (a sphere) that has to have a label underneath it. Double-clicking on it (sphere) should hide/show the label.Does anybody have any idea how to do this? The labels have to be very small and readable.Any suggestions are welcome!
572 byte By
wangg3 at 2007-9-26 1:52:17
I'm implementing an application which allows users to iterate through a set of video files. These video files are in different format, such as AVI, MOV, MPEG, etc. I don't like to create a new Player instance for each file by using the following statement:Player player = ...
4620 byte By
miriamf at 2007-9-26 1:52:21
Hello,I have an application that allows the user to record and play back audio to a file. After recording and playing back several times to the same audio file, I eventually get an exception error thrown out when trying to record. After this happens, I'm no longer able to record to that file ...
522 byte By
wsun68 at 2007-9-26 1:53:40
Hello,I'm writing some java RMI application over SSL via JSSE that comes with JDK1.4. So far, I tried the sample code and it went well. My question is, from JSSE API or Sun's reference implementation API, how do I control server or client authentication? According to the SSL protocol, they ...
i have two questoin:a. in method mousePressed() and mouseDragged(),how to save the initial coordinate of the mouse press?b.i have saw many applets just draw a rectangle only when the mouse is released,how to let rectangle always show on the panel before the mouse is released?who can show some ...
3066 byte By
NTK1 at 2007-9-26 1:57:22
Hi,I'm trying to make this window frame scroll graphics, it shows the scroll bar but when I try and scroll it, the graphics disappear. What am I doing wrong? import java.awt.*;import java.awt.Graphics2D.*;import java.awt.event.*;import java.awt.geom.*;import java.applet.*;import ...
76 byte By
XingH at 2007-9-26 1:58:08
I want to use awt to creat a image and save it , how can I do?
Hey therewe are working on an application that will allow six video players to run similtaneously in a frame (actually a J Layered Pane) - you can drag these around + rearrange them.At present we are testing a whole load of different formats + codecs to see which performs best - the piece will ...
I have downloaded the Java 3D API but the compiler keeps telling me off for the java 3d packages not existing. How can I make it understand where the packages are and how to access them?Thanks Rufus,
326 byte By
LuckyLeo at 2007-9-26 1:59:53
hi all,I am trying to move a dot continuely to any direction that I want . It's easy just move to north south etc, but it is very difficult move the dot to any direction such as move to 20 degree(ie. between North and NorthEast).anyone who has any idea ?thanks in advance.=Leo ...
321 byte By
ad_p at 2007-9-26 2:00:08
I am constructing a shape3D object using a polygon array and the GeometryInfo class, as is shown in the easy content creation chapter of the java 3d tutorial. This works fine, but I would like to apply a texture to this Shape3D and I cannot work out how to do it. Can anyone help?ThanksAdam P ...
403 byte By
ottox at 2007-9-26 2:00:48
Hello. I am new to JMF, i was wondering if there is any way i can get information about audio frecuencies from a audio file. What i want (this is ideallistic) is to divide the sound wave in a discrete set of points so i can enconde it in a Vector.Please tell me if this is possible in Java, and ...
561 byte By
splotto at 2007-9-26 2:06:21
Hi !I'm new to Java3D and I want to change the Appearance of an object. Theproblem is, the object is loaded with an ObjectFile and I don't find amethod which allowed to change the Appearance. I get the BranchGroup withthe Scene so I can visualize my object but it's black (the object file ...
Hello,I want to use two byte[]s which represent the n and the e of a given Public Key to initialize a Cipher for the RSA Algorithm. Does anybody have a good introduction on initializing RSA Public Keys. Where do I find Code Samples on this topic. At the moment I am using the Cryptix Provider ...
Hi thereI have recently started developing a Capturing classThe class i supposed to conect to a Intra-oral cameraAnd you should be able to take screen shots from the capture deviceEverything works fine if not for a tiny little detailThe image I display is black & whiteIt seems that JMF is ...
144 byte By
fidalgoa at 2007-9-26 2:07:29
Hello everybody!!!I would like to know where can I get code to convert a Image data to different formats? thank you.
When signing some data, first one computes the message digest, then encrypts the message digest with his private key to get the signature. So, if I have the public key, I should be able to take the signature and decrypt it, yielding the original message digest. Correct?However, there doesn't ...
if anyone can help I will be very grateful. Is it possible to use an xml document to build a graphic, however, I don't mean a graph. for an example if I had an xml doc that specified x,y and z points for a number of (for arguments sake) spheres, I would like to be able to plot these ...
671 byte By
ericew at 2007-9-26 2:08:29
I am doing software rendering and then flipping from a back buffer to the screen. The screen flipping causes a noticible tearing during movement.I have tried everything, but am comming to the conclusion that the only way to avoid this is to use jdk1.4 fullscreen API. This is a suboptimal fix ...
I have a DirectShow-based capture device for the Java Media Framework. My capture device loads a DLL and acceses it through the JNI. This DLL instantiates various DirectShow COM objects. Everything use to work fine...until I had to reinstall my system.I have reinstalled Windows 2000 from ...
I have installed JMF 2.1.1 on Windows 2000 and JMStudio runs fine. However, when I try to run a custom application that uses JMF and the mediaplayer bean, it throws a ClassNotFound Exception:java -cp C:\JMF2.1\lib\sound.jar;C:\JMF2.1\lib\jmf.jar;C:\JMF2.1\lib\mediaplayer.jar -jar ...
Hi,I am very new to J2D and graphics programming. I currently know how to go about drawing stuff on the screen or make it move in a very basic fashion. I am trying to develop a app that looks like a timeline moving. Let's say that I have a bunch of planes and they are approaching some airport. ...
508 byte By
Appollo at 2007-9-26 2:10:56
My application should contain a 3D coordinate system for the user to interact with (the user would add/remove points to it (represented as very small spheres in my case) and drag them along the axes).Since you can not add/remove transform groups at run time (when the graph is "live"), is there ...
I am using Java on Unix and would like to use Windows True-Type or Open-Type fonts. Can Java read a Windows true/open-type font (.ttf) file?What should I do to make Java pick up such Windows fonts? How should I name the font on Unix (I mean Unix fonts seems to be named in a ...
I've put some stuff that may be of interest here : http://www.isacat.net/2000/sound.htm
486 byte By
Holden at 2007-9-26 2:15:20
I have an Image object loaded from a file using Toolkit, I want to draw it on a BufferedImage using g.drawImage( x, y, width, height, ImageObserver );later on I want to save the BufferedImage in a jpeg file using the converter.Since my class is not a subclass of Component (Panel, Applet, ...
Correct me if I'm wrong (and give an explanation of why), but it seems to me the the SecureRandom class that can be used for cryptography is, by it's design, insecure. The problem lies is the seed. Now being able to seed your random number generator is great, and very useful. However, it only ...