67 byte By
sunnics at 2007-9-26 1:49:25
Transform the "scene" (BranchGroup) picture to ".jpg"
238 byte By
denay at 2007-9-26 1:49:51
I don't find the solution about my problem:I have a JApplet, any problem when I compile. BUT in internet explorer I have this exception :com.ms.security.SecurityExceptionEx ....please help me....
Hello,have someone the original code PolicyFile.java and PolicyParser.java from the JAAS?The compiled class are in com.sun.security.auth , but I need the uncompiledclass in java source. I would like to make my own MyPolicyFile-Class for the JAAS.I need a custom Policy Class for the JAAS.So, ...
Is client authentication possible with the standard URLConnection object ?I see a problem with setting the need Client auth flag on the SSLSocke. Since thes object really don't have access to the raw sockets.
1964 byte By
jpilgrim at 2007-9-26 1:51:09
Hello,I'm evaluating J2EE and JAAS and I'm wondering how I can implement my business model using these techniques:As far as I understand JAAS, it's a class based authorization architecture. What I need is an object based architecture, specially when using CMP entity beans.Is it possible to ...
278 byte By
Appollo at 2007-9-26 1:51:52
I have an object (a sphere) that has to have a label underneath it. Double-clicking on it (sphere) should hide/show the label.Does anybody have any idea how to do this? The labels have to be very small and readable.Any suggestions are welcome!
I am trying to connect to a SSL enabled Lotus Domino Mail Server, using JSSE. At the client side this is the exception encountered:javax.net.ssl.SSLPeerUnverifiedException: peer not authenticatedat com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain([DashoPro-V1.2-120198])at ...
572 byte By
wangg3 at 2007-9-26 1:52:17
I'm implementing an application which allows users to iterate through a set of video files. These video files are in different format, such as AVI, MOV, MPEG, etc. I don't like to create a new Player instance for each file by using the following statement:Player player = ...
4620 byte By
miriamf at 2007-9-26 1:52:21
Hello,I have an application that allows the user to record and play back audio to a file. After recording and playing back several times to the same audio file, I eventually get an exception error thrown out when trying to record. After this happens, I'm no longer able to record to that file ...
522 byte By
wsun68 at 2007-9-26 1:53:40
Hello,I'm writing some java RMI application over SSL via JSSE that comes with JDK1.4. So far, I tried the sample code and it went well. My question is, from JSSE API or Sun's reference implementation API, how do I control server or client authentication? According to the SSL protocol, they ...
620 byte By
ag71071 at 2007-9-26 1:55:54
HelloI'm opening secure sockets at regular intervals, say 15 minutes. I create an SSLContext and SocketFactory only once, then every new socket shares the same session information. If I look at the log generated by the javax.net.debug=ssl.handshake property, it looks like the server ...
I want to open a document by a button on an applet (doc.doc) and i know i need to use the both class ObjectInputStream & FileInputStream but i don't know how to do ... nb : scuse for my english ,i'm french
When the 10-step or similar process is used, does this end up granting ALL permissions to the applet? Is there any way to involve a java.policy file which defines specific limits?Can this be downloaded in any (semi-) automated manner like the certificate? How does the user know just what they ...
i have two questoin:a. in method mousePressed() and mouseDragged(),how to save the initial coordinate of the mouse press?b.i have saw many applets just draw a rectangle only when the mouse is released,how to let rectangle always show on the panel before the mouse is released?who can show some ...
1350 byte By
rguiu at 2007-9-26 1:57:02
Hello, Anyone with experience with policy files?I have this ibn a policy file. I load it using the property : -Djava.security.auth.login.config=D:\pathh\...\raul_jaas.cfg And in the policy file is:grant Principal NTUserPrincipal "my_user_name" { permission com.mycomp.raul.RaulPermission ...
3066 byte By
NTK1 at 2007-9-26 1:57:22
Hi,I'm trying to make this window frame scroll graphics, it shows the scroll bar but when I try and scroll it, the graphics disappear. What am I doing wrong? import java.awt.*;import java.awt.Graphics2D.*;import java.awt.event.*;import java.awt.geom.*;import java.applet.*;import ...
312 byte By
Unoft at 2007-9-26 1:57:28
Hello, I want to use my own Policy-Class wich is derivated from java.security.Policy. So I changed the policy.provider entry in the java.security file but the programs further on use the sun.security.provider.PolicyFile file.Does anybody know why?Greetings, Sebastian... ...
252 byte By
vivekvp at 2007-9-26 1:57:44
hi all,I want to stop the image displayed in the applet from being screen captured(using PrintScreen or Alt+PrintScreen keys). Is there any way we can disable the screen capture or clear the contents of the clipboard.
76 byte By
XingH at 2007-9-26 1:58:08
I want to use awt to creat a image and save it , how can I do?
Hey therewe are working on an application that will allow six video players to run similtaneously in a frame (actually a J Layered Pane) - you can drag these around + rearrange them.At present we are testing a whole load of different formats + codecs to see which performs best - the piece will ...
I have downloaded the Java 3D API but the compiler keeps telling me off for the java 3d packages not existing. How can I make it understand where the packages are and how to access them?Thanks Rufus,
3248 byte By
qazwsxed at 2007-9-26 1:58:58
Below is the HTML I am using to invoke a signed applet.I am getting an "Applet not initialized." error message in the web browser, but I do not have any exceptions in the Java console showing up. Can anybody give me a clue as to what to change to help things out or get more debug ...
326 byte By
LuckyLeo at 2007-9-26 1:59:53
hi all,I am trying to move a dot continuely to any direction that I want . It's easy just move to north south etc, but it is very difficult move the dot to any direction such as move to 20 degree(ie. between North and NorthEast).anyone who has any idea ?thanks in advance.=Leo ...
321 byte By
ad_p at 2007-9-26 2:00:08
I am constructing a shape3D object using a polygon array and the GeometryInfo class, as is shown in the easy content creation chapter of the java 3d tutorial. This works fine, but I would like to apply a texture to this Shape3D and I cannot work out how to do it. Can anyone help?ThanksAdam P ...
403 byte By
ottox at 2007-9-26 2:00:48
Hello. I am new to JMF, i was wondering if there is any way i can get information about audio frecuencies from a audio file. What i want (this is ideallistic) is to divide the sound wave in a discrete set of points so i can enconde it in a Vector.Please tell me if this is possible in Java, and ...
You need two tools that comes with your jdk which are keytool and jarsigner.Steps explain below in detail. Don't use netscape signtool, it will NEVER work!* keytool -genkey -keyalg rsa -alias tstkey -keypass 2br2h2m -dname "cn=Test Object Signing Certificate, o=AI Khalil, ou=Java Products, ...
486 byte By
vyw at 2007-9-26 2:02:30
Is there a maximum value for the certificate lifetimespecified with the -validity option of "keytool -genkey"?We had a user who specified 100 years (36500 days). The keytool program obediently created the certificate.But it shows up as expiring in 1965:Valid from: Thu Jul 26 16:55:25 EDT ...
2046 byte By
hoeghen at 2007-9-26 2:05:05
I am trying to create a HttpsURLConnection object but i dont seem to be getting it when i run the following code.Do i need to set the default socket factory? Or am I doing something terribly wrong?public class URLReader { public static void main(String[] args) throws ...
561 byte By
splotto at 2007-9-26 2:06:21
Hi !I'm new to Java3D and I want to change the Appearance of an object. Theproblem is, the object is loaded with an ObjectFile and I don't find amethod which allowed to change the Appearance. I get the BranchGroup withthe Scene so I can visualize my object but it's black (the object file ...
Dear java experts,By using JSSE, I can connect the web server A in SSL if the server use Versign Cert. However, it will display the following exception when I connect web server B which use CyberTrust (www.baltimore.com) Cert. It seems no problem when i use browser to connect server B. Should I ...
Hello,I want to use two byte[]s which represent the n and the e of a given Public Key to initialize a Cipher for the RSA Algorithm. Does anybody have a good introduction on initializing RSA Public Keys. Where do I find Code Samples on this topic. At the moment I am using the Cryptix Provider ...
Hi thereI have recently started developing a Capturing classThe class i supposed to conect to a Intra-oral cameraAnd you should be able to take screen shots from the capture deviceEverything works fine if not for a tiny little detailThe image I display is black & whiteIt seems that JMF is ...
144 byte By
fidalgoa at 2007-9-26 2:07:29
Hello everybody!!!I would like to know where can I get code to convert a Image data to different formats? thank you.
When signing some data, first one computes the message digest, then encrypts the message digest with his private key to get the signature. So, if I have the public key, I should be able to take the signature and decrypt it, yielding the original message digest. Correct?However, there doesn't ...
if anyone can help I will be very grateful. Is it possible to use an xml document to build a graphic, however, I don't mean a graph. for an example if I had an xml doc that specified x,y and z points for a number of (for arguments sake) spheres, I would like to be able to plot these ...
671 byte By
ericew at 2007-9-26 2:08:29
I am doing software rendering and then flipping from a back buffer to the screen. The screen flipping causes a noticible tearing during movement.I have tried everything, but am comming to the conclusion that the only way to avoid this is to use jdk1.4 fullscreen API. This is a suboptimal fix ...
I would like to know if it is possible to use form-based or basic login authentication in the web tier, and then be able to easily propogate that security context in JNDI to creating protected EJBs. My understanding is that if using form-based login on the web tier, the container will ...
821 byte By
aleather at 2007-9-26 2:08:56
Hi,We are using both ADO and JDBC to connect to an Oracle database and my job is to make sure that the connect password that travels to the Oracle database is encrypted and not traveling in clear text. How do I encrypt this password before sending to the Oracle database? I think Oracle looks in ...
I have a DirectShow-based capture device for the Java Media Framework. My capture device loads a DLL and acceses it through the JNI. This DLL instantiates various DirectShow COM objects. Everything use to work fine...until I had to reinstall my system.I have reinstalled Windows 2000 from ...
I have installed JMF 2.1.1 on Windows 2000 and JMStudio runs fine. However, when I try to run a custom application that uses JMF and the mediaplayer bean, it throws a ClassNotFound Exception:java -cp C:\JMF2.1\lib\sound.jar;C:\JMF2.1\lib\jmf.jar;C:\JMF2.1\lib\mediaplayer.jar -jar ...
Hi,I am very new to J2D and graphics programming. I currently know how to go about drawing stuff on the screen or make it move in a very basic fashion. I am trying to develop a app that looks like a timeline moving. Let's say that I have a bunch of planes and they are approaching some airport. ...
508 byte By
Appollo at 2007-9-26 2:10:56
My application should contain a 3D coordinate system for the user to interact with (the user would add/remove points to it (represented as very small spheres in my case) and drag them along the axes).Since you can not add/remove transform groups at run time (when the graph is "live"), is there ...
I am using Java on Unix and would like to use Windows True-Type or Open-Type fonts. Can Java read a Windows true/open-type font (.ttf) file?What should I do to make Java pick up such Windows fonts? How should I name the font on Unix (I mean Unix fonts seems to be named in a ...
1643 byte By
gariosg at 2007-9-26 2:11:42
Hi guys, well I have this problem, I have an JApplet that's a RMI client in the machine A and my RMI server is in the B machine, so I get security exceptions like these:Client exception: checkconnect.networkhost1sun.applet.AppletSecurityException: checkconnect.networkhost1at ...
Will there be more root certificates from CAs in Java 1.4? The current situation is not good. There is nearly no other choice than Thawte. A monopoly is not good.Currently I have a certificate from www.trustcenter.de. It works perfectly to sign JARs for NS 4.x and CABs for MSIE 5.x. But it ...
I've put some stuff that may be of interest here : http://www.isacat.net/2000/sound.htm
3440 byte By
ventural at 2007-9-26 2:14:12
Hello!I am an italian student who is attending computer science at Pisa University.I am developing a project and I have the following problem.I have written an applet that import the following libraries with the statements:import java.io.*;import java.net.URL;import java.net.*;import ...
3440 byte By
ventural at 2007-9-26 2:14:13
Hello!I am an italian student who is attending computer science at Pisa University.I am developing a project and I have the following problem.I have written an applet that import the following libraries with the statements:import java.io.*;import java.net.URL;import java.net.*;import ...
678 byte By
swett at 2007-9-26 2:14:14
I've used the famous 10 steps to create a self-signed applet. However, there's no evidence that the applet is signed.At some point when my browser opens the HTML page containing the applet, isn't it supposed to throw up some kind of trust/certificate dialog and ask me to approve? It doesn't ...
486 byte By
Holden at 2007-9-26 2:15:20
I have an Image object loaded from a file using Toolkit, I want to draw it on a BufferedImage using g.drawImage( x, y, width, height, ImageObserver );later on I want to save the BufferedImage in a jpeg file using the converter.Since my class is not a subclass of Component (Panel, Applet, ...