I am trying to get the stack trace of the classes using getclasscontext method of security manager. Now once we get the class array is it possible to get the object information associated with each class.For example if the class in the class stack was of type Agent, I need to find out ...
1189 byte By
goask at 2007-9-26 4:40:15
Currently the java speech api is bundled with the java media framework. However, this api provides only the interfaces, with a couple third-party native implementations. As a java developer, it is hard to ensure that the user already has a native implementation installed. And since java runs ...
I'm trying to verify my system is up. It's accessed only via HTTPS. I got everything working but get the dreaded untrusted cert error. I just want to send a quick message and get back a quick answer. Is there a way to circumvent the cert chain error? That is, I don't care if the site is not ...
7113 byte By
sthitha at 2007-9-26 4:41:24
When i use WakeUpOnAWTEvent, and use KeyEvent, i can only use KEY_PRESSED, KEY_RELEASED and KEY_TYPED. All VK_* keys do not seem to work, can someone tell me why this is and how to get around it. The following code is from the Collateral Tutorial of Java3d:import java.applet.Applet;import ...
Here is my code snippet:class cursor extends JComponent{GeneralPath cursor = new GeneralPath();int width;int height;int gkRadius = 5;public cursor() {setBackground(Color.black);cursor.moveTo(0.0f, 0.0f);cursor.lineTo(0.0f, 20.0f);cursor.lineTo(4.0f, 16.0f);cursor.lineTo(5.0f, ...
Can someone tell me, where I can find the java 2d API jar downloads.
1783 byte By
matanS at 2007-9-26 4:42:39
I am converting a regular client-server sample socket program to ssl. But I don't have a clue how to find out what the problem is after the server socket creation fails.The code samples I use sort of assume no exceptions will be thrown and does not deal with indicating what problems occur. ...
how can i get a size of Shape after a scaleUrgent <><>
Can someone tell me, where from I can find some free image Encoader classes
hi all,i have successfully signed an applet and it is loading in the client system also. in that applet, i instantiated a jbutton as given below:JButton jb = new JButton(new ImageIcon(" http://192.168.91.154:8080/success/set.gif")); but the icon din appear and a blank button appears, even when ...
203 byte By
camel10 at 2007-9-26 4:44:31
I have a graphic Circle with some text in it whish is static.Now i want to change the text when i am running the application.I should be able to write into the circle.How do i do it?
Anyone every see this error? I have the three JSSE1.0.2 jar files in my classpath. Anyone know what I'm missing to get this error? I also get the same error running the Sample SSLSocketClient that comes with JSSE1.0.2
In the program below, I pass a String to a blowfish encryption function that returns a encrypted String. I then print it out. Then I pass the encrpyted String to a blowfish decryption function that returns a decrypted String and print that out. If the String is less than 6 charcaters is always ...
911 byte By
evo1 at 2007-9-26 4:48:14
I am using HttpsURLConnection and it works fine for verified certificates, such as verisign.com.i installed a 14 day trial verisign certificate on a machine for testing. i was originally getting the exceptionSSLException: untrusted server cert chain now i added the cert to jre\lib\security ...
I'm a student. I will be very happy if you could help!I'm writing an self-signed applet that runs on browser.Luckily there is no error shown in the java console when i run the applet.however, i can't store information to a file which is placed at the server(where my applet is placed).The ...
362 byte By
mandy2 at 2007-9-26 4:50:44
hello,Could anyone pls help me...I just want to see an example how can I write to a file that is placed at the server(save place as the applet).p.s. I have been successfully read a file from there...Suppose I have signed the applet (self-signed), anymore security problem I need to pay attention ...
663 byte By
ltmorgan at 2007-9-26 4:50:51
Hi,I've just started with JAI and have seen and used various functions such as gradientmagnitude, convolution etc.. by calling JAI.create("gradientmagnitude", ....) and JAI.create("convolution", ...)All work fine, but I was wondering where I can find a list of all the operations that ...
782 byte By
pantal at 2007-9-26 4:53:09
Is it posible to modify the JVM's security policy so that applications that run on webstart(which runs on the JVM) will not present the warning(i.e. "This application has requested read/write access to a file on the local filesystem. Allowing this action will only give the application access ...
201 byte By
simywime at 2007-9-26 4:53:41
How do I find out details of an animated gif? I need to know the number of images in a strip, and also the frame rate. I would like to convert the strip to a BufferedImage for animation.
583 byte By
AntonEpp at 2007-9-26 4:54:18
I've found discussion and bugs relating to the issue where the 'signed' status of a jar files expires with the certificate. This discussion has obviously been going on for a while. In the bug parade, see #4030673, 4406748, 4357437 and 4396720. Unfortunately they all seem to be closed. Is ...
1120 byte By
6tr6tr at 2007-9-26 4:55:40
I want to make it so I can set my own implementation of SecurityManager to do a check before ALL method calls. This way, people can plug their apps into my system and not have to make sure they write in those security checks themselves.Then All they have to do is set up permissions for it.So my ...
I'm using Font f = new Font("Times New Roman", Font.PLAIN, 12);To load the fonts, but the problem I have is when I have the fonts be less than 12 pt, when the print they look very ugly and pixilated. I've tried putting some rendering hints on the graphic (such as turning AA on), but that ...
hello again, it seems that java3d is allocating TONS of memory on my machine and not giving any of it back. Even the demo programs take huge amounts of memory, and once i exit, i cant recalim any resources. This happens with both opengl and directx, i think to a lesser extent with directx, but ...
Lets say you have a JApplet. You now create a JPanel or JLayered pane and you add a player component on top of the whole panel (or pane) and you set it on the content pane. How would you put a JLabel on top of that player componenent? I have tried everything and nothing seems to work....Any ...
291 byte By
saira812 at 2007-9-26 4:57:50
Hello,Can we put permissions on particular methods of a class for different users?If so how? What type of entries in the policy file?How can i check for permissions on methods of the class?How JAAS can help me with this?regards,- Saira
164 byte By
basatwar at 2007-9-26 4:58:29
Hi,I want to check whether the point i've clicked with mouse is on the particular QuadCurve2D or not. Is there any way to do thisRitesh
If i have an applet that calls servlet using URL.If i use an URL beginning with https, the transfert of data using this url is not automatically secure (SSL)?Nathan
399 byte By
TaxiMan at 2007-9-26 5:00:03
If you are using a Commercial Signing Certificate like Verisign or Thawte, which tools are you using to sign your applet? Are you using Netscape's signtool or are you using Sun Java's keytool/jarsigner or something different? I am primarily concerned with the Windows OS (NT 4.0) using IE ...
491 byte By
pisti1 at 2007-9-26 5:00:20
I am posting a http request to my webserver (Win2000-IIS5.0 and ASP) and sometimes I get back the following exception:Connection read exception: java.io.FileNotFoundExceptionSeems like it's not finding the asp file in that location.If I try the request again it works. The client is a Java2 ...
Hi !I'm new to the java.security.*, so I need your help finding a class/function in the Java API useful to encrypt/decrypt some text.For example:Username: myTestPassword: myPasswordIn this case, "myPassword" is the string used by the user, but the database engine should never use the same ...
502 byte By
ConlonP at 2007-9-26 5:01:23
I've been working on an applet that takes a flat file XML database, searches it using parameters specified by the user, and creates a new html page that contains the results. This program works perfectly in appletviewer, but every time i try to run it with IE, it refuses to do anything. I ...
After and individual frame has been rendered, i'd like to get at the individual pixels and alter them before the frame is displayed. By overriding the canvas3d's postRender() method, i can add my own code into the rendering loop, but does anyone know how i can get the individual RGB values of ...
2295 byte By
jburford at 2007-9-26 5:02:37
I have had a dream of locally caching a jar file for an applet so that all the code will be on the client machine after the first time the applet was loaded. Basically, I have a very thin applet composed of a jar class loader and a tiny applet which will check for a jar file on the client and ...
hi,can anybody tell me how I calculate the height of rectangle required by printing a given String with a given font and a given page width (taking account of line breaking and word tokenizing)in Visual C++ the DeviceContext class had a very useful function for this in DrawText()... if you set ...
264 byte By
mkkr44 at 2007-9-26 5:03:48
Hello all, I created an applet.But it will run only if we change the java custom settings and enable "Access to all Network Addresses".How can i avoid these settings explicitly in the browser by writing code in an applet.Kishore.
250 byte By
sthitha at 2007-9-26 5:04:03
How do you modify an object in a scene from outside.Lets say, i want to move an object left when i press the left key.How do i tell the scene to move the object from the keyPressed function?A code example would help
how do you plot a single pixel using Graphics/Graphics2D? Currently the only method I know is fillRect(x, y, 1, 1,). The problem with this is it is very slow. Does anyone know a faster method?
760 byte By
NeoAeZ at 2007-9-26 5:04:41
I am trying to get the OrbitBehavior() class to work within the SimpleUniverse I am creating. The code compiles but it seems as if the either the mouse listeners are not being tied to the canvas, or the events arent being captured...(I am new to Java3d so I m not entirely sure). I looked at the ...
189 byte By
sthitha at 2007-9-26 5:04:56
How do you change the position and angle of the ViewPlatform.There doesnt seem to be anything about this in the J3D tutorial or in the documentation.Please help.
We have developed an application for voice conferencing its working fine , but when client is on DSL connection its not working,player cant realized, can any one help in out whats the DSL architecture, , Will JMF work with DSL connection, My Appication architecture is some thing like ...
Hi All,I got a free personal certifcate from thawte.com andinstalled it in IE. When i try to export the file to use itin java program, depending upon whether i export theprivate key also or not, it generates .pfx file and .cerfile respectively.But i dont know how to get the private key from ...
Hello all,Have you used JAI? I want to use PerspectiveTransform to map a photo to a quad, but I can't find some functions to draw it after construction.Could anyone help?Patapeppy
HiI was wondering if there is any other convienient way of encodeing an image to a GIF format without using the ACME package? I'm not sure but I think that JAI doesn't support GIF encoding. Is this true? Colin
710 byte By
npatha at 2007-9-26 5:09:54
Hi,I have set up my Apache/Jserv for https.And the client needs to present its cert if it wants to communicate with the server.The handshake is happening properly. The ssl_engine_log shows that client has been authenticated.But I want to get the certificate of the client in my jsp.I am doing ...
673 byte By
AmidD at 2007-9-26 5:10:06
Hi,A. Does anyone know a good example for activation over ssl?B. This is what I did:I use the constructor of the activatable object as follows:super(id,0, new RMISocketFactoryImp("ssl"), new RMISocketFactoryImp("ssl") )RMISocketFactoryImp is a class I wrote that extends RMISocketFactory. This ...
767 byte By
loiek at 2007-9-26 5:10:47
Hello,I try to call methods of a signed applet from Javascript using Java Plug-in 1.3. This works well with IE 5.0, but not with Netscape (and as I read, it is not supposed to work with Netscape !). http://www.ebsolutech.com/ebsolute/technologies/whitepapers/app2jni/SolJ2JS.html proposes a ...
Hi guys,I am new for this cryptopgraphy thing. I want to store password for ftp site in database in encrypted form and then later fatch it and decript it.I am coming across this BASE64Encoder class very often. I am trying to find API for that class. No sucess.really appriciate your help if you ...
In my program I want to show a rotating line, like the hand of a clock. The rotation is calculated in a certain class. This class should pass the rotation parameters to a Java2D class which shows the rotation. In other words: I don't want the rotation calculated in a paint() method. I'v been ...
498 byte By
sthitha at 2007-9-26 5:14:10
I know there is a left eye mode and a right eye mode in View.What I want to know is how to show both of them interlaced, somewhat like in 3d movies.I want the left eye to contain all the red colors of the object, and the right eye to contain all the blue colors of the object.And the green ...
Hi all ...i want to connect a database (SQL Server) from an applet, but i cannot because exception found (Java.Security.AccessControlExceptino:Access denied (Java.Lang. .....) when i declare the JDBC - ODBC bridge Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")please helppp me Dragon Wui ...