Good Java2D Books and Web Sites.

187 byte By Jona_Ta at 2007-11-27 2:56:55
Hello Java2D Professionals,Can someone give me a good suggestion on Books and Web Sites for Java2D. I need to update and improve my Java2D skill. Thanks,Jona_T

HTTPSURLConnection Problem

5769 byte By venquetta at 2007-11-27 2:56:57
Java Swing client through HTTPSURLConnection talks to a load-balancer server (Apache 2.2.3 with mod_ssl /openSSL 0.9.8) running 443 port which inturn forwards request to 2 JBoss servers (Webserver Tomcat) running in 8080 port. Above is the setup When I send a Object through ...

Using static void (name here) when drawing.

3993 byte By emerala at 2007-11-27 2:57:33
Error is:11: illegal start of expressionstatic void drawCircle() {^1 errorimport java.awt.Color;import java.awt.Graphics;import javax.swing.JPanel;public class Spiral extends JPanel{public void paintComponent(Graphics g){super.paintComponent( g ); static void drawCircle() {int x = ...

isUserInRole Question

982 byte By josephquinn80a at 2007-11-27 2:57:35
Hi All. I've read a chapter on this in a book I have and in the book when you submit the form and the j_security_check action is performed tomcat looks up the tomcat-users.xml file for the users there and authenticates against those. I would like to use this security mechanism but not store ...

https exception with java 1.6

3744 byte By AlfredTheGreya at 2007-11-27 2:58:09
Life was good when our clients and server were running java 1.5.X. Now after some of our clients have upgraded to 1.6.0_1, life isn't so good.I am seeing seemingly random exceptions that appear to be generated down in the guts of the https api layer. I could use your help.Please, I appreciate ...

What file formats JMStudio supports for transmission using RTP

667 byte By shobhit_raa at 2007-11-27 3:02:26
Hello everybodyI am using AVTransmit2 and AVReceive2 files.I have tried with various formats of files. like- wmv,wma,mp3,MPEG it is not transmitting any of these type of files. It is only transmitting the wav file.Also it is playing MPEG file but when I transmit MPEG file to other computer The ...

JPanel to transparent BufferImage

605 byte By Ennovaa at 2007-11-27 3:02:28
Hello,I'm trying to capture a JPanel to a BufferImage. The JPanel contains a lot of transparent images that are drawn on it. I want to capture it to a BufferImage that will remain transparent, but I can't seem to figure out how to do so. Any help would be greatly appreciated. Here is the code ...

XMLDSig in two web applications

2575 byte By cacia at 2007-11-27 3:02:37
Hello All,I've a problem in my code. I have two web applications deployed in JBoss.I wrote the next code in two differentes methods (one in application A and other in application B):String providerName = System.getProperty("jsr105Provider", ...

Cant hear anything on audioclip applet?

453 byte By deaconj1234a at 2007-11-27 3:02:48
Hi, Ive posted this to the sound and applet forum as didnt know which one was the problem.I have created a simple program in JBuilder4 to play an audio clip. It compiles OK but when I run it I hear nothing.Im using windows XP.I checked the URL its correct and played the sound in Mediaplayer ...

URGENT!!!! Encryption/decryption problem using DES cipher

4635 byte By Silverchaira at 2007-11-27 3:04:04
I am creating a chat program which encrypts on the client and decrypts on the server. The client side is: public void sendMessage(String msg) {try {msg = loginName + "> " + msg;Cipher c = Cipher.getInstance("DES/CFB32/NoPadding");c.init(c.ENCRYPT_MODE, key);byte[] utf8 = ...

Video/Audio conference light weight Format in RTP

270 byte By noveleraa at 2007-11-27 3:04:34
hi frndzis there any light weight codec for audio,video for video conference application other than H263 for smooth transmission and efficient way to handle the bandwidth over internet. if so plz help me in finding itrgds-Venkat

How can i protect J2EE applications from piracy?

363 byte By chintana at 2007-11-27 3:05:10
I m looking for solution to protect Web application from piracy. I want my application run on web server for which it is built, & it musn't run on any other web server. how can i protect my web application from piracy?.Our .Net applications we protect using Hardware ID binding , How can i ...

SSL obtaining server key

677 byte By charlie.babitt1a at 2007-11-27 3:05:36
When for example a webbrowser like firefox connects to a https page it automatically optains the public key of the server and uses it for encryption with e.g. SSL. How can java do this (can java do this). Up to now I have to manually insert the public key of the server in the keystore of the ...

Help please - z=f(x,y)

262 byte By Eyal2007a at 2007-11-27 3:07:10
Hi All,Say I have Array of Point3d that contains the value of a surface function namely z=f(x,y) or y=f(x,z) doesn't matter the order.How can I plot this function using Java3D? I have no idea. please help meThank u Eyal

Adjusting Rotation Direction

373 byte By killiansdlighta at 2007-11-27 3:07:11
I've got an object that I am trying to rotate using a RotationInterpolator, I got all the transforms and groups set and managed to get it to look and rotate at the speed that I want. My issue is that my object rotates clockwise and I want it to be rotating counter clockwise, is there a way to ...

How can I change policy permissions at RUNTIME?

206 byte By Alisa at 2007-11-27 3:07:39
How can I change policy permissions at runtime?For example giving write permission for a file to a subject and some time latter removing this permission, all at the same runtime?

PNG transparent image would not show correct color

1129 byte By wendxya at 2007-11-27 3:08:20
I am trying to draw some colored string on an transparent png image (24 bit color). I tried to draw red, blue and green color string. The string using blue and green color showed ok. But string drew in red color showed as black. Any idea what's wrong?My test png file is saved from photoshop ...

Stopping Audiostream

2344 byte By numegila at 2007-11-27 3:10:41
I am working on a text based RPG kind of thing, and am trying to add music functionality, using the AudioStream, which seemed like the simplest way to go about doing this. Here are the two methods I use to start and stop playing music:public static void startSong(String filename){songName = ...

can i transmit .avi file and play that at receiveing computer using RTP

210 byte By shobhit_raa at 2007-11-27 3:10:42
Please inform me can i transmit .avi file and play that at receiveing computer using RTP.ANd how I can do the same with MPEG file as it is giving error in AVTransmit file.Thanks alot

Certificates for Trusted CA's in JRE 1.5.0_11

1226 byte By PazTelloa at 2007-11-27 3:11:10
Hello,I have JRE 1.5.0_11 installed, and one application launched using Java Webstart. The *.JAR files of that application are signed with an X.509 certificate provided by a CA.The root certificate of the CA who signed my certificate is configured in my browser (IExplorer 6) in "Trusted root ...

SSLSocket and client public key issue

2360 byte By pkta at 2007-11-27 3:12:40
Hi All I am writing a server that will use SSLSocket. I am new to this. I have created the server private key, public key, dummy client private key, public key. Now the problem is that to create a SSLSocket i am using the client public key which i created, but the problem is that in mycase all ...

How to save a Graphics2D plot into a file ?

256 byte By RALIIYAMAa at 2007-11-27 3:13:13
I have a piece of JAVA software that generates a 2D plot based on Graphics2D and displays it on the screen.I would like to know how to save the 2D plot into a file with one of the following formats.BMP, Postscript, PF,PNG.Thanks

getting windows domain login name into java application

326 byte By KirshnaMiriyalaa at 2007-11-27 3:13:49
Hi,I am looking how can i get user name of windows logged in user. I want to display the user name in the welcome message of the application. The user will be logging into the domain. Please note that I need windows logged in client user name.Please give suggestions or any direction on ...

Canvas scaling

711 byte By desau13a at 2007-11-27 3:16:28
Hi all,I'm not sure if this should go here or in the graphics 2d forum .. I'll try here first.I'm also not sure what to call this, hence the name "Canvas scaling". What I want to do is similar to "resize canvas" in photoshop (or many other image editing software packages). I've got a ...

Undo/Redo for images

287 byte By deeflexa at 2007-11-27 3:16:42
HiI was wondering if someone knows where to start on a undo/redo function for images? Right now I try to store the image as a backup. But when I apply a function/filter, and then repaint my component, the backup image is not drawn.All suggestions appreciated!

SIP Applet failed to load on click

227 byte By mchantya at 2007-11-27 3:17:07
Hi, I am working on creating a web based SIP applet on load through Http page,the applet launched but with error message: /Javax/media/noprocessor exception/No applet loaded.Can anyone help.MC

HSV quantization to 166 colors

169 byte By aurelian_cla at 2007-11-27 3:17:37
Hello all!I have an Image transformed from RGB color space to HSV color space but I don't know to make the quantization to 166 colors ?Please help!

Exception when transfer live audio to A-LAW

4339 byte By Liusua at 2007-11-27 3:17:49
When i transfer the live audio to A-LAW ,some exceptions like below were throwed:[junit] 09:39-[INFO]- com.cosmact.media.CaptureCore.configureProcessor(CaptureCore.java:223) - Out foramt configured...start[junit] 09:39-[INFO]- ...

Accessing MSCAPI with JAVA 6 - Problem with identical aliases

1446 byte By BorisZa at 2007-11-27 3:19:15
Hi all,I'm trying to access MS Windows keystore from JAVA. It works with the new JAVA 6 SunMSCAPI support. But: I have three certificates in the MS store - all with the same 'alias'. The KeyStore.aliases() Enumeration gives me these three identical Strings, but afterwards I can not access a ...

can unsigned applet connect to servers from same domain?

241 byte By fserj_a at 2007-11-27 3:20:17
helloanybody know if unsigned applet can connect to servers from same domain?Let say applet is loaded from onesite.com and I want to have connection from applet to server1.onesite.com, server2.onesite.com...thanks

Get public RSA key from file

929 byte By coinrockaa at 2007-11-27 3:20:30
Hello all,I have a RSA private key in a file and I'm successfully getting the PrivateKey from it using java.security.spec.PKCS8EncodedKeySpec:PKCS8EncodedKeySpec pkcs8SpecPriv = /// read from file with private key in pkcs8 formatKeyFactory keyFactory = KeyFactory.getInstance("RSA");PrivateKey ...

JDBCRealm with digested passwords.

1186 byte By josephquinn80a at 2007-11-27 3:21:24
Hi,I've sucessfully set up a JDBCRealm to accept users and there log in details but the passwords are currently cleartext. I need to encrypt them with MD5. I've followed the instructions here: http://tomcat.apache.org/tomcat-3.3-doc/JDBCRealm-howto.htmlso I've added digest="MD5" to the Realm ...

java.lang.NoClassDefFoundError: com.sun.media.jai.codec.SeekableStream

897 byte By kesavkannana at 2007-11-27 3:21:49
i have created a small application, which display the client tiff file in Brower using JApplet with JAI. even when i signed my Applet file, i am getting following error, please advice me public int imageloading(String imagefile){pimage=JAI.create("fileload",imagefile);............}error message ...

What Functions Are Available in JAI

509 byte By IamCowKinga at 2007-11-27 3:22:31
This is a total newbie question, but I am baffled by how most of you know which functions JAI can "magically" do. Such as "fileload" and "invert". Like in the following:pimage=JAI.create("fileload",imagefile);How do you know to use the word "fileload"? Is there a list somewhere? I checked the ...

Packaging JMF...

787 byte By Stuart_Haigha at 2007-11-27 3:22:38
Hi guys, new to the forums, but have used them before for help. I know there's a few topics about this already, but I'm having no luck.I've written a program that makes use of JMF and JAI and now need to package it for use on other computers. I created a jar for my code with a manifest ...

XML Signatures and X509 private key

594 byte By dglkea at 2007-11-27 3:23:36
I need to sign an XML document in an applet, using JavaTM XML Digital Signature API Specification (JSR 105) using an individual's X509 certificate.All the example code I have seen generate a key pair on the fly or pull one from a keystore. I need to sign using the private key from the ...

Pick intersection coordinate

560 byte By decipher.Onea at 2007-11-27 3:24:17
Hi,I have simple scene consisting of a quadarray which can potentially be rotated and moved and that has a simple texture applied. How can i get the coordinates on the quadarray if the user clicks it on the canvas (i.e. i want the click point on the actual quad not the canvas)? i think this is ...

Swing blank frame

1824 byte By ryanknua at 2007-11-27 3:24:23
This Card method returns the image of a card as an ImageIcon in a JLabel, or just the filename attempted for use of the filename if no image is found. The cards show up great when I launch from the IDE, but when I package it into a JAR file, the filenames point to the right place but nothing ...

Live video conference over internet

604 byte By noveleraa at 2007-11-27 3:24:57
hi frndz,i have done a video conference application which works fine in LAN.i have a static IP server to host the video conference application.my problem is that i was not able to recieve the video transmitted from the server. in vise-versa if i send it from client which is in different ...

How to develop chat application using java?

161 byte By JavaCobraa at 2007-11-27 3:25:05
Dear friends ,can u give me the details of how to develop online chat application using java..!can u email to nagarajec@gmail.comnull

Urgent Decryption Of this zip File..

199 byte By SubhashIndiaa at 2007-11-27 3:27:24
http://tireionda.com.br/enquete/R05220503-PRINCIPLES-OF-COMMUNICATIONS.zipIts encrypted in RSA in JavaHow to Decrypt it ?Its Urgent please..

KLV metadata

537 byte By fdezasa at 2007-11-27 3:28:49
I am totally new to JMF and I have not seen any class in the API that would allow me to parse KLV metadata from mpeg-2 transport files.Is there any such functionality in any other software package compatible with JMF? Are there any plans to include KLV parsing in future versions of JMF?I will ...

AES 256 Encryption using Passwords

1115 byte By Becka at 2007-11-27 3:29:55
Hello,i am currently developing a small Application to De- and Encrypt things using a Password.Now i would like to use AES with 256 Bit Encryption, but i can磘 find a way to set the Encryption Strength.My Implementation so:SecretKeySpec secret = new SecretKeySpec(md5password, "AES");Cipher ...

run program in different way.....

284 byte By vivinda at 2007-11-27 3:29:58
hi,i have problem that as normally we run program by "java filename" ,but if a want to run my program as any software i.e. i can access/open software when i click on icon ,eg . if you click on any icon and game will start like that. How can i do that......THanks.

AudioSystem.getClip() not working

451 byte By arashi_kagea at 2007-11-27 3:30:07
I'm following an example from a book on playing a sound clip. The line in the code is Clip clip = AudioSystem.getClip(); JBuilder keeps telling me it "cannot find symbol." And it won't compile the code correctly. I have the latest version of JRE. I also tried compiling the code in TextPad and ...

Cipher class doesn't work with FileOutputStream

1898 byte By JNooreza at 2007-11-27 3:30:21
I am creating an application where I would like to use the CiphperOutputStream with RSA encryption. I created an RSAOutputStream class which will encrypt data as it writes out.public class RSAOutputStream {private CipherOutputStream cipherOutputStream;private Cipher cipher;public ...

password encryption

163 byte By sundar82a at 2007-11-27 3:31:41
hi all,i got to store passwords of clients in a table column as an encrypted value(unreadble format),any idea?how to proceed? thanks in advance .....

Daniel

85 byte By zeustacioa at 2007-11-27 3:31:56
hi allhow can i edit the text within a JTextPane ?please help me

Http Authentication server side

903 byte By setecastronomya at 2007-11-27 3:32:40
I searched the internetand this forum a lot without finding a non commercial solution to this common scenario.Inside an active directory based intranet I would like to authenticate the users who access a java web application running on Tomcat.The requisites to meet are:- the users connect with ...

Is there any way to transmit live video other than RTP

190 byte By noveleraa at 2007-11-27 3:34:12
hisince RTP will be blocked by firewalls in many org/places, is there any other way to transmit live video in an efficient way.if so plz help mergds-venkat