Hey everyone... I have a code which is in C which computes the MD5 hash of data from an input file. I am trying to convert it to Java.I have these questions:1) The C verion makes use of the API's: MD5Init, MD5update and MD5Final. These functions are avialable in MD5.c However, the Java ...
Hi!I am trying to load a VRML file with java 3D. The problem occurs at the line that is bold.I get this error:Error: java.lang.NullPointerExceptionCould someone help me?I already checked that the VRML file is at the right place...What is the problem?thanks for your help!import ...
Hi All,Please help,I want to zoom the buffered image using Affine Transforms, the code shown below can rotate the buffered image now how to zoom the same buffered image using Affine Transforms.import java.awt.*;import java.awt.event.*;import java.awt.geom.*;import ...
Hello sir/mamI am facing some problems in both the files.When I started AVTransmit2 file on command prompt it shows............................................created RTP session 172.16.106.160 1500start transmission for 60 ...
34750 byte By
pintoia at 2007-11-27 1:59:36
I have a program that transmit video from webcam to various clients , but it also must save a video if the client want. My problem is that i must create a clone from the datasource that is sent to save the video but when i close i stopped saving and i want to save a nother video i can't use ...
Hey guys n gals,I checked the forum and there are lots of people asking questions about this topic but no answers.Anyway i created a new player in a program i wrote and im trying to play a .avi file, when i do i get the following error? Unable to handle format : MJPG, 320x240, FrameRate=20.0, ...
900 byte By
ashiersa at 2007-11-27 2:01:41
Hi there,I'm wanting to create a simple whiteboard application. Nothing fancy, just an app that allows me to select a pencil tool and draw shapes on a whiteboard. Does anyone know where I can obtain sample code on how to do this?I've had a look at numerous tutorials on Java2D but those ...
Hi, i am currently loading an displaying an image using an image reader example i found on the Java website. When this code reads the image in, it sets the components preferred size to the images actual size. The problem i am having is that i add this component to another frame, but i tcomes ...
1069 byte By
thomlepa at 2007-11-27 2:04:03
Hello,I have a polygon (QuadArray) that I'm having lots of fun rotating using the Behavior class. The problem is, after the polygon is rotated,The X,Y, and Z values of the Point3f points are unchanged. Visually the polygon has been rotated, but the Point3f objects that define the polygon have ...
346 byte By
Liusua at 2007-11-27 2:05:25
Accord to the JMF format list,i know that the jmf support D/E g711(u),but only support Decode g711(a).And all,I can't see nothing about the g729 in format list.Can anyone tell me ?or ,if JMF default not support,any methods can fix the problem?(may be use some plugin?)Thanks.Message was edited ...
Hi,I'm doing a vectorial drawing program and I want to draw a rectangle around a shape when it is selected. I actually get the rectangle by calling Shape.getBounds2D().However, if the shape is a Bezier curve (GeneralPath), the returned rectangle is not what the user is expecting since the ...
370 byte By
Dayaa at 2007-11-27 2:05:35
Hi,i am developing a new software to play the *.MSV files for online transcription system the problem is the audio files should not be downloaded on the client side and should play online, and i have to integrate a foot pedal to integrate the reversing and forwarding. I need some one to help on ...
69 byte By
Liusua at 2007-11-27 2:07:03
is the JMF Control only means some GUI component?Thanks
1192 byte By
Kenkena at 2007-11-27 2:07:15
Morn to all ;)I am doing a small GUI using swing for my project now and having this problem:I try to draw a path on JPanel, it can be like this--|||path:|| ***********|||--and the path would be dynamically set if some external events come, then it should be an interactive component on the GUI, ...
1422 byte By
mirko81a at 2007-11-27 2:07:18
good morningi have 1 question for this key but not found answer.I use the DESedeKeySpec for create spec and new key whit my secret codethis is my codeDESedeKeySpec keyspec = new DESedeKeySpec(keyString.getBytes());byte [] b = keyString.getBytes();String app3 = new ...
2956 byte By
Jona_Ta at 2007-11-27 2:09:48
Dear Friends,I have a class (Class Pee) where I implemented the paintComponent(Graphics g) and another class (Class Bee) where I generate some datas. My intention is to call the paintComponent(Graphics g) method in class Pee at class Bee to make use of the generated data to draw some figures.I ...
Hi all ,We are trying to develope a chat application.Still now we dont have any idea to design a server.Any one can say by which we can develope a sever for chat application?Need some sample code .Thanks in advance.
Hi all,I'm really struggling here and I'm hoping someone can help. I'm no security expert so please forgive any obvious errors.I want to create a public and private key pair, then use a KeyStore to store them so other objects can access them. However, I'm having a problem and here is the ...
436 byte By
c4rtera at 2007-11-27 2:12:25
hi guys , wondering if you can help me out, i am after some RSA key generation times to compare mine against.i have worked out that:512 key generation average is 217ms1024 key generation average is 600ms2048 key generation average is 3000ms any body know if there are any sites that can give me ...
353 byte By
javacia at 2007-11-27 2:13:35
Hi,For instance, I had a line chart with x and y axis. When I move mouse to the line chart how can I determine x and y axis values? With mouseMoved metod i can find the coordinates but coordinates doesn't help me to find x and y values of the line chart.How can I find x and y values of a Line ...
1581 byte By
gk4321a at 2007-11-27 2:14:05
Hello,I am a new to writing code on J2ME . I am trying to encrypt data usingRSA public key on J2ME using SATSA.I generated the public key using openssl in the PEM format and stored thekey (mypublickey) as a Base64 decoded byte array in my code.Next, I did the following:X509EncodedKeySpec test - ...
HI,This is realy realy urgent.Ca anybody tell me if I can user AES encryption in JDK 1.3.1_06. I tried with JCE 1.2.2 provider bu got "No Such Algorithm exists java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES"error -Following is the sample steps I used -String ...
422 byte By
Fergala at 2007-11-27 2:19:51
HiI want to make a version of PacMan in Java. However, Ive never worked with animation before. I've researched on the Internet about it, and Timers seem to be used quite a lot. Does anyone know of good tutorials on animating a simple circle that has been painted on screen? It would also be ...
Anyboy please send me the code for reading the CMYK color TIFF and JPEG images in java.. Thanks advance..
Dear all,I'm developing an applet using java3D. the basic idea is to display spheres on the canvas and when a user picks a sphere, it is translated to the origin and a different set of spheres is displayed. i could add children to my BranchGroup at runtime, but could not display them properly. ...
3860 byte By
e2nua at 2007-11-27 2:24:04
I have a lil problem implementing the mouseClickEvent() of the mouseListener in my code. I'm creating an application that draws a line between two selected shapes if certain constraints are satisfied. So far , I have been able to draw lines some how in the code but i need to implement this in ...
I was wondering what the absolute fastest way to grab the darkest pixel(grayscale) in a picture. Or if anyone could give me any ideas on how one would go about making a fast dark pixel finder.
479 byte By
akitoa at 2007-11-27 2:26:27
Hello everybody!I have a problem with collision in java3D.I use WakeupOnCollisionEntry. It's ok if an object collides an other.But if an object collides with a series of other objects, only the first collision is detected...I have found a message which explain that impossible ...
hi everybodyi am doing the encryption/decryption using AES(256bit key) using SunJCE provider following is the codeString key2 = "FFF3454D1E9CCDE00101010101010101";byte [] keybytes = key2.getBytes();SecretKeySpec keyspec = new SecretKeySpec(keybytes,0,32, "AES");My program is working fine but in ...
157 byte By
wr34ta at 2007-11-27 2:27:43
I woul like to adjust mixers volume such Master Volume, Wave Volume, Mixer, Microphone. How can I do it in Java Sound API?Thanks.
493 byte By
AP_javaa at 2007-11-27 2:27:54
Hi,I have written code for web base image viewer to performed some basic operations like zoom,rotate ,brightness.For that i have one class. I am calling this class methods for particular operation .Then taking modified image in buffered image.But main problem is that when i performed operation ...
262 byte By
Selkisa at 2007-11-27 2:28:07
Hi,I need your help, i work on a project and i need to use ARB shaders.I only find exemples using GLSL on the net and i don't know how to use ARB shader inside Java3D.Does anyone have an exemple to show me how to use it (sample code)
15043 byte By
alhairana at 2007-11-27 2:28:32
Hi all How are you This cods in GUI and Thrad 'smoole code Train and move i need if on Click to "Check" orlredy The Train crop upand i need BackTrain ;cooods ..import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.lang.Thread; public class TestT{public static void ...
Hi all,I am new to JMF.I have been asked to capture both sound and screen as a video.The source for audio could be from mic or software or operating system.Any help is appreciated.Thanks
1833 byte By
cup_joea at 2007-11-27 2:30:26
Hi,I am trying to upload a public key cert in .pem format to a MySQL database, using JDBC. Having read the cert out of a file successfully, as a String, I pass that String to an upload method. Since I had problems just uploading the String (in the values clause it translated to nothing, and ...
I feel like one of those people that calls into a radio station, "Hi, I'm a long time listener, first time caller, my question is..."I'm an undergraduate CS student working on a program that determines the primality of a number, and opted to use the Rabin-Miller test to check. On Wikipedia ...
625 byte By
cakea at 2007-11-27 2:31:29
Hi,I am trying to use:import javax.media.jai.PlanarImage;import javax.media.jai.Histogram;in my project but they cannot be resolved because I don't have them! I have downloaded several jre's but so far I have found no jmf.jar (though they contain a lot of other javax.media.* files)! Can ...
1184 byte By
cakea at 2007-11-27 2:32:19
Hi,This is probably more of an eclipse message so i am sure I will get slammed for posting it, anyway...I have set a path to my necessary jai_cor.jar files, though now it does not show any error messages, when i go to compile I get the following error message:Exception in thread "main" ...
I am trying to add support for .3gp and MP4 file formats in my application. I have used FOBS to achieve this everything works fine except that i cant hear the adio in he movie and only video is played.This has been a known bug in the FOBS and they have provied a guide to remove the issue. I ...
1170 byte By
vivinda at 2007-11-27 2:36:08
Hello,I am working on college抯 project & I am facing a problem , here problem is ask using simple example : /*<applet code="btnadd.class" width="500" height="500" > </applet> */ import java.awt.*; import java.applet.*; import java.awt.event.*; public class btnadd extends Applet ...
i have set of values of XYZ coord and the result of their RMSD(root mean square deviation),all these are stored in a file... so i need to plot a graph by reading this values from the file.the file content is shown belowX Y Z coords for model:1X Y Z coords for model:3Distance btwn the ...
Hi,.....for deploying a java application on a client system i need to check whether JMF is present on the client's system,as the application make use of JMF.So,how should i do this checking stuff through my application.
Hi,I have an Area and after some transformation I am trying to get the Polygon out of it. Does anyone know the best way to do it? Here is my code snippet:int[] tPointsX= {0, 0, 100};int[] tPointsY= {0, 50, 50};int tN= 3;Polygon triangle = new Polygon (tPointsX, tPointsY, tN );int[] sPointsX= ...
152 byte By
cky880a at 2007-11-27 2:39:50
Is there any way to find the center of a sphere object in Java3D?I'm not talking about a bounding sphere, just a sphere.Thank you.
605 byte By
VOPa at 2007-11-27 2:40:43
Hi,I have a little problem with MD5 in combination with subString.MessageDigest md = MessageDigest.getInstance("MD5");byte[] temp = (""+userID).getBytes();md.update(temp);String hash = (md.digest()).toString();md.reset();If userID is 512 then hash is [ B@182f0dbString dir = ...
260 byte By
Yann_LGa at 2007-11-27 2:42:38
Hello,I am trying to convert a grayscale image (pixelBits = 8 numComponents = 1) to an rgb image (pixelBits = 24 numComponents = 3).There are many tutorials to convert RBG to grayscale but not the opposite...Any idea ?Thanks.
3745 byte By
e2nua at 2007-11-27 2:43:39
I'm working on a code that allows a user click two similar shapes and then draws a line to connect the shapes. The code I currently have running just connects any two shape components clicked.How can I code my components to only connect similar shapes and further assign scores upon each ...
3434 byte By
carda at 2007-11-27 2:43:52
Hi - Good day to all :)I have two RSA key files(private key file and public key file) generated by Crypto++ 5.2.1: code here: void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed){RandomPool randPool;randPool.Put((byte *)seed, ...
188 byte By
spawacza at 2007-11-27 2:44:33
I can't test any transmision on one computer, I can transmit captured video to 127.0.0.1 but I can't receive it (unable to create sesion manager). Do I have to test it on 2 hosts?
Hello,I am having some serious problems in trying to get this workingso if u have any idea to get it working please help.Aim : I need screen shots of a movie, what that means is I need certain frames of the movie as images. Say for example, the first frame, the 20th frame, and the 60the frame, ...