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

apache xml signature - load and sign pre calculate SignedInfo

448 byte By 2407500518951768323a at 2007-11-27 8:06:50
Hallo to all.I'm trying to sig an xml file (DOM using java apache xml security api. I'd like to perfom sign operation starting not from all document but just from loading SignedInfo with the digest value and sign it.Does anybody know if it's possible and how?I took a look at apache xml ...

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

javax.comm.properties and win32com.dll

2021 byte By monk3ya at 2007-11-27 8:14:58
HiI have tried searching the forums with no luck, and googleI there a workaround or a solution to not having to place the javax.comm.properties file and the win32com.dll file in their respective forlders?I can get access to the comm ports and everything works fine if i put those files where ...

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.

Certificate name != hostname -> does not throw exception!?

988 byte By eddiecjchianga at 2007-11-27 8:23:36
Hi all,When a certificate's subject name != hostname, a hostname not match exception should be thrown.But this is not so in my case, could someone provide me some hint?I am suspecting if it's got something to do with that I am using a truststore or security policy...The configuration ...

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

Where DES comes into picture in SPNEGO implemented in Web application

316 byte By srini.ammaia at 2007-11-27 8:25:48
i am trying to implement SPNEGO in web application since the IE is supporting SPNEGO . Client is the IE and the server code written in java. basic things are working. now i have doubt of where this mutual authentication and DES encryption comes in this scenario... pls anybody..help me in ...

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

java.io.IOException: TLS SSLContext not available

3639 byte By Arun_P_Johnya at 2007-11-27 8:30:23
Hi all,I'm new to https and SSL. I had my eclipse configured for non-ssl mode and working fine. now I'm trying to change my tomcat to HTTPS.I created a new certificate using the keytool and gave the password changeit. I found the .keystore file in my user home directory.I added the following ...

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

CRC32

232 byte By Moses84a at 2007-11-27 8:34:04
I need to find a way to duplicate java's CRC32 implementation for C# in Microsoft Visual Studio. Does anyone know of a way to do this? There are other CRC32 implementation out there but none that give the result that I need.

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

SSL/TLS Cipher Suites

470 byte By oli004a at 2007-11-27 8:37:11
HiWhich is th most secure SSL/TLS Cypher Suite at the moment.I guess it's one of these:TLS_RSA_WITH_AES_128_CBC_SHATLS_DHE_RSA_WITH_AES_128_CBC_SHATLS_DHE_DSS_WITH_AES_128_CBC_SHAprobably:TLS_DHE_DSS_WITH_AES_128_CBC_SHAAm I right?otherwise which is the most secure (without kerberos or ...

Problem with display an image on JFrame in Java 6

1515 byte By raf306a at 2007-11-27 8:39:52
I'm trying to display an image on JFrame in this way:1.) I'm creating a variable in the class:private Image imgSpeaker = null;2.) I'm overiting the paint method: public void paint(Graphics g) {super.paint(g);g.drawImage(imgSpeaker, 330, 230, null);}3.) In the constructor I'm using this ...

Getting rid of image background?

140 byte By nullbyte00a at 2007-11-27 8:40:18
How would I go about getting rid of the background of an image? If that's not possible, how would I make the background transparent?

Unable to get the encrypted sign in Outlood and Thunderbird

4822 byte By purplenovaa at 2007-11-27 8:41:15
I write a program that encrypt an email with text content and attached file.When the email is received:- On MS Outlood 2003: There's no content in the email and have no ecrypted sign.- On Thunder bird version 2.0 : I can see the content and the attachment file but still have no ecrypted sign ...

Rotate Image Created with createImage() ?

3242 byte By L4E_WakaMol-Kinga at 2007-11-27 8:41:38
I've been looking around online for a way to do this, but so far the only things I have found are 50+ lines of code. Surely there is a simple way to rotate an image created with the createImage() function?Here's some example code with all the tedious stuff already written. Can someone show me ...

Checking the parity of a byte

111 byte By buddy_boya at 2007-11-27 8:41:40
Hi I have to check for odd parity of a byte. Can any one suggest an efficient way to solve this problem.

ask for eToken password only when try to sign

708 byte By learn_ja at 2007-11-27 8:43:09
Dear alli am developing an signing application. i need to display all the certs stored in "Windows-MY" store of IE. its working but when it finds a cert which was stored in eToken,(but right now the token is not plugged) it pops up password dialog box. if one cancels the dialog box for password ...

Problem with Acegi and HTTPS

1147 byte By tamria at 2007-11-27 8:43:13
I use spring framework acegi-security-0.9.0 vesrion and tomcat 5.5. I want use HTTPS for login page. my acegi configuration file contains following code :<bean id="rootChainProxy" class="net.sf.acegisecurity.util.FilterChainProxy"><property name="filterInvocationDefinitionSource"> ...

Fast screen drawing from memory bitmap source

394 byte By markPa at 2007-11-27 8:43:36
HelloI have got pixels (frames) coming out from frame grabber that I wanted to display so that I could get higher framerates than using standard method (about 5 fps):i = createImage(new MemoryImageSource(width, height, pixels, 0, width));g.drawImage(i,0,0,width,height,null);Anyone knows a ...

How to record a datasource

347 byte By madhu84a at 2007-11-27 8:43:49
Please help me guys ...in my project i need to record a two way audio sound ....i use jmf , rtp and processor to play the audio and transmit it ...but now i need to record the sound fromthe mic and also recordthe sound i hear in the speaker ...its like a call recording ....please help me ...