multiconference server

377 byte By ali_velia at 2007-11-27 5:14:35
i developed a simple voip application using AVTransmit and AVReceive classes.i want to develop a simple multiconference application.for example 3 or 4 people will connect that server and they will see and hear each other.i dont know how to develop the server..if there are any one developed ...

CMSException: Malformed content

2768 byte By kahinaa at 2007-11-27 5:17:00
Hi,I am using bcmail-jdk15-136.jar and bcprov-jdk15-136.jar (within Eclipse WTP-1.5.3 and jdk1.5.0_11)When I send an email with a file attachment it works fine but when I try to send an encrypted email with file attachment by adding the following statement it does not work :MimeBodyPart ...

Drawing line from thin to thick

308 byte By williwa at 2007-11-27 5:19:04
I need to draw a line where some segments of the line is thicker than the rest.I can draw the lines, but I need some kind of smooth transition from thin line to thick and the other way around. I'm using generalpath and stroke to draw the lines.What is the best (easiest) way to do ...

How to load an RSA private key from a file?

608 byte By jgalzica at 2007-11-27 5:19:46
Hi,I'm a newbie in regards to the Security APIs and I have need to have an instance of 'PrivateKey' passed off to an library I'm working with (GData to be specific). My public key was generated with OpenSSL and is a 1024-bit RSA key encoded in an X.509 certificate in PEM format. I also have ...

Need help making my images drag more smoothly

6396 byte By doubleagenta at 2007-11-27 5:20:35
I'm trying to learn how to use the java2d api and I'm having a rough go of it.Currently, the following code should populate a jframe's container with some jcomponent's called 'card' (which basically draw a given image as a texture over a specified rectangle). Then you should be able to ...

Error in java code for controlling scorbot

793 byte By Theodorosa at 2007-11-27 5:24:40
Hello,I work with the educatonal model robot scorbot er III and recently found an interface written in java for controlling it. When executing the code as "java Remote" in my Windows Xp operational system, I receive the foolowing errorException in thread "main" java.lang.NullPointerException: ...

Image Merger

484 byte By dantevaza at 2007-11-27 5:25:15
Hello EveryoneI am working in a project where I must combine 2 image files:->The first one is an image that will contain a white rectangle, and some text (in black or in white).->The second one is a regular image The first one must merge over the second, and the text and the white ...

When use the MediaLocator and DataSource

219 byte By dreampeppers99a at 2007-11-27 5:27:13
When use this two ways to share data stream?The server when knows the client uses the MediaLocator ?The server when dont knows the client uses the DataSource ?What it over means?Thanks

Create circular shape from rectangular image shape

358 byte By venkateswara.desu@yahoo.coma at 2007-11-27 5:29:50
Hi all,Can someone tell me the way to convert rectangular images into circular images....In my project I need to show the world map (in rectangular) to spherical way...I mean image : www.mapsofindia.com/worldmap/worldmap.gifshould show like below: ...

transparent pic has white background

883 byte By aaa801a at 2007-11-27 5:31:05
im using thistry {Image image = (Toolkit.getDefaultToolkit().getImage(new URL(" http://scapeserver.nationvoice.com/2.png")));anIntArray1439 = new int[anInt1440 * anInt1441];PixelGrabber pixelgrabber= new PixelGrabber(image, 0, 0, anInt1440, anInt1441,anIntArray1439, 0, ...

Playing midi files in an applet?

871 byte By CamWa at 2007-11-27 5:31:18
Hey all,I recently finished up an applet game that I've been working on. Everything works as it should on my home computer, but I hear no midi sound on my work computer (wav files play fine on that computer, however).Additionally, I've had several other people test the applet, and some ...

Image Merger

483 byte By dantevaza at 2007-11-27 5:32:03
Hello EveryoneI am working in a project where I must combine 2 image files:->The first one is an image that will contain a white rectangle, and some text (in black or in white).->The second one is a regular imageThe first one must merge over the second, and the text and the white ...

AES Encryption

3524 byte By muhammadowaisa at 2007-11-27 5:35:38
I am trying to encrypt and decrypt some text using AES technique. Sometimes the code below decrypts fine with an exception of padding  at the end of the string. In some cases it doesn抰 decrypt the text (message) properly.If there is a problem in the code below, please identify ...

Java2D User to Device Space Mapping Very Slow

489 byte By minimikea at 2007-11-27 5:36:01
I'm drawing about a 1000 lines, sometimes much more, using Graphics' drawLine function.To scale them and shift their position I use Graphics2D's translate() and scale() functions.But drawing and redrawing these lines take awfully long time.Now, if do the mapping of the coordinates myself as ...

Problems with loading an Image (using Eclipse)

4151 byte By Pawa at 2007-11-27 5:36:49
It seems that I wasn't able to load an Image to my Java application.When running the programme, my Frame looks empty. Instead that it should include a picture named "tausta.jpg".I have succeed to load an Image when using in command prompt but in my new project with Eclipse i can't do ...

ViewingPlatform

349 byte By Batsupa at 2007-11-27 5:37:42
Hi, im starting with java3d and im using the simple universe. I set the ViewingPlatform by using the SimpleUniverse.getViewingPlatform.setNominalViewingPlatform() method. That sets the ViewingPlatform to view the x axis in the range from -1 to 1. How can i set it myself? I cant find any ...

Cipher.wrap and unwrap problem

1119 byte By cherrymana at 2007-11-27 5:38:00
Hi, I am starting on cryptography and tried to use Cipher for wrap and unwrap of key, but while unwrapping i get the exception - java.security.InvalidKeyException: The wrapped key is not padded correctly. KeyGenerator and Cipher is created with algorithm as "DES". Parameters are not given. I ...

setStroke() - Implementation Problem

6103 byte By Jona_Ta at 2007-11-27 5:38:26
Hello,Please, I have tried to increase the stroke size of a particular edge of a polygon but was unable to implement it.In the code below, I have both Washington and Tokyo in both String Array Elem1 and Elem2. When drawing, the link or line between both cities should be draw with a new bigger ...

Draw over an image

253 byte By dantevaza at 2007-11-27 5:38:30
Hi again. I need some help. I need to draw a white rectangle over a jpg file, loaded in the program. The white rectangle must be at the bottom right corner of the image file, and it has a fixed size. I'd like to get some help here. Thank you all

Little design issue

930 byte By ignusa at 2007-11-27 5:38:48
Im not very used to draw stuff with java but i will try to explain myself the better i canIm using netbeans to develop this project and im using threads... i have a class named Main which is a JForm and one named Panel (which is a JPanel).I use the panel to draw some stuff in the Jform.Main ...

Adding shapes at runtime

683 byte By Dytea at 2007-11-27 5:40:55
Hello fellow programmers,I'm also new to j3d, and I have a question about the creation of shapes at runtime. I heard it's possible to do this via a BranchGroup object.Now, the shapes I would like to add are lines, and they have to be positionned exactly. To position them on the coordinates I ...

Playing music in applications

1683 byte By Chris1234554a at 2007-11-27 5:41:29
I keep getting the Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space The error is at runtime.Here is the music code:public void startthemusic(){whatmusic = "wae.wav";playmusic();} public void playmusic(){try{URL hapfile = new URL("file:sounds/hap.wav");AudioClip ...

Slow painting performance (6 dukes)

6606 byte By CbbLea at 2007-11-27 5:41:55
Hi!I really, really need help...I've made a drawing applet where I can draw with a pencil and different shapes like rectangles, roundrectangles, circles etc on a JPanel (like a drawing board)All drawingobjects that are completed are saved to a model. The JPanel is then drawing all these ...

Help on strange painting behaviour

582 byte By smuhsia at 2007-11-27 5:41:57
I'm developing an application with JDK 1.6. Today the whole application (consisting of 5 different panels) was suddenly painted black (with borders and menus and all). Repainting improved it, but there still were some black spots.After restarting my pc it was ok again.Does anyone have an idea ...

Drag and Drop images in web application

416 byte By AP_javaa at 2007-11-27 5:42:05
Hi friends,In my application i want to drag image present on same page.And place them at new location on same page.Using this drag and drop operation i want to create tree like structure.When user click on save button the tree structure should get save in image file.I am not getting from where ...

Problem with using JMF audio over a network

22198 byte By Moridina at 2007-11-27 5:43:17
Hiya, I'm using IBM JMF code but I'm having problems trying to get it transmit data from the MediaTransmitter to the MediaPlayerFrame.I'm kinda new to JMF so I assume I'm missing something basis for why this doesn't work.Any help would be greatly appreciated.MediaPlayerFrameimport ...

Need Help Installing JMF

359 byte By SgtSpadea at 2007-11-27 5:43:27
I have read alot of other posts about problems installing the JMF for windows, and I have tried the solutions proposed but nothing seems to be working. After I install the JMF, it does not give me an error message, but when i try to import javax.media.* or create a Player in a program, I get ...

audio file conversion from WMA to WAVE

108 byte By nachimuthjaiprakasha at 2007-11-27 5:47:01
i need help to convert audio formate from wma formate to wav formate ..thank u.

JMF + Windows Vista

794 byte By the_luciusa at 2007-11-27 5:47:56
I tried my JMF software under Windows Vista and it didn't work as it worked in XP. So the first problem is that CaptureDeviceManager.getDeviceList does not work with any format (including null). Also new MediaLocator("dsound://8000") does not work(direct sound is not supported under Windows ...

elliptic curve cryptography

123 byte By kpvidyaa at 2007-11-27 5:48:14
what are the crypto products using ECC that are undergoing coding and implementation in the software industry today?

org.bouncycastle.cms.CMSException: Malformed content.

1926 byte By fulgericaa at 2007-11-27 5:48:32
Hello!I have an signed file xxx.p7mWhen I try to create a CMSSignedData object, I get the following error:org.bouncycastle.cms.CMSException: Malformed content.at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)at ...

SunPKCS11 Provider anomalous behavior

1690 byte By Luis.M.Costaa at 2007-11-27 5:49:01
Hi, I抦 testing a smart card, and it抯 manufacture PKCS#11 implementation through the Sun PKCS11 Provider. The smart card contains some X.509 certificates and the associated private keys.I access the certificates and private keys through the key store, but when using it to cipher I get an ...

This forum will be shut down in favor of the Java 3D forum on java.net

1337 byte By kevin.rushforth@sun.coma at 2007-11-27 5:49:48
Some of you may not be aware that the primary forum for Java 3D is on java.net (and has been for several years). The Java 3D team at Sun does not read this Java 3D forum on java.sun.com.Rather than continue to host two forums, one of which isn't actively being used by any of the Java 3D ...

FFT and sound formation

326 byte By ArikArikArika at 2007-11-27 5:50:40
Two questions.1) Does java have any FFT algorithm? or anything close? if not, I'll just try to make one (emphesis on try).2) If I have the frequency and amplitude of a wave, is there a way that java can convert my freqency and amplitude data into an actual playable sound file?Thanks for any ...

square thumbnails

287 byte By theboogster100a at 2007-11-27 5:50:45
Hi, I am trying to write a thumbnail program to create square thumbnails from an image. This would similar to thumbnails on flickr where part of the image is actually cropped out to create a square thumb. Any ideas or reference someone could point me to? Thanks!John

Odd Hex.encode behavior

1027 byte By jewellsca at 2007-11-27 5:51:46
Hi,Here's an easy one (hope, hope)I wanted to verify that my ascii to ebcdic conversion was going OK.So I place a Hex.encode into my code to print the buffer contents like so:byte[] buffer = cipher.doFinal(Hex.decode(hexIn.trim()));asciiString = new ...

Password choice for PBE

752 byte By r0ckaa at 2007-11-27 5:52:37
Hi everybody,I'm writing a little webproject which is writing encrypted texts into a database using PBE (with Jasypt packages) and displaying it decrypted. I'm using "PBEWITHSHA256AND256BITAES-CBC-BC" (BouncyCastleProvider).Everthing is working fine, but I have a question regarding the ...

want to display image from BufferedImage

955 byte By bhavin123400a at 2007-11-27 5:52:49
hi i just wanted to know that how do display and image from BufferedImage objectthis is my prog in which i am capturing the image of the screeni just wanted to show it on screenhow to do thatplzzzzzzzzzhere i sprogramimport java.awt.AWTException;import java.awt.Robot;import ...

AMR codec for JMF

287 byte By nick005a at 2007-11-27 5:52:58
Hello,I'm new to the forum, i didn't find a reponse in the forum (maybe i miss something)I need to play a rtp stream in a JMF application but the codec is unavailable.Does anyone know where to find a such codec to add to my JMF installation?Thank you

setRGB doesn't work. I have blank image

496 byte By aneuryzmaa at 2007-11-27 5:53:10
hello,I can't understand why setRGB is not working. I tried to create an image with only green pixels to test it. But it create only an empty image... why ?BufferedImage img = new BufferedImage(Width,Height, BufferedImage.TYPE_INT_ARGB );for (int x=0; x<Width; x++) {for (int y=0; ...

3 integers from ARGB integer

214 byte By aneuryzmaa at 2007-11-27 5:53:18
Hi,I use getRGB function to get an integer ARGB for each pixel of my image.ARGB = (byte) img.getRGB(x, y);How can I parse this value in order to have 3 integers R, G, B ?thank you

Simple encryption... need help...

482 byte By Doct0ra at 2007-11-27 5:53:34
hello friends,this may be a simple problem, but, as i m new plz forgive me...i have to accept three command line agrumetns like...name > stringage > integerdate > stringnow, i want to encrypt these data in a two different text files with two different encryption methods...and later i ...

problem when decrypting (is this a bug)

894 byte By java1357a at 2007-11-27 5:54:24
HiActually I resolved my problem but I wanted to know if this is a bug, report it to Sun, and also I want if someone encounters this problem, may be this thread help her/himI create a JKS file (keystore file) using keytoolkeytool -genkey -keyalg RSA -alias myalias -keypass kpass -storepass ...

Using JMF with SWT

219 byte By bharathga at 2007-11-27 5:54:59
I am developing a eclipse RCP application which makes use of the SWT toolkit. The application would be playing some media files. So i would like to make use of the JMF media player within SWT . How can I do this?

Problems with reading PNG/GIF images

689 byte By sbf2009a at 2007-11-27 5:55:42
public static void main(String[] args) throws IOException{File avatar = new File("Images/Avatar.PNG");BufferedImage yat = ImageIO.read(avatar);}Everytime I try to run, this portion of code, I keep coming up with cant read input file errors. I use Netbeans IDE 5.5 with Java 6u1 and I made the ...

Exception in decrypting using 3DES

4460 byte By A.Antonioa at 2007-11-27 5:55:44
hi all,i use the following code:public class Tool {public static void main(String[] args) throws Exception {String key = "2580FBBAD354EAADFB1CE31A9DB940B3B0E626209737F4B5";byte[] keyInByte = Converter.hex2ByteArray(key);DESedeEncrypter desEde;desEde = new DESedeEncrypter(new ...

Problems decrypting using "DES/ECB/PKCS5Padding"

1221 byte By sbhargava at 2007-11-27 5:56:06
Hi,I am using "DES/ECB/PKCS5Padding"// Key is stored in fileFileInputStream fin = new FileInputStream("CrypterKey.ser");ObjectInputStream oin = new ObjectInputStream(fin);Key aKey = (Key) oin.readObject();keys.put("FMCrypterKey.ser", aKey);// Initialize key and cipher on first accesscipher = ...

urgent help please!! decrypting a string recived from external device

855 byte By A.Antonioa at 2007-11-27 5:56:33
i'm using 3des, with ECB mode and PKCS5 padding to encrypt and decrypt a string with a secret Key.i get an encypted string from external device (remote pc). this string is represented with an array of 16 bytes.i pass this array directly to the method decypt.doFinal, but i get a ...

Invisible Plane?

9619 byte By Batsupa at 2007-11-27 5:56:45
I found something very wierd... i have a program that calculates a polynomical function from some points and draws it. It should represent a dome and i rotate it. But it looks like if there was a black plane at z=-20 and parallel with both x and y. When the dome rotates behind this plane the ...

How to access USB Tokens from Java code

680 byte By jorge.ortiz@tirea.esa at 2007-11-27 5:56:48
Hi,I need to develop an application which one of its requirements is the use of USB Tokens for storing certificates & private keys. USB should be accesed from Java code (actually, an applet downloaded from my site). I've read all these USB token devices are PKCS11 compliant and I know ...