Recent update: 2008-5-9

Java 3D[TM]

340 byte By simaka at 2007-12-7
How do i retreive zcoordinate from the canvas3D. if i am using mouse listeners..then i could retrieve only x and y coordinates. In short..i want to retrieve x,y and z coordinates..from the screen..by using mouse.One more thing i want to know...how to draw an arc in java3D..so that i could place ...

Improving performance via buffered image

692 byte By LloydRShove at 2007-11-21
Hi, I'm new-ish to java2D and have a question on improving the performance of my not massively graphics intensive app.Basically at the moment I do all my drawing by subclassing a JPanel, overriding the paintComponent()method and drawing straight to the graphics object passed in. my question is ...

An doubt about Sun PKCS#11

527 byte By Iceberg05a at 2007-11-15
Hi , everyone I had an doubt when I read "Sun PKCS#11 Reference Guide". here is the url: http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html I found these codes: KeyStore.Builder builder = new KeyStore.Builder("PKCS11");the question is I cannot found such a constructor in class ...

Out of memory error

343 byte By pardon_gardena at 2007-11-15
Hi all,I am currently developing an application which displays the interior and exterior of a building at my university. However, there is a problem with the amount of memory I am using and am wondering whether there are any techniques to cut dwon the amount of memory required to run the ...

Javadoc for JMF

129 byte By qwertyscara at 2007-11-15
I downloaded the guide, but I can't find Javaoc documentation for JMF, to have a quick reference, does this Javadoc exist

Player can play mp4 if i install fobs4jmf?but

197 byte By capea at 2007-11-15
i install fobs4jmf.and Fobs_jmstudio.exe worked well with mp4 as well as jmstudio.exe.but when i use some code to player mp4,it can't work.and it can work well with other format.why?

Daniel

85 byte By zeustacioa at 2007-11-15
hi allhow can i edit the text within a JTextPane ?please help me

Image corrupted sometimes

8205 byte By kmthiena at 2007-11-15
Hi guys,I am sorry if this is an not suppose to be the place to post my question but I can't find any place to ask. I am using ImageJ 1.37, and I am using Jboss 4.0.4 running on CentOS and also using jdk 1.5.0_08.Below is my code:package com.stufftolet.util;import ij.ImagePlus;import ...

Rebooting when install JMF

376 byte By sapeyesa at 2007-11-14
HI. I installed new release version of JDK . and reinstall the JMF. but i met the trouble. I started installing jmf and seem all files copied. and a console windows pop up to initialize environment then my computer Rebooted.. lol How did you install JMF in JDK6 ? or this is other problem ? ...

Play Streaming Audio

6193 byte By see-seAa at 2007-9-25
I'm busy designing an app to play audio from a link. The audio is being streamed by a Shoutcast server. The link I have been given is ' http://live.rmr.ru.ac.za'. I've got the following code so far:// Read sampled audio data from the specified URL and play it private void ...

Video is not captured in Applet under redhat linux.

2728 byte By Ajit_Suranaa at 2007-9-24
Hi!uname -aLinux 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linuxand whenever i m running my code for start and stop the webcam, i m finding a error/exception as:javax.media.NotRealizedError: Cannot get visual component on an unrealized playerat ...

Creating 2D Graphs

531 byte By Ronaldinhoa at 2007-9-24
Hello all,I need help plotting a graph in java in a 2D plane (3D later on... but baby steps). I'm just trying to learn the basics and how to draw lines and form simple shapes (triangle, squares, other polygons) using java. Ultimatley, I'd like the user to enter the number of vetices and the ...

Webcam Functioning as Barcode Reader

601 byte By nhoryela at 2007-9-24
Hi! i am a student and undergoing an on the job training in a public agency here in the philippines and my task is to create an application/system for the agencys' Daily Time Record Using the BarCode' . The agency doesn't have a barcode reader and the request would take too long such that my ...

VCR functions for video streaming?

199 byte By m_n_suha at 2007-9-24
hi am currently working on a near video on demand system. How can i perform Fast-Forword and Rewind at client side of the system while a server is transmitting video to that particular client?

Everything about Palette

81 byte By LOBSTERONEa at 2007-9-24
What is Palette ? How to apply the palette of one image to another image ?

Making my DataSource

451 byte By timoboya at 2007-9-24
this error appear to me while i am running my datasourcejava.lang.NullPointerExceptionat com.sun.media.PlaybackEngine.doConfigure1(PlaybackEngine.java:224)at com.sun.media.PlaybackEngine.doConfigure(PlaybackEngine.java:193)at ...

New JMF bug?

13110 byte By tony_ita at 2007-9-24
Hi to all,I'm developing a videoconferencing app, by using client-server architecture.Today i get the following error message, after i closed my app by pressing <CTRL>+C in the DOS Prompt.Perhaps is a new JMF bug, 'cause i never found any news regarding this particular dll ...

Exporting resulting Applets as jpg,gif or png

314 byte By -gibarda at 2007-9-23
Hello, i am currently working on an applet, included in a webapplication.The insurance agent make a drawing of an accident within this applet and i need to export the result as a file. Does anyone know how ? is this even possible with applets ?hopefully someone can help me ...

KeyAgreement and Blowfish

238 byte By Tastea at 2007-9-23
Hey guys!Can anyone give me an insight or example where KeyAgreement class is used to generate Blowfish key.Coz I'm only able to generate secret key using DES and I don't like DES becoz of its flaws.Thanx in advance

decoding dtmf

836 byte By soft.pradeepa at 2007-9-23
hi all,i need to write an application that listen for DTMF tones fromstandard audio input (from the mic) and execute an action depending onthe digit extracted from the DTMF tone. I took a look at JTAPI but i don't have any telephone in this context, i just have to analyze a normal soundsignal ...

About security providers

732 byte By timberlangmana at 2007-9-23
Hello,When I donwload code from security providers (such as BouncyCastle), and put the package in the directory of the class that is using the code, it still doesn't work. This occurs because I have to move the appropriate .jar file in directory /jre/lib/ext/ in order for the code to compile ...

Is it possible to have a progress bar on a J3d-applet?

234 byte By Eyvind5a at 2007-9-23
I wonder if it is possible get a download progress bar to work on a J3d-applet. I have to do this with a JProgressBar, which is a Swing component. I have heard that it is hard to get Swing to work with Java3d. Is this the case?

Record mp3

51 byte By jonttu5a at 2007-9-23
How can I record audio to mp3 files in Java?

A Screen Capture Devicefor JMF?

217 byte By LRMKa at 2007-9-23
I want to build a capture software using JMF. I there alredy a Screen CaptureDevice developed for JMF which I can use with CaptureDeviceManager? If yes please let me know where to get some info about it.

Hello! I coluldnt view the image

2726 byte By vivekanand_d at 2007-9-22
Hello,Iam new to Java programming and Iam trying to write a program in which I want to paint over an image and have to save that image as a jpeg file and I've searched the forums for examples I got some ideas and with the help of those I tried a program which draws ,and saves the file as a ...

Can RTP listening for unknow remote port?

339 byte By lhshyong at 2007-9-22
Hi:now i try to build one receiver, but i dont know which port the remote will use to send the stream to receiver... i only know the host ip , so is it possible to do that.? so can start the receiver without specific the remote port.? cause the server will use port randomly to send ...

Background Images (and images in general)

1725 byte By Lordmaiku at 2007-9-22
I have a JFrame and I would like to paint a background image onto it. The problem is that I still need to be able to place other images and Swing components on top of that image. I have succeeded in reading and displaying the image (in what seems to me an overly complex manner); it is the ...

SMIMEEnvelopedGenerator: Unsupported keysize or algorithm parameters

1087 byte By geoffrey3 at 2007-9-22
[This is a synthesis of previeus posts, with new test results]I did the following things in sequence:1) Use BouncyCastle's API's to symmetric encrypt with AES and asymmetric with RSA: no problem.(Without the unrestricted security files installed)I used a custom format2) Switched to ...

What is best algorithm for PBE? Does 3DES still cut it? AES avail?

1467 byte By bbatman at 2007-9-22
I have a nightly backup process for of all my critical data, which generates a zip archive. The final step is that I ftp this file to a remote server site. For security, I have been encrypting this zip file before sending over the wire. (If anyone is seriously interested in the precise java ...

got same encrypt text

2349 byte By alex80frXX at 2007-9-22
HiI just want to encrypt a string..that's all!! but every time i got the same encrypt text.thanks for help. import java.security.InvalidKeyException;import java.security.NoSuchAlgorithmException;import java.security.Provider;import java.security.Security;import ...

i have a problem with rect2d anybody can help?

287 byte By javacahili at 2007-9-22
i want to draw a rect by using a line like rectangle2d.Double(50,50, -30,30);however java is drawing it like : rectangle2d.Double(50,50,30,30);however i have to draw it other direction(left to right).anybody can tell me how i can do that.

Certificate Generation

236 byte By amrut99 at 2007-9-22
I am developing a certification authority in java. Please help me out. I want to know how a certificate can be generated, the algorithms and some references. I will be very greatful to you if you help me out.Regards

about cylinder ?

277 byte By pandanvn2005 at 2007-9-22
I want to draw 3D line from point X and point Y. I used LineArray but not like 3D so I used cylinder but I don't know how to create a cylinder to link point X and point Y ? And how to move a cylinder from point X and Y to point X1 and Y1 ?thanks!!!

text file on rtp

116 byte By koppolaa at 2007-9-22
Hi,can i send text file as .txt or .doc on rtp sendstream?how can I do it?thanks so much

Loading large JPEGs usinga JAI

852 byte By colinbarretta at 2007-9-22
I am loading images using JAI. I first load the image into a RenderedOp class and I then get the bounds of that RenderedOp before I put it into the DB. I am monitoring the tile caching using the TCTool. I am able to load large TIFF files (128 MB) no problem. However, when I try to load a ...

DES via 3DES key

407 byte By aivar8a at 2007-9-21
Hello! I have to perform next operation: D = DES (x)[y] where x is the left side of 3DES key and y is 8 byte block. How to make DES encryption when I have a 3DES key? DES operation needs 56 byte key and 3DES 112 or 168 byte key. Do I have to first construct a 3DES key, then get first half bytes ...

LineStripArray : please help....

935 byte By compaq12a at 2007-9-21
hi and hoping y'all are having a very good day.im very new to java 3D.i dont quite understand the portion below. private GeometryArray keyFrame0() {int[] counts = {7, 5, 2};LineStripArray geom = new LineStripArray(14,GeometryArray.COORDINATES| GeometryArray.COLOR_3,counts);float[] coordinates ...

Is JMF still alive?

1166 byte By Urmecha at 2007-9-20
Hi, the actual Version 2.1.1c, but except of some bug changes the version (2.1.1) hasn't changed for over one year and on the official homepage you can read this:JMF 2.1.1b Available, 29-Aug-02:JMF 2.1.1b is now available for download. This release fixes a few critical bugs when running with ...

How to get RAW data from Buffer Object

450 byte By wpguo1a at 2007-9-20
Hi,I need extract RAW data from the received stream to do speech recognization. My idea is to use the Custom DataSink, available at : http://java.sun.com/products/java-media/jmf/2.1.1/solutions/DataSourceReader.htmlI am trying to extract RAW data from readBuffer, but the format is ULAW/rtp, the ...

Passwords and DES

3225 byte By raduha at 2007-9-19
Ok, so here's the problem. I try to encrypt a simple text using DES and a password to generate the encryption key. Looks like the passwords have to be 8 characters long (shorter passwords generate an exception and longer passwords are ignored after the 8th character). The key, however, is ...

SimplePlayer don't run.

1436 byte By Soona at 2007-9-19
HI,I download the example code of PlayerApplet.java from sun programmer guide. I can compile this file. However, when i try to use my browser to open the html page the display the applet, i see the error in java console saying java.lang.NoClassDefFoundError: javax/media/ControllerListenerat ...

Can you encrypt a JAX-RPC message?

223 byte By joeqa at 2007-9-19
We are designing a new messaging architecture and new to JAX-RPC. We are required to use AES - does anyone know if the current implementation of JAX-RPC allows you to apply AES to the whole and/or part of the stream?

Problems Capturing Audio and Streaming via RTP on Linux

1158 byte By warn at 2007-9-19
I am developing an application which, among other things, allows real-time video and voice communication using JMF on Linux. There appears to be problems with the capturing of audio and transmitting using RTP with JMF on Linux. The effect of the problem is that audio on the receiver is rendered ...

Reduced the size of an image

310 byte By uschenz at 2007-9-19
Hi,I need to load an big amount of black&white JPEG images into my application.JPEGs are always 24Bits/pixel. Can I reduce the amount of memory needed by reducing it to 1 Bit/pixel. For example using an BufferedImage with an IndexColorModel?Thanks for your helpUli ...

scaling problem -please help...

261 byte By ifatb at 2007-9-19
hello,i'm using the function setscale(Vector3d) of Transform3D . and it seems that a previous scaling of the Transform effects the new one,so that the new scaling does not come out right.what can i do?thanksifat

Certificate in .pfx file

277 byte By vbarnich at 2007-9-19
Hello everybody,Is someone able to tell me if it is possible to handle Certificate object while the correponding certificate is stored in a .pfx file.If it is, can you tell me also if the type of the certificate remains "X.509"? Vincent

NoSuchProviderException...why?

396 byte By dungali at 2007-9-18
I use RSA algorithm to encrypt data,I hava added a line such as the following"security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider"to the file java.securitythe program compile ok,but when I run it,it throws a NoSuchProviderException exceptionat ...

decryption question

724 byte By bfaros at 2007-9-18
I have an application that takes a String, translates it to a byte[], encrypts it and then converts it to a BASE64 encoded String to be transported over a network. I have a client program that can reverse this process and decode the BASE64 String into a byte[], decrypt it and convert it back to ...

Java3D NOT compatible with JDK 1.4

686 byte By cyzsuraj at 2007-9-18
I am using Windows 2000 Pro, Geforce 2 MX/MX 400, and JDK/JRE 1.4.When I try to run the Java3D Fly Through demo, the area where the models are displayed is blank (not black) and I receive the following error (in the console):wglMakeCurrent: Not a valid handle.extentionStr == nullI don't think ...

How can I combine 2 images [GIF is transparence,JPG is Background]?

141 byte By kumphol at 2007-9-18
Hi,I have problem to combine images. I want to combine GIF (transparence) and JPEG (background). How can I do this work?