want to chage display image after 2 second

3751 byte By bhavin123400a at 2007-11-27 5:58:23
hiin my program i am capturing the screen and showing it in to the jframe and after 2 second delay i am capturing again and want to display that new image in same jframe by following program but i am unable to do soplease help me outpackage javaapplication1;import java.awt.AWTException;import ...

Realm: Tomcat vs SJSAS

1132 byte By JavaNutCasea at 2007-11-27 5:58:33
Hello,May I know what is the SJSAS equivalent for the Tomcat's version of the following server.xl configuration:<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@{IP ...

Removing BadPddingException

3294 byte By nikku3881a at 2007-11-27 5:59:29
Hi all,Please help me with this problem which is troubling me from last 3-4 days.There are two files1)Receiver.java2)Sender.javaIn Receiver.java,I am generating a public and private key using RSA and storing them in two separate files public.dat and private.dat.Here is the code segment for ...

kinit using 1.5 works, doesn't on 1.4.2

429 byte By Tony.Cookea at 2007-11-27 5:59:44
Hi all.When I use kinit on 1.5 a ticket is generated correctly but under 1.4 I get a Pre-authentication error.Why is it differnt between the 2 environments?Is there something special I'm missing (... I've probably set myself up here! :-) in the 1.4.2 environment?The same thing happens when I ...

camera application error please rectify

457 byte By vignesh@i10na at 2007-11-27 6:00:24
i made a camera application i used the in built streaming video and tried to capture the image but it showed an error when i clicked the button captureit showed Application not authorized to access the restricted API.i used synchronised(this) in the function for command invocation of ...

Make pixelgrabber ignore certain colored pixels.

333 byte By KillerScapea at 2007-11-27 6:00:45
Hi,I am trying to load images with a transparent background and have worked out that to do it i need to make my program ignore certain pixels (for example i could make the bit i don't want bright orange) i would then max pixelgrabber ignore all bright orange pixels.Does anyone know how to do ...

rotate an image and save it -> black image

811 byte By aneuryzmaa at 2007-11-27 6:00:52
hello,I have to load an image from filesystem, rotate it, and save it on filesystem. I don't need to write it on the sceen... This is my code... but all what i get is a new black image[code//BufferedImage toStoreBufferedImage toStore = new BufferedImage(Width,Height,BufferedImage.TYPE_INT_RGB ...

Multichannel Audio

1202 byte By Mozeza at 2007-11-27 6:01:02
Hi,I'm creating an application that utilizes multichannel audio. I have managed to get the app to play back a 4-channel wav through my creative pcmcia surround sound card. My problem is that I would like volume control over (preferably) all channels. The FloatControl way of controlling volume ...

video conversion

124 byte By it_shailua at 2007-11-27 6:01:12
Is it possible to convertone video format to anothere.g. mpg to avi or mov to mpgHelp plz

Image mapping

266 byte By u771711a at 2007-11-27 6:03:29
I have an applet that I want to add an image to. I would like to map the image so I can do different things depending on what section of the image the user clicks on. How would I go about doing this? Does anyone have a sample I can look at?Many thanks.

Problem with encryption

644 byte By flightcaptaina at 2007-11-27 6:03:36
HelloI want to encrypt a message by using the public key which is stored on a file. I load the key from the file but i cannot initiate the cipher for the encryption. The key is encoded and stored on a file The code i use for loading the key is FileInputStream PublicKey = new FileInputStream ...

curve in this way...help

650 byte By vivinda at 2007-11-27 6:04:00
hi,i have to join two line with smooth curve eg....................................................o2.......................o1............................p1....................................................p2// This dash-dash point are nothing Suppose given o1(x1,y1) & o2(x2,y2) are ...

keep transparency of png image with type TYPE_BYTE_INDEXED

1280 byte By mephia at 2007-11-27 6:04:20
Hi, i have a problem with a few png images. they have the type TYPE_BYTE_INDEXED. if i do any resizing or anything else with Graphics2D the transparency is lost.. here is a simple example.. BufferedImage bi = ImageIO.read(new File(args[0]));double w = 450;double oriw = bi.getHeight();double ...

what is relation of Active directory and Kerberos with java?

471 byte By Legolas.wa at 2007-11-27 6:04:29
HiThank you for reading my postCan some one please explain what is relation of Kerberos and Active Directory with java? By my knwledge LDAP (such as AD) can store many information and also userID/password which we usually use for authentication.What is relation of kerberos with LDAP (AD) and ...

rotate a Graphics Image? something like "zuma", don't remember how to do i

535 byte By CrossFireXT17a at 2007-11-27 6:04:35
Hey everyone, well I want to know if anyone knows how to rotate an image? I did it last year, but I don't remember how I did it or where I found out how to do it (I lost the code in numerous reformats of my computer). But basictly if anyone has ever played the game Zuma ...

help making private key base 64 when generating priv key

3113 byte By cup_joea at 2007-11-27 6:05:09
Hi,I want to provide a program that will generate a certificate request (CSR) and a private key, without using a java keystore. I was able to generate the CSR fine and persisted the CSR in base64 format to a file. But I'm having trouble generating the private key and having it store in a base ...

Why josso has no DataSource Credential Store?

27948 byte By eingmarraa at 2007-11-27 6:05:53
Hello everyone, Do you take care of studying the josso-gateway-config.xml and find the Credential Stroe block is lacking of a way to store the username/passport pairs by DataSource? this is the josso-gateway-config.xml listed as below:<?xml version="1.0" encoding="ISO-8859-1" ?><!-- ...

Reteriving Client Certificate in SSL Client Authentication

304 byte By .@_a at 2007-11-27 6:06:43
Is there any way to retrieve the client certificate in an established SSL Client Authenticated Session? I am using Tomcat Web server 5.5 in which server and client authentication are enabled. Thanks.. If I am posting this question in wrong forum then please redirect me to the correct ...

Move a shape through a line

363 byte By J_newBiea at 2007-11-27 6:07:05
Dear all,i post my question. I have to pick a shape (already done), move it (already done) through / along a line. Example: i have a small rectangle and it has to follow the line in a "S" shape.What do you suggest me? is there any class that can help me? do I have to implement the whole logic ...

is there any complete sample with its execution steps for kerberos?

314 byte By Legolas.wa at 2007-11-27 6:07:50
HiThank you for reading my postIs there any sample (java files) with a howto that i can use as an start point?for example some complete sample which authenticate users with windows server 2003,and sample gives some details about when to use kinit and klist and ...

TripleDES fails

2530 byte By hellbindera at 2007-11-27 6:08:20
All,I have the following problem with encryption:I want to encrypt String into byte[] using: PBEWithSHA1AndTripleDESHere's the code:public class SecurityTest {//private static final String encodingType = "PBEWithSHA1AndTripleDES";private static final String encodingType = ...

What is CA?

58 byte By eng.aymana at 2007-11-27 6:08:24
What is CA? Is there a full documentation about it?

Understanding JAR signing

993 byte By lightbulb4321a at 2007-11-27 6:09:49
The following link says that the public key that corresponds to the private key used to sign the JAR is placed in the JAR, along with its certificate. http://java.sun.com/docs/books/tutorial/deployment/jar/intro.htmlI have a couple of questions: are both the public key and certificate in the DSA ...

Permission Not Being Granted

801 byte By rezsama at 2007-11-27 6:09:51
Hi,I'm new in java security. I'm trying to grant "java.security.AllPermission" to my program but getting AccessControlException. Here is the program:package t;public class MyApp {public static void main(String[] arg) throws Exception{FileWriter writer = new FileWriter( new File("c:/a.txt") ...

j_security_check redirect

506 byte By torfua at 2007-11-27 6:10:01
Is there a way to force j_security_check to redirect a user to a specific page every time, rather than wherever it came from?If someone goes directly to my login page and logs in using the login form, they get a 404 error since there is no page to be sent to.I would like to bounce everyone to a ...

Signed applet in Intranet site

352 byte By kulkarni_asha at 2007-11-27 6:10:57
HiI have an applet which i want to make a signed applet, has anyone created an internal certificate and use it with the applet, are there any disadvantages for doing so, rather then getting a certificate from verisign or some third party company.is there any expiration date for my generated ...

Decryption problem (continue from "problem with encryption")

1856 byte By flightcaptaina at 2007-11-27 6:11:31
Hello again.I am posting on a new topic because i could not change the name of the previous topic i posted. I cannot decrypt an encrypted message which i load from a file.File encryptf = new File("encrypt.txt");int enclen = (int)encryptf.length();DataInputStream dis2 = new DataInputStream(new ...

Mixing Audio and outputting differently

644 byte By DJHotIcea at 2007-11-27 6:11:58
I have audio coming into me from several locations, online via sockets.I want all the audio to go through all the speakers. No problem there... However i want to mix each piece of audio received to be sent back down the other end of the socket except the user who sent the audio over.... so no ...

How to play avi files in a java application

341 byte By imation3ga at 2007-11-27 6:12:18
Hi,I have a java desktop application which is actually a kiosk application. I have to run some promotion videos in my application when no user is using the kiosk.videos can be any avi or neother which can easily be played in java applications.What is the best way for me to play video files in a ...

curveTo....help

80 byte By vivinda at 2007-11-27 6:12:19
hi ,i want simple example of "curveTo" (java.awt.geom.GeneralPath)

calculate time of processing of each frame

91 byte By federico81a at 2007-11-27 6:12:39
it's possible do it with jmf? in which way?thanks in advance for helping me.

KeyPair and Cipher.init() Help

566 byte By yipsheea at 2007-11-27 6:13:31
Hi,I've generated a keypair using KeyPairGenerator and after that saving the public and private keys individually to files as hex. Now when I read the hex back and used SecretKeySpec(byte[],"RSA") to reinstate it as a Key object and plug that into Cipher.init(Cipher.ENCRYPT_MODE,pubKey,random) ...

custom Graphics2D class

1137 byte By Roqueforta at 2007-11-27 6:13:37
I've made the following code but i'm having some problems with the parameters, can anyone help please!This is what i have made of the class and main program so far:Class:import java.awt.*;import javax.swing.*;import java.awt.event.*;public class Game{JFrame jf;public void window(int x,int ...

generate X.509 self signed certificate with JDK 1.6

256 byte By mirikiwia at 2007-11-27 6:14:14
Hi folks,is there a chance to generate a X.509 self signed certificate with JDK 1.6 without using the sun.security.x509 package or Bouncy Castle or KeyTool? I would like to implement this only with the JDK 1.6 API.Thanksmirikiwi

Problem Decrypting Files

2265 byte By j-roda at 2007-11-27 6:15:47
I am attempting to create a program that will encrypt and decrypt file using password based encryption. However I have been having trouble decrypting. If I try to open up a decrypted .doc Word file it doesn't work or any other files for that matter. Here is the decryption coed I am using. Any ...

Text ..... Help

187 byte By vivinda at 2007-11-27 6:15:51
hi,I have very simple problem, i have to write a Text in applet( or canvas ),Text will contain multiply-line And Paragraph .Text must be not be editable.Thank you....

How to copy a signed jar file?

3468 byte By xlinuksa at 2007-11-27 6:16:41
I have a jar file that is singed. I only need to update a text file inside this .jar file every few minutes by replacing it with another file from outside (same name but different size and contents). So I'm just copying the files from the old jar to a newly created one, then delete the old one ...

Generating Digital Certificates

7232 byte By djalfirevic126a at 2007-11-27 6:19:26
Hello folks! I need some help and I think that I'm in right place... Please help me if you have time...I want to create an application to create and export digital certificates. I know how to use keytool command and what I need is basically that command but in a form of GUI...Here's my ...

Trouble encrypting correctly with AES with a static key

3336 byte By Magusa at 2007-11-27 6:20:33
Hi. I'm trying to get JCE to work with the following example using AES in ECB mode (yes, ECB shouldn't be used, but it's what I'm supposed to use): given a clear text String represented by the bytes (in hex) 546578746F2070617261207465737465 and a key 6573736173656E686165686672616361, the ...

Sockets on port

244 byte By schooltiger@walla.coma at 2007-11-27 6:20:34
Hi,I need the functionality that the serversocket gets the sockets inet addresses in the given port before the sevrer socket accept() method.Is there any possibility please let me know. Thanx in advance.Regards,Tiger

JMFCustomizer

1192 byte By dark_deniala at 2007-11-27 6:21:10
When I try to customize the jmf.jar using the script: "java -classpath customizer.jar JMFCustomizer"I get this errors:Working directory is C:\Archivos de programa\JMF2.1.1e\lib\cusworkFound jmf.properties in jmf.propertiesRegistry Size = 172javac path = C:\Archivos de ...

Creating acusto Component

238 byte By RaulHuertasa at 2007-11-27 6:23:23
Hello!I want to make a custom Control component for an mp3 player. The problem is that I don't know when it will be notified for show the elapsed time of a file. Which kind of ControllerEvent should I listen for?bye!

SSL cipher

187 byte By Pedpanoa at 2007-11-27 6:23:48
Hello,I was wondering if is there any way to force a specific cipher in SSL connections.Because in the examples that I have read I have not seen any thing about that.

help making PKCS#8 private key into PEM format?

1307 byte By cup_joea at 2007-11-27 6:24:02
Hi there,I need help making my private key in pkcs#8 to pkcs#8 PEM format. I've been stuck on this for a while any help is much appreciated! I've generated my private key using with the following: KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");keyGen.initialize(1024, new ...

Canvas +a picture

231 byte By Roverta at 2007-11-27 6:24:22
How would I go about creating a Canvas inside of my JFrame with the picture named "Track"?Your help is greatly appreciated. Also, should the picture be a .JPG or .GIF?Message was edited by: Rovert

MIDI: Why controllers 72-73 dont work?

3318 byte By P57a at 2007-11-27 6:25:28
public class MIDITest{ public static void main(String[] args) throws MidiUnavailableException, InvalidMidiDataException, IOException {Synthesizer synth = null;Soundbank soundbank;MidiDevice device = null;try{MidiDevice.Info[] devices = MidiSystem.getMidiDeviceInfo();for( int i = 0; i < ...

Javadoc for JMF

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

jmf and mpeg layer 3

362 byte By emanuele.ga at 2007-11-27 6:26:21
Hi friends, I have a little question in using jmf. I can play (using fobs) any kind of my .avi file but i couldn't here any kind of audio. I have the following error:Unable to handl mpeg layer 3.... I have downloaded the Java MP3 PlugIn and registrly it with successfully.How could i fix?thanks ...

Audio streaming from URL

1524 byte By Mskumara at 2007-11-27 6:26:31
Hi friends,Currently imdoing a project in online radio streaming.I have some problems in my coding.Will anyone help me to find out?or will anyone send me the codings,if u have?Below this program its showing error message as " COULD NOT CREATE AUDIO STREAM FROM INPUT STREAM".and how to use this ...

Not able to transmit Video

23305 byte By Kalvin1a at 2007-11-27 6:27:08
Hi, I m new to JMF.We are using MjSIP and i want to transmit video through JMF to other machine.The problem is the implementation which is given in MjSIP isnt working .I mean whenever i execute the implementation given in mjSIP like JVisualReceiver etc.Both machines hangs coz they are not being ...