to check wether the give point is inside a ploygon

336 byte By raghavan_26a at 2007-11-27 7:49:59
Hi all , I want to implement a draggable polygon in java I was able to Implement for a line and for a box . For a polygon the set of values we take are not constant and the shape is also irregular to deside too . Can any one send me java code or snippet how to implement it .Thanks in advance ...

How to convert an image to a byte array?

133 byte By Kenrrnny_Xa at 2007-11-27 7:50:04
recently, i am doing a school project, is there any way to convert an image to store in a 3d byte array?thanks for help

Cipher initialization - when?

1355 byte By marcelschoena at 2007-11-27 7:50:49
I have server code which creates data encrypted with a 3DES key and signed with an RSA key constantly (it's basically some custom authentication service). In the original implementation, I had only one static Cipher object of each type (3DES encryption, 3DES decryption, RSA signing), to which ...

what does realy it work ? class Config.java

2887 byte By garcota at 2007-11-27 7:52:53
i don't understand what it work and what is the content of din in DataInputStream din= new DataInputStream( bin);and content of dout in DataOutputStream dout= new DataOutputStream( bout);import java.io.*;import java.util.*;public class Config {private String pathPrefix;public String ...

how to validate certificate chain of cert stored in IE "Windows-MY" store

293 byte By jonhilla at 2007-11-27 7:53:08
hi i am developing an application where i need to access personal certificate from Windows-MY keystore of IE. but before using it need to validate the certificate chain of the certificate. how i can validate the chiain. if possible plz send some code reference.john

Player Media Time Listener

235 byte By muldergra at 2007-11-27 7:55:50
Hi all! I added a listener at my video player and i want to watch the media time of the player in order to show it at my own slider in real time... which ControllerEvent is it? Any example code?Thanx in advance! :)

How to remove an image after x seconds?

383 byte By deAppela at 2007-11-27 7:57:00
Hi,I've created an label with an image and what i want is that when i click on a button the image shows up and disappears after x seconds.I'm not sure if i should use new Thread or Timer/TimerTask for this.and i'm not sure how to paint something in the image that also dissapears at the same ...

H.264

44 byte By Jeyashreea at 2007-11-27 7:58:19
can JMF recognize H.264 video format?

Looking for RSA implementation using Java

291 byte By subhrajyotia at 2007-11-27 7:58:41
I am looking for RSA implemetation using Java . Can any one help me in finding one that I should be able to use out of the box .?Apart from that I also want to just port the encryption logic from java to java script. So if I get the same solution in java script than nothing like it .

DXF Reader

128 byte By Shafeea at 2007-11-27 7:59:01
Anubody has written or work on any DXF Loaders/ Readers..Need help cause I'm writting an application readinf DXFs

detecting objects

99 byte By aneuryzmaa at 2007-11-27 8:00:06
hello,how can I detect object in images using JAI ? how can I start ?thank you

Diffie-Hellman encryption/decryption help!!

470 byte By javaA-Za at 2007-11-27 8:00:46
I am new to Java Cryptography and PGP. I need to write a program to decrypt a file using "secret key ring" (".skr" file extension) and passphrase. This file is encrypted using Diffie Hellman algorithm (I have the public key that was used for encryption with me. Not sure if this is needed for ...

how to get CRL Distribution point of Certificate in Ascii String

553 byte By jonhilla at 2007-11-27 8:01:01
Hii have to get the CRL Distribution point from the certificate. i have to download the crl from the url in my application. fro that i need to read get the URL for the CRL.i am able to get the byte[] array of of the CRL Distribution Point. But dont know how to convert the byte array to Ascii ...

Sign (smime) javax.mail.Message

277 byte By czakoa at 2007-11-27 8:01:08
hi !I would like to sign created Message object. I know i have to use SMIMESignedGenerator from BC, but i need to calculate hash in my own way. I can;t figure where it is made in this BC class. I want to return javax.mail.Message object. Please help !czako

java3d 101 question

11189 byte By marco_wua at 2007-11-27 8:01:24
Dear all, I start to learn java 3d. I am trying to put multiple thing on one graph. I have no clue why the sphere is black in color, even I have set the appearance to be blue. Please help me to read the following code and tell me what problem on the sphere part. Thanks . I hope the picture can ...

getBytes() - Encoding Style problem

599 byte By George_Azzopardia at 2007-11-27 8:01:29
Hi people, I need to encrypt a password using SHA algorithm through the MessageDigest object. Initially, I need obtain the bytes of the password String in order to pass it to the update() method of the mentioned object. The problem is that the getBytes() method return different values on ...

Capturing audio from soundcard!

4572 byte By Pasteleiroa at 2007-11-27 8:03:57
Can anybody help me? When i compile this code no problems appears, however when i execute the program this is shown to:Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.c:\Sun\SDK\jdk\bin>java JCapturejavax.media.NotConfiguredError: setContentDescriptor cannot be ...

JMF

62 byte By Jeyashreea at 2007-11-27 8:05:09
What is the major difference between JMF1.0 and JMF2.0?

how to use other trusted cert store apart from defaut cacerts

207 byte By jonhilla at 2007-11-27 8:06:39
dear allin my application, i have to use my own certificate store for handshaking, while making https connection at runtime. not default cacerts. which system property i have to set. jon

Drawing a line, handles, resize, dragable

613 byte By urddda at 2007-11-27 8:06:45
Hi,I would like to draw a line on a JPanel. The user would click and drag to draw it.If the user clicks on the line, some handles should appear at both ends of the line. The handles disappear if the user click elsewhere.By dragging a handle around, the user can resize the line.Lastly, the user ...

transparent images at same position

295 byte By SFLa at 2007-11-27 8:06:53
I would like to add some transparent images on top of each other at the same position - the images will have the same size.Is this possible? I took a look at the Java2D tutorial but didn't find information to this topic. Could I add all these images into one JPanel?Thanks!

application running on machine with jdk but not with jre

300 byte By learn_ja at 2007-11-27 8:08:45
Dear alli had developed a web application for sign & verify. i am usign Internet Explorer as browser. its working properly on the system with jdk1.6 installed(even on network). but when i try to run the application on the machinewith jre1.6. its not running, thanks for ...

connect points to get shape outline

449 byte By jdevp3a at 2007-11-27 8:09:34
I'm working on a magic wand tool. I can identify the points on the edge of an image. However, I cant' find a way to connect all those points to form the shape outline. I tried to use 'GeneralPath' to append each point but what I got was a filled shape not the outline of the shape. I think ...

Stroke changing size!

235 byte By J_newBiea at 2007-11-27 8:09:41
Dear all,i am now facing this problem: i have a quadratic curve and i want that the stroke size decreases from example from 8pt from P1 to 6pt to P2.Is it possible in your opinion?Thanks a lot.Giorgio

Help me creating datasource from inputstream please its urgent

10320 byte By amjadkhana at 2007-11-27 8:11:14
Hi i want to create custom data source as i have read in different post and also on sun site so i tried to create one one for my self actually i was going to get stream from tcp port. using socket programming i save the input stream into file and played and its working fine and then i transfer ...

Problems with a clock element

2263 byte By Velligisa at 2007-11-27 8:14:17
Good Morning,I just need your advice. I am trying to code a clock element with the java2d. What i thought about is just a string that is repainted each second or minute, depending on the format of the time.Of course, I don't want to block the main thread with this task, so i tryed to put it ...

open certificate from browser keystore

277 byte By learn_ja at 2007-11-27 8:15:19
dear all i my application need to open certificate from windows key store to show the user. i can open certificate in .cer file using .exec("cmd .cer file name"). but i don't know how to open a certificate in keystore(say "Windows-MY").thanks for ur help.

how Can we do 2D animation using java.?

276 byte By Avinash.Ka at 2007-11-27 8:15:52
hello friends,I am new to java 2d and swings application.I have great Interests in java Desktop Application and java games. I see many upcoming desktop apps & mobile/desktop games in java . which indeed i think is a new career option. what say?

Captuting a still image from a video cam

193 byte By Gunbuddya at 2007-11-27 8:16:52
I need to know how to capture a still image from a video cam using java. I'm in a middle of a project and had to stuck due to this matter. Can somebody please help me...Thanks!!!

Video Segmentation Application

725 byte By soligoa at 2007-11-27 8:17:59
Hi all!we are trying to develop an app for video segmentation, specially using a region growing algorithm. we have some questions, let's see if anybody can give us some advice:1 - we are checking JAI libraries. do you think we can get something from them? is java the right language to do ...

Graphics error

1568 byte By Sideina at 2007-11-27 8:18:01
I am trying to draw a photograph in a JFrame with some other information. I set up and load the Image and draw it to a buffered image. When I go and get the graphics from the panel I want to draw to, I get null back. My code look like:backbuffer = new BufferedImage(photoPanel.getWidth(), ...

How to know if a JButton is being pushed ?

298 byte By Fred244a at 2007-11-27 8:18:05
I use a JButton. Somewhere in my code I want to know if the button is currently pushed or not. How can I do that ? isSelected method just works for toggle button, not for my button. I can't find any method that says if the button is up or down...Message was edited by:

BufferImage Help

18471 byte By Dishala at 2007-11-27 8:18:09
Hi can someone please help me fix my program? I've been working on it for the longest time and I dont know why the BufferedImage does not work. I'm quite sure I implemented it right. Can someone, anyone please help me out? import java.awt.*; import javax.swing.*;import java.awt.event.*;import ...

Unable decrypt more than 63 charactes

638 byte By praveen80a at 2007-11-27 8:18:16
I'm using Base64 encryption & decryption. I am storing encrypted DB URL in database. After reading from database I'm decypting the URL.In decryption, It's throwing following exception.Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting ...

Not able to create Cipher object

280 byte By buddy_boya at 2007-11-27 8:22:49
Hi I am trying to create a cipher object in SunJCE version 1.5, but i am getting the following error when I am trying " Cannot find any provider supporting RSA/None/OAEPWithSha1AndMGF1Padding"Cipher cipher = Cipher.getInstance("RSA/None/OAEPWithSHA1AndMGF1Padding");

How to generate a CBC MAC

77 byte By buddy_boya at 2007-11-27 8:22:54
Hi can any one help me how to generate CBC DES Mac in SunJCE provider.

Its Urgent plz!!!

502 byte By javarocktheworlda at 2007-11-27 8:24:08
Hi All,i m creating one web application(JSP) in which i try to display certificates on Cert Store client machine in JTable with the help of applet and swings.i connect JSP wid applet.bt i get this error"access denied (java.security.SecurityPermission authProvider.SunMSCAPI)".i dont understnd ...

Drawing line, wave etc... According to equation?

757 byte By Avinash.Ka at 2007-11-27 8:24:12
Hello friends,I was playing with graphics 2d and i require some help.how to draw onto the pixel.?I tried g2.draw((Shape)new Point2D.Float(x, y));here x ,y changes according to an equation.but i got exception.how can we draw on to a specific pixel.g2.draw(new Line2D.Float(x, y, x, y));gave me ...

Encoding audio as ogg/speex

1076 byte By alexjalexja at 2007-11-27 8:26:43
Hello, I have a java applet which currently either captures audio in a ByteArrayOutputStream or writes the capture as a PCM wave file. I want to be able to encode the data using Speex, for playback and/or saving for use later. I've looked around the 'net and havent had much luck finding ...

Viewer's position

167 byte By Stefan123a at 2007-11-27 8:28:16
How can I get the viewer's position in the virtual universe? I want to do this inorder to save it for the next time I open my program.Thanks in advance.

Adding Multiple jpg files into one jpg file

211 byte By vjba at 2007-11-27 8:29:03
Hi Does any one know how to add multilple jpg files into one file. Example:aa.jpg|bb.jpg| > d.jpg ( containing aa.jpg , bb.jpg, cc.jpg)cc.jpg|Thanks VJB

Speeding up an program to create a mandelbrot set

1642 byte By TrompeLaMorta at 2007-11-27 8:29:30
Hi,For fun I decided to create code to paint the mandelbrot set onto a canvas using the Java2D API.Unfortunately, if I try making the canvas large (e.g. 800x600 pixels) refreshing is really slow.Is there any way to speed this up? Every time I move / resize / do anything, the screen repaints, ...

Not able to create Cipher object

386 byte By buddy_boya at 2007-11-27 8:31:24
When I am creating the following cipher object it is running successfully.Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding");I have to do RSA OAEP encryption which of the cipher object should be used.Cipher.getInstance("RSA/ECB/OAEPWithSHA1AndMGF1Padding");(runing in SunJCE version ...

How to get the last 32 bits in ANSI X9.19 MAC generation ( very urgent )

662 byte By buddy_boya at 2007-11-27 8:31:29
I am trying to generate the MAC of 256bits of data according to ANSI X9.19 standard. I am trying to do this in the following way1) Encrypt the whole 256 bits using DES in CBC mode ( blocksize=64bits and hence 4 blocks)2) Taking the last 8 bytes (i.e., last 64bits) I am decrypting it with DES in ...

how to write text over images.

142 byte By chaithubtecha at 2007-11-27 8:31:59
hello ,i am new to java 2di want to write text over images using java .can you people guide me.thanking you

How does one choose which microphone/line-in to capture from

2214 byte By wheina at 2007-11-27 8:32:32
I'm working on a program that will record audio from one or more sources. I've got it so that I can list all the TargetDataLine objects for all of the Mixers on the system at runtime. My confusion comes when I try to determine which TargetDataLine is mapped to which Port? If I have two ...

Drawing character inside rectangle

330 byte By verlustameliaa at 2007-11-27 8:32:41
Hi!I have the following problem. I have a string and my task is to be able to draw every character of the string in every rectangle. For example I have a string:String = ("GCATCGCAGAGAGT");So now I will have 14 characters inside 14 rectangles. My question is how to do that? Please help me to ...

How to encode datastream

437 byte By madhu84a at 2007-11-27 8:32:56
Hello guys please help me in my project ...In my project i need to record the incoming data stream which is in ULAW/RTP format ..I don't know which format will be supported to wright it in a media file ...I use data sink to wright it in a file ... as it not supporting the format i couldn't do ...

OCSP based certificate validation

531 byte By MadalinCosmaa at 2007-11-27 8:33:07
Hi all,Is there someone who can help me with OCSP in java. I need to implement certificate validation on server as part of authentication process in a j2ee environment. I'm thinking that the process should look like this:1. the client will upload its certificate2. the server will receive the ...

please help,,, i'm facing a problem with JPEG

3111 byte By amanjpro@yahoo.coma at 2007-11-27 8:36:28
i'm trying to resize JPEG image, about (8-12 MB) to a small size image (about 400 KB..) but every time... apears to me... an error message (Java Memory heap)....or, if i small the output size, the result should be an image not seems like the original...for more information i'm using this ...