create a key for AES from String

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

how to crop image in Java?

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 ...

Decrypting a byte-array who was encrypted by PBE

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) ...

error in running encryption/decryption using DES in Websphere Dev't Client

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 ...

get an off-screen thumbnail from a webpage

1645 byte By pmagundeza at 2007-11-27 9:38:24
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 ...

KeyStore load is Hang Up (SunPKCS11-GemSafe)

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 ...

Exception :JCE cannot authenticate the provider BC

1112 byte By LiuChanga at 2007-11-27 9:42:35
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 ...

XML Digital Signature Problem - Enveloping Signature

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 ...

Possible to get faster FPS with this code?

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 ...

splitting 3gp file in JMF

264 byte By HybridBoya at 2007-11-27 9:44:40
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......

check for liveliness of image captured.

188 byte By venkat24a at 2007-11-27 9:46:36
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.

Internal+External Data In One Digital Signature

454 byte By Frank_Natolia at 2007-11-27 9:46:59
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 ...

two java questions, JAR and MVC, please help

498 byte By ritchie_lina at 2007-11-27 9:48:23
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 ...

Installing the java unrestricted policy files outside the defualt locations

1586 byte By vinayss78a at 2007-11-27 9:48:42
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 ...

few questions?

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 ...

Raw Stream To RTP Conversion-- Help required

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 ...

Questions about PKCS11

681 byte By Iceberg05a at 2007-11-27 9:51:22
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 = ...

Emergency! Help with flicker in applet!

417 byte By OriginalSup3rmana at 2007-11-27 9:54:09
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 ...

Generating IVSpec from previous encryption operation

213 byte By kcook_stla at 2007-11-27 9:54:18
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?

jar file

319 byte By kvrnsatisha at 2007-11-27 9:54:24
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 ...

VIDEO CONVERSION AND EDITING SOFTWARE

563 byte By Aristotle001a at 2007-11-27 9:57:08
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 ...

Help with GUI 4 mapping

375 byte By barakyesha at 2007-11-27 9:58:48
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 ...

displaying a 2d overlay on a 3d canvas

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

How to capture and save voice from microphone

111 byte By raman_swia at 2007-11-27 10:02:42
I'm beginner to JMF. I want coding for capturing and saving voice from microphone. Plz anybody help me.

help with rotate

1803 byte By barakyesha at 2007-11-27 10:02:46
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 ...

Linux certificate store

408 byte By javarocktheworlda at 2007-11-27 10:03:38
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 ...

Want to translate a part of the Image to the center of the Image

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...

how to set fullsceen mode?

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 ...

Do I need to use repaint?

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

SOS

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 ...

Why has my Java3d applets stopped working on Vista?

420 byte By AstralVisualsa at 2007-11-27 10:12:30
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 ...

Polygon Line (Stroke Size)

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 ...

DataSink Problem

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 ...

to draw a blank image

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 ...

with multiple players only the first created is in the foreground

824 byte By gearheadgenea at 2007-11-27 10:16:05
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. ...

problem cryptography use the certificate from entrust

275 byte By dottorSlumpa at 2007-11-27 10:16:19
<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>

Urgent....capture a frame in sequence from webcam and Invert Frame display

354 byte By VishnuAggarwala at 2007-11-27 10:16:25
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 ...

Urgent Help Needed in drawing square wave!!!

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>

drawing a font on an offscreen image

2815 byte By digiboy86a at 2007-11-27 10:17:48
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, ...

Why a player cannot be configured?

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 ...

generating points that fall on the perimeter of an ellipse

638 byte By jakestera at 2007-11-27 10:19:31
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 ...

Need help to remove the non printable characters

492 byte By MK_selvaa at 2007-11-27 10:20:22
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 ...

Advanced Image operation

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>

Fobs4JMF problem

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 ...

How to convert BufferedImage?

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 = ...

construction of TDES key from 16 bytes

197 byte By buddy_boya at 2007-11-27 10:23:18
<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>

Simplified Animation

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 ...

capture an image from webcam

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>

Fade in and Fade out

114 byte By student@sunDNa at 2007-11-27 10:26:55
<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>

What is the difference between paint() and paintComponent()?

45 byte By ardmorea at 2007-11-27 10:27:44
<p>I always confuse by them?</p><p>Thanks</p>