126 byte By
Oleka at 2007-11-27 9:33:41
Hi,How can i create a Key for AES using a string?The length of the byte-Array must be 16 bytes.Thx
858 byte By
eyadoa at 2007-11-27 9:34:46
Hello,I'm trying to crop an image which is saved in the hardrive. But when I run the program it gives me the following error message:java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0I checked the original image and its width= 1280 and Hight=960. It seems that the ...
2626 byte By
Oleka at 2007-11-27 9:35:46
Hi,I have a problem with the decryption of a Object encrypted with PBE...Here is the encryption code:private PBEKeySpec pbeKeySpec; private PBEParameterSpec pbeParamSpec; private SecretKeyFactory keyFac; // Salt private byte[] salt = {(byte) 0xc7, (byte) 0x73, (byte) 0x21, (byte) 0x8c, (byte) ...
849 byte By
misyela at 2007-11-27 9:37:17
Hello! I have a code used to encrypt / decrypt a string (password). I have already tested it using Netbeans and it is working. But when I tried to add the java code to an existing web project using Websphere Development Client,, javax.crypto.* is not recognized. Then I imported JCE.jar. The ...
Hello everyone! This is my first post on this forums. I'm developing an application to get a thumbnail from a webpage, and save that thumbnail to a file. It has to be a "non-visual", off-screen appllication, because it will run on a machine with no screen. It has to render all, or almost all ...
1276 byte By
Cyrillea at 2007-11-27 9:42:28
Hello,I was trying to use my USB Token certificate with some lines of Java.But when it comes the line theKeystore.load() the application hangup and the CPU load stay at 100% until I press Contrl-C to stop the application.After that I've a try with keytool: keytool -keystore NONE -storetype ...
Hi all,I tried to encrypt some data using BC,when I load the privatekey and password ,an exception was throwed:Exception in thread "main" java.io.IOException: error constructing MAC: java.security.NoSuchProviderException: JCE cannot authenticate the provider BCat ...
983 byte By
zada_bha at 2007-11-27 9:43:26
Hi there,While i was running the sample GenEnveloping class, i got this error:>>java.lang.NoClassDefFoundError: java/net/URISyntaxExceptionat org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newReference(DOMXMLSignatureFactory.java:56)at ...
5806 byte By
Jasdara at 2007-11-27 9:43:31
This is a stripped down version of the code I've been using to run my game. It's basically a 1024x768 frame being run in fullscreen mode and scaled to fit any resolution with some 2d graphics put on top of it. On my machine I get 60 fps just like this, but it drops a lot as soon as I add any ...
I want to split a .3gp video into 2 separate .3gp file using java. so is it possible to do so? the .3gp file structure will also be a great help. i searched in google but did not find any suitable specification. thus if any one help, it would be great......
hai,i want to check if the captured image is lively taken from webcam i.e person's face lively captured or image taken from photo just placed infront of webcam and captured.
Is it possible to generate a single digital signature for both external data (a file) and internal data (XML metadata relevant to the file)? From the Java Digital Signature API documentation, it would appear that "detached" can handle external data OR internal "sibling" data but not both. And ...
1, how are .jar files used within java enterprise development?2 if an application ha1, how are .jar files used within java enterprise development?2 if an application has been written using MVC for the web what parts(classes) could not be reused if the application was to be transfered to a ...
In our application, we are making use of java based gpg encryption/decryption. For this we are using the Bouncy Castle library which provides a java implementation. For using this, it needs the unrestricted policy files for java. Scenario A: On my desktop I downloaded the policy files and ...
597 byte By
LLLa at 2007-11-27 9:49:57
hello guysfirst: Is it possible to save/write incoming RTP streams ( Transmitted video frames) to local file? plz help " code, hints, suggestion, .... ect"second: I m trying to mix Swing GUI "JMenu" with AWT component which JMF Player is using. The visual component of JMF ovelaps the Swing ...
386 byte By
Kalvin1a at 2007-11-27 9:51:03
Hi all. My project requires that i am getting a raw video stream e.g RTMP Flv Stream from Flash Media Server.Now i have to take this stream and convert into an RTP Stream (RTP Packetization) so that i can forward that to original requester.My module is working as an interworking unit.Any help ...
Hi,Everybody,when I try to access smartcard by pkcs11 ,I got a problemthe exception is :--Exception in thread "main" java.security.ProviderException: SunPKCS11 requires configuration file argumentand my code :public class Test {public static void main(String[] args) {String strPth = ...
I have used the bufferstrategy technique before and I know all about double buffering and all, but I normaly ama programming with Frames and Canvas instead of Applets. My applet is flickering as I update the images on the screen can a bufferstrategy be used? Can anyone help me solve this ...
Using "AES/CBC/PKCS5Padding" encryption; was thinking there was a way of obtaining a good random IV for the next encryption operation from the previous. Anyone know how to get this byte[] or parameter spec?
hi friends,iam loading a *.obj file in my program ...iam using import com.sun.j3d.loaders.objectfile.ObjectFile;error : cannot access com.sun.j3d.loaders.objectfile.ObjectFile;may be i need some jar file to place in classpath. can anyone send a link to download the file.with ...
I have recorded lots of INTERESTING videos while working as lifeguard this summer. Most of them are just 3 minutes raw AVIs of about 100MB in size. Because my digital cam does not have any built-in compression they are huge in size. I am looking for some Video Conversion and Editing software ...
hi all,i created a gui 4 mapping right now i have a clean picture which is implemented as a JPanel and i want to make the drawing on it ,can someone pls give me an example how can i put a little cruiser on it which will describe the sensor and how can i draw points on the picture which will ...
125 byte By
aaa801a at 2007-11-27 10:00:34
how can i display a image like a interfaceon a 3d canvasive tryed imageoverlay but it doesnt work for me
I'm beginner to JMF. I want coding for capturing and saving voice from microphone. Plz anybody help me.
hi,im trying to rotate a rectangle,but when im doing so it not appear where the first 1 did here is my code pls tell me what is the problem and how can i rotate it and its center will b where the first one is,thx.import java.awt.Graphics;import java.awt.Graphics2D;import ...
Hi All,i create one small application for signing and verification on windows.and when same application i try to run on Linux, it not show certificate in cert store. because cert store i specified is of Microsoft. keyStore=KeyStore.getInstance("Windows-My");So same how we do in Linux....?Plz ...
270 byte By
yatrika at 2007-11-27 10:03:55
I am developing a tool to zoom user specified area.For this I have bounds of the user selected area and bounds of the image. Now I want to translate center of the user spec. area to the center of the image...but dont know how to do this programmatically...
4301 byte By
Peregrina at 2007-11-27 10:05:41
how to set fullsceen mode for this player? import java.awt.*;import java.io.File;import javax.media.*;import javax.media.protocol.DataSource;import javax.swing.*;public class PlayFiles extends JFrame implements ControllerListener{private Container cont;private JPanel jPPlayer = new ...
199 byte By
ardmorea at 2007-11-27 10:06:24
I designed a Combobox, when I click one item, the code will plot the same polygon with a different color. The plot part is a separated method, do I need to use a repaint() method?Thanks
2559 byte By
terry261a at 2007-11-27 10:10:09
can anyone help me sort out the problem i have. i create a square and want to drag it to somewhere according to position of mouse. it works, but not what i want to. Here is the code, please have a look at it.import java.awt.*;import java.awt.event.*;import javax.swing.*;import ...
I made a collection of 3d applets a few years ago for my site http://www.astralvisuals.comThey work on XP, but when I test them on Vista, they don't work anymore.After the applet has printed out "applet started" the browser window crashes. Try the first applets on this ...
7353 byte By
Jona_Ta at 2007-11-27 10:12:58
Hello,A friend in this forum once helped me to sort out a problem in the code below. The problem then was that I wanted to increase the stroke size of polygon lines. The polygon points represent cities. The example then was based on 2 cities and the code worked. Now I increased it to 3 cities but ...
6326 byte By
Kalvin1a at 2007-11-27 10:13:08
I have been searching this forum for last 3 days and i have seen lots of topic about DataSink creation problem when we try to save an RTP Stream to a file.I am trying to save an incoming RTP Video stream to an avi file but not been able to do so. My code is.This is in one Class and Media Locator is ...
1189 byte By
mlipreria at 2007-11-27 10:14:41
Hello, my target is to draw a blank jpg image with established width and height.This is my code:public void drawShape(int w, int h){Graphics2D myG2D; BufferedImage bImg = new BufferedImage( w, h, BufferedImage.TYPE_INT_ARGB ); File imgFile = new File("C:\\Documents and ...
Using JMF 2.1.1, I can create multiple players. There's some fishy behavior though. The application has a JFrame, with a JTabbedPane. Within the JTabbedPane, there are a number of JInternalFrame's - each containing a lightweight Player.1. The first created player with always be in the foreground. ...
<p>I have cryptography problem using a certificate generate from csr on entrust site. The certificate's publicKey has a length 2048 bits while the privatekey has length 1024. The crypting is ok, while the result's decrypting is incorrect. why?</p><p>Do you can help me?</p>
hiAllI want to capture a frame by frame sequence from webcam and invert the frame image then display on applet continue and when display on applet i am able to capture image by button and save this image in applet ..............please help me out...........Urgent................... Mail me at ...
80 byte By
YoZza at 2007-11-27 10:16:55
<p>Dear Guys, does anyone know how to draw square wave? Thank you very much.</p>
I'm trying to draw a font on my own offscreen image but I had to implement a few tweaks to get it to work and I would like to know how to do it properly. Here's my code: private int[] getPrintMetrics(Font fnt, String txt) {BufferedImage bi = new BufferedImage(1, 1, ...
313 byte By
liankea at 2007-11-27 10:18:55
Hi all ...When I doing my project using JMF, I used a cloned dataSource(cds) to create a player:Player p = Manager.createRealizedPlayer(cds);but When I put the player in the configure state, it cannot be configured.Does anybody know why? Please ...
i need help on generating points that fall on the perimeter of an ellipse. i know that on a x-y coordinate plane, the equation x^2/a^2 + y^2/b^2 = 1 defines all points that fall on the perimeter of an ellipse. solving for y, i get y = sqrt ( (a^2 - x^2) * b^2/a^2). had the computer graphics ...
Hi all,I'm working in a webbased system in that users can enter a text which will be updated in the database.Currently the users are cutting and pasting the text from different software products (word, excel, word pad, etc.). This process sometimes copies the end of line or other unprintable ...
108 byte By
jilt3da at 2007-11-27 10:22:24
<p>Is there any way to produce resulting image only with contours of original source image?</p><p>Thanx.</p>
1889 byte By
kheusha at 2007-11-27 10:22:37
Hi everyone, I a m actually trying to make a media player using fobs4jmf. I've set both JMF anf FOBS4JMF up. I've also added jar files and placed fobs4jmf.dll in system32 directory then replaced original jmf properties file by the fobs4jmf one. Finally, I've configured JMFRegistry as specified ...
2347 byte By
liankea at 2007-11-27 10:23:07
hi everyone: I have created a player using cloned dataSource, after the player has been realized I try to convert a grabbed frame to bufferedImage. Unfortunately, I got Null value for the image. The codes are follow:public void takeSnapshot(){FrameGrabbingControl fgc = null;snapshotDs = ...
<p>Hi I have to construct the TDES key using the given 16 bytes. Here the third key in EDE is same as first key. Is there any method which takes the 16 byte array and generate the TDES-EDE key.</p>
730 byte By
tedbowa at 2007-11-27 10:23:31
Hi,I am new to Java 2D. I am mainly have done web/database java stuff.I am doing a project for friend who is a Neurologist. It is pretty simple really. I just need a ball to back an forth across the screen and need to be able to set the velocity of the ball to various speeds. It has to be as ...
158 byte By
namliwa at 2007-11-27 10:25:27
<p>hi, i'm trying to capture a image from a webcam, but i don't have a clue of how to do this, could anyone help me with samples or books.</p><p>thanks.</p>
<p>Hi,</p><p>I want to create an image animation.</p><p>Any idea how can I create fade in and fade out effect?</p>
45 byte By
ardmorea at 2007-11-27 10:27:44
<p>I always confuse by them?</p><p>Thanks</p>