Problem Processing Multiple images with JAI.create

594 byte By max_nya at 2007-11-27 10:50:23
Hello I am trying to process a directory with 10 image files in it and I read individual files and input filenames to create a PlanarImagePlanarImage img = JAI.create("fileload", filename);which is wrong as it throws Exception in thread "main" java.lang.IllegalArgumentException: File not foundI ...

Verifying that an Image is Valid

4372 byte By jvelliott@charter.neta at 2007-11-27 10:52:07
In my application, I am loading in a user specified image to be used as an icon.My code works fine, except in the case where an image file is invalid.i.e. You change the file extension on some random file to ".jpg", and try to load it.The program doesn't crash or throw any exceptions, it simply ...

Getting Java error in firefox

16896 byte By ssnkumar123a at 2007-11-27 10:53:29
Hi,When I visit webpages with Java content, I am gettling errors.The version of Java installed on my machine is:java -versionjava version "1.6.0_01"Java(TM) SE Runtime Environment (build 1.6.0_01-b06)Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)Here is the list of errors that ...

drawing application?

454 byte By don.juan9a at 2007-11-27 10:55:10
hi all....i want to develop a drawing application which allow user to draw on the screen and the drawings will be sent over to the other client. it's something like isketch ( http://isketch.net/). It's a real time drawing application.any suggestions on how should do it to be able to send drawings ...

Override/replace com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl by custo

885 byte By dynamicdhiraja at 2007-11-27 10:55:17
Friends, I have created a custom MySSLProtocolSocketFactory class which implements ProtocolSocketFactory class .I have implemented the overloaded createSocket() method of this class. However on using this class in org.apache.commons.httpclient.protocol.Protocol class , the jvm seems to pick up ...

Output to different audio devices

211 byte By barsiqa at 2007-11-27 10:55:57
<p>Hello,</p><p>I'm looking for a way to output several audio streams from the Asterisk server (as RTP for example) on different audio enddevices like boxes and USB-headset.</p><p>Does someone have an idea?</p>

Image overlaying

1309 byte By futureaussiectoa at 2007-11-27 10:56:17
Hi guys- firstly im not the worlds greatest programmerBasically i need to write a program which can take in a variable number of image files (of the same size) and overlay them.The images will be european maps, with coloured overlays corresponding to temperature. Eg i shall have 12 maps of europe ...

Ask many times, almost despaired.

11510 byte By ardmorea at 2007-11-27 10:57:13
Please see my executable code. I am going to plot a 2D object, but can't add on the panel. What's wrong?import java.io.*;import java.awt.Font;import java.awt.Color;import java.awt.Graphics;import java.awt.BasicStroke;import java.awt.GradientPaint;import java.awt.geom.GeneralPath;import ...

Pixel by Pixel editing

94 byte By futureaussiectoa at 2007-11-27 10:57:57
<p>Hi, how can one traverse through each pixel in a picture, therefore editing one by one?</p>

Encryption problem in javacard

3674 byte By Darwiina at 2007-11-27 10:58:09
Hi,I met a problem using DES encryption in my applet. The encryption process works fine only when the data to encrypt is surrounded by dots ('.'). I can't understand why... Without dots, I can only encrypt data which length doesn't exceed 7 characters. Here's my code :public static byte[] ...

get the pixel of a panel

205 byte By don.juan9a at 2007-11-27 10:58:52
<p>hi..i have a canvas which is a JPanel of white background. this canvas can be drawn. I want to get every pixel of the canvas. how do i get it? This is a JPanel and not an image. can i get the pixel?</p>

How to create Tri-Color Rectangular Gradient (e.g, implement PaintContext).

205 byte By MattBallarda at 2007-11-27 10:58:54
<p>I am having a hard time figuring out how to modify the elliptical gradient into a tricolor rectangular gradient. Does anyone know how to modify the code to draw an rectangular gradient?</p><p>Thanks</p>

Tomcat 55 Apache2 and SSL

927 byte By paul@cumonian.coma at 2007-11-27 10:59:02
Aloha @all,I am trying to setup SSL with tomcat. SSL itself is already running and can be accessed through Apache, however, whenever I try to access ssl on tomcat, I get a 404 message screen. Now I got a feeling that this could all result of a missing connector script in the server.xml file... I ...

Crypto++ encryption/JCE decryption

610 byte By jarza at 2007-11-27 10:59:10
Hi,Has anyone had any luck integrating crypto++ with java? I need to decrypt a string encrypted by the crypto++ code. It is using the DefaultEncryptorWithMAC which says it is a Password-Based Encryptor using DES-EDE2 (a triple des pass twice) and HMAC/SHA-1. Being a relative newbie to encryption, I ...

Help! ClassCastException with Tomcat and HttpsUrlConnectionOldImpl

665 byte By brylawskia at 2007-11-27 11:00:12
Hi,I am trying to perform an HTTPS call from a servlet running under Tomcat 5.5, JDK 1.5.0 . When I do, I get this error:java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImplat rcopia.util.WebUtils.setAutoVerify(WebUtils.java:1398)at ...

OutOfMemoryError with wav file bigger than 30kb

3548 byte By pepper_bga at 2007-11-27 11:00:28
OS: Ubuntu 7.04Java version 1.5.0_12I'm trying to run the simplest of examples here, just playing a wav file:import java.io.*;import java.util.*;import javax.sound.sampled.*;public class Main {public static void main(String[] argv) {try {// From fileAudioInputStream stream = ...

Using the Cipher class

1914 byte By spanglercoa at 2007-11-27 11:02:04
I have tried and tried, but I cannot seem to figure out how to decrypt things in Java. I encrypted a string using PHP's mcrypt_encrypt function:mcrypt_encrypt (MCRYPT_BLOWFISH, 'password', 'hi', MCRYPT_MODE_ECB); // Returns 9Y gbut I can't get Java to decrypt it. This is my current ...

3D GAMES

149 byte By gamesteama at 2007-11-27 11:02:19
<p>All</p><p> i am new in 3d games. plz let me send some link to unerstand basic concept and how to start with 3d games development.</p><p>SAmeer</p>

simple Java 3D Example

147 byte By EricFalbea at 2007-11-27 11:03:21
<p>Where can I find a simple examplecode in Java 3D?</p><p>Like drawing a simple object like a cube.</p><p>One with explanation would be great.</p>

specific the Video format in

263 byte By VishnuAggarwala at 2007-11-27 11:04:00
<p>hi frnds</p><p>how to specific the Video format in JMF in Application and Size of Video Size........example i want YUV format and size is 640 X 480 my webcam is supported this but how could i change the format and size its very urgent........</p><p> Thanks</p>

Construction of RSA keys ( very urgent )

412 byte By buddy_boya at 2007-11-27 11:04:23
I have a byte array which contains the public modulus and public exponent (first 2 bytes specifies the length of the public exponent, followed by public exponent, the next two bytes after public exponent specifies the length of public modulus and followed by the public modulus). I have to construct ...

Does Signature class expect plain text only or message digest?

334 byte By Vikas__sharmaa at 2007-11-27 11:10:58
Theoritically, signing operation includes the following steps1. Create Hash of message called Message Digest.2. Encryption of Hash.My query is: Does Signature class expect plain text (in byte[] ) only? or I need to explicitly create a Message digest first and then pass it to Signature ...

convert int to Color

107 byte By don.juan9a at 2007-11-27 11:11:21
<p>hi...does anyone know how to convert int value (grabbed from getRGB()) into the actual color format?</p>

GSSContext's wrap() and MessageProp: Which enryption is used and available

515 byte By Santacruzshoresa at 2007-11-27 11:12:52
Hi there,I have got a question regarding GSSContext's wrap()/unwrap() methods. These methods take a parameter, class MessageProp,an instance of this class is used to indicate the desired Quality-of-Protection (QOP)The qop is can be set by an integer, but which kind of protection is it indicated by ...

Caching images to disk

884 byte By raf2003a at 2007-11-27 11:12:55
I am writing a web-start application that will be downloading hundreds of JPEG 2000 files over the net. This application will also need to iterate effectively over these images. Clearly it is not possible to cache 300-400 images in memory, rather I store these images on disk (this is a signed app). ...

Java Crashes

930 byte By rahulapva at 2007-11-27 11:13:05
Please help me....I am working on ubuntu with jdk1.6u2 and java3d1.5.1. I have created an off-screen canvas which is running on windows fine but crashes on ubuntu.Does my system need any upgradation or i will have to do same with different methods. Following is codeBufferedImage buff_image=new ...

how to determine on what segment a point is in

149 byte By hardcodera at 2007-11-27 11:13:35
<p>i have line segments that are connected and assuming that i can get the points of the segments, how do i know on what segment the point is in?</p>

Sync audio and video on a real-time compression from webcam

1106 byte By javazillaa at 2007-11-27 11:16:13
Hello all, first of all, sorry about my englishWell, im having problems capturing audio and video from a webcam and compressing it to a local file using IV50 and GSM. I already have merged the source and cloned it so I can compress and show for the user what is beign captured at the same time. The ...

null credentials even when tgt exists

1886 byte By cashroba at 2007-11-27 11:16:32
Hi, I'm new to kerberos, jaas and gssapi and I need help. I'm on solaris 10. After kinit, klist shows the following:bash-3.00# klistTicket cache: FILE:/tmp/krb5cc_0Default principal: kerberos-test@RICHMOND.COMValid startingExpiresService principal07/20/07 18:09:16 07/21/07 02:09:16 ...

Graphics throwing NullPointerException when running drawImage()

1741 byte By timothyb89_a at 2007-11-27 11:19:20
I've tried a few too many ways to repeatedly draw an image, and I know that using Graphics is better than initializing 500+ JLabels just to draw 1x100 images as a toolbar.This code keeps throwing NullPointerExceptions and I simply can't figure out why. Maybe someone a bit more insightful than ...

How to control logined user

325 byte By john_woo_canadaa at 2007-11-27 11:20:07
Hi,Using JAAS login model is fine for my swing app. But now there is a requirement, such that we need to create a web, by which all logined user can be monitored, and even forced to logout.Can any one have idea, so1. how to know who logined?2. how to login user ...

Package com.sun.j3d does not exist (Linux - Fedora Core 6 - jdk 5.0)

753 byte By CoAa at 2007-11-27 11:21:06
Here's the thing.I realize it's probably a classpath issue, but I don't know where to put the libraries. Compiling non-3d code works fine, which leads me to believe that running the j3d installer in the right place ought to put the libraries in the right place and let me use them. Clearly this ...

Client Auth failure:SSLException Received fatal alert: bad_certificate

2269 byte By dynamicdhiraja at 2007-11-27 11:23:30
Friends, I have managed to establish a one -way https connection between the client and the tomcat-server by keeping the client-Authentication=false ...

multiple keystore files

240 byte By pietro.maggia at 2007-11-27 11:23:59
<p>Hi,</p><p> I use JSSE to connect to different mail servers throuhg ssl. I need to use a different truststores (say: "store1" and "store2"). Is there some way to statically tell to the java environment to use both files ?</p><p>Pietro</p>

Problem while doing DESede ( triple DES encryption/ Decryption)

4547 byte By buddy_boya at 2007-11-27 11:24:06
I am trying to do triple DES encryption and Decryption as attached in the codeimport javax.crypto.Cipher;import javax.crypto.SecretKey;import javax.crypto.spec.IvParameterSpec;import javax.crypto.spec.SecretKeySpec;public class Sample3 {/** * @param args */public static void main(String[] args) ...

AffineTransform & BufferedImage graphics

876 byte By mk2004a at 2007-11-27 11:25:21
Document document = .. // Document extends BufferedImage bufferedImage = (BufferedImage) document.createImage(document.getWidth(), document.getHeight());Now if I want to draw on bufferedImage Graphics2D graphics2Ddoc = (Graphics2D) document.getGraphics();Graphics2D graphics2D = (Graphics2D) ...

Reliable online resources

148 byte By it-developer.orga at 2007-11-27 11:26:19
<p>Hi,</p><p>Do you guys know of good and reliable on-line resources on cryptography in Java 1.6, (apart from java.sun.com) ?</p><p>Thanks a lot</p>

draw Triangle

168 byte By don.juan9a at 2007-11-27 11:26:24
<p>help....i need cant find any code to draw a triangle in java. i need to let user click and drag on the canvas to draw the triangle. Any help will be appreciated.</p>

Signing Failure ,help me

1219 byte By ardmorea at 2007-11-27 11:27:32
What is wrong?Do I need create file migsuncert.crt in advance. ThanksC:\Program Files\Java\jdk1.6.0_01\bin>keytool -genkey -keyalg rsa -alias migkeyEnter keystore password:What is your first and last name? [Unknown]: Michel GallantWhat is the name of your organizational unit? [Unknown]: HomeWhat is ...

changing a certian color to another color

24 byte By aaa801a at 2007-11-27 11:28:40
<p>how can i be done</p>

Creating Rectangle inside a Frame

1377 byte By ButcherBaya at 2007-11-27 11:28:51
Hello, What I'm trying to do is create a Rectangle that will expand in the frame when it is maximized. This is the code I've made so far.import javax.swing.*;import java.awt.*;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.Rectangle;import java.awt.Frame; public class ...

Adjust .midi volume

150 byte By Program_Javaa at 2007-11-27 11:30:27
<p>I'm playing myMidiFile.midi and the volume is always really high, does anyone know how to adjust the volume of my file</p><p>thanks in advance</p>

Capture Device using JMF

742 byte By yogeshjoshijia at 2007-11-27 11:30:49
when my signed applet/jar is executed on client machine where JMF is not installed. Then i am not able to Capture the Microphone using CaptureDeviceInfo di = null;AudioFormat a = new AudioFormat (AudioFormat.LINEAR,8000, 16, 1);Vector deviceList = CaptureDeviceManager.getDeviceList(a);for(int ...

draw line,arrow,oval on the image

76 byte By v.kka at 2007-11-27 11:32:45
<p>draw line,oval and arrow on the image dynamically.</p><p>please help.</p>

hide the cursor

166 byte By don.juan9a at 2007-11-27 11:34:08
<p>hi all.. i'm developing a drawing application. i need to hide the cursor and change with the shape that is going to be drawn. Any idea how to hide the cursor?</p>

CPU usage

772 byte By gearheadgenea at 2007-11-27 11:34:21
On my pc (P4, windows 2K, 384Meg RAM), with JMF 2.1.1e, JDK 1.6, the CPU utilization is pegged at 100% when playing back movies. Interestingly, I can run many simultaneous videos without degradation in any of them (currently running 7 simultaneous). As soon as the video is stopped or paused, the ...

How to avoid deleted projects being deployed when server starts

666 byte By another_java_guya at 2007-11-27 11:35:41
Hi All,I have created some project in RAD 7 for some testing purpose with WAS 6.1.Now problem is I was not aware of the fact that WAS 6.1 does not work with local workspace and it shares all the workspaces. So after sometime I deleted those workspaces from Windows file system and not by opening ...

Failed Core Validation

1272 byte By Frank_Natolia at 2007-11-27 11:36:59
How to diagnose why XMLSignature.validate is returning "failed core validation"?JWSDP 2.0 demos GenDetached and Validate work fine. Modified both to function properly with "file:" input rather than "http:", thus inserted calls to SetBaseURI for the JDK bug work around. Modified versions work fine ...

How to draw a blinking caret on TextLayout?

75 byte By always_javaa at 2007-11-27 11:37:18
<p>How to draw a blinking caret on TextLayout?</p><p>Thanks in advance.</p>

Update Image width and height

2619 byte By AnupPatela at 2007-11-27 11:37:49
Hello Friends,I Create One java class for Getting an image from hard drive and Update its width and Height of that Image through AffineTransform and then after save it back to hard drive through BufferedImage.But when i save my image into hard drive it is not display proper manner.That means after ...