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
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: ...
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, ...
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 ...
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 ...
Hello,I would like to know if it is possible to have a web application running on AIX authenticating the users using the windows id. The scenario:windows networkweb application running on AIXThanks for any help,Carlos Ferreira
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 ...
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 ...
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 ...
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 ...
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 ...
Hello, I am trying to make a server that listens for incoming data as well as be able to send data when certain conditions are triggered. I have managed to get only one to work at a time because I used endless loops to check for incoming data, but I cant figure out how to get it to do both ...
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 ...
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
I have program that I will be running on a LAN, and I want the applet to be able to write to a file on one of our servers, is this possible?
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 ...
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 ...
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 ...
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 ...
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 ...
1130 byte By
Hegdea at 2007-11-27 5:42:03
hi I have some doubt abot webcam with applets here are my questions...... 1. There is client(s) and server systems.....webcam is connected to clientside and image from webcam should be captured fromclient(s)and to be sent to server ,through web only. Is there are any possibilities to do this ...
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 ...
310 byte By
DanDia at 2007-11-27 5:42:24
Please, I am beginner with respect to the kerberos protocol and have some doubts of its use:1) Is Kerberos security suitable for financial applications?2) What are the advantages of kerberos with respect to SSL?3) Does Java provide full support for kerberos?Thank ...
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 ...
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 ...
10563 byte By
Lepr8a at 2007-11-27 5:45:49
I must send a mail use a SMTP with SSL.This is an example of my code :public void sendMail(String destinatario,String mittente,String oggetto,String messaggio,String fileName,String fileNameInMail)throws Exception{if (protocol.equals("smtps")){ Security.addProvider( new ...
i need help to convert audio formate from wma formate to wav formate ..thank u.
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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
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; ...
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
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 ...
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 ...
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?
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
I am looking to make a 3D game that is similar to RuneScape, nothing very detailed at all. Now that you have an idea on what I am making...What are the basic programs needed?What JDK? J2SE?Are there any Java Game Engines out there (free ones?)? If I am missing anything, then please do tell me ...