Calling paintComponent(Graphics g) in another class

2956 byte By Jona_Ta at 2007-11-27 2:09:48
Dear Friends,I have a class (Class Pee) where I implemented the paintComponent(Graphics g) and another class (Class Bee) where I generate some datas. My intention is to call the paintComponent(Graphics g) method in class Pee at class Bee to make use of the generated data to draw some figures.I ...

hi

22 byte By acvwerha at 2007-11-27 2:10:26
[url]this[/url]

Developing Web server for chat application

250 byte By sakdflksda at 2007-11-27 2:11:25
Hi all ,We are trying to develope a chat application.Still now we dont have any idea to design a server.Any one can say by which we can develope a sever for chat application?Need some sample code .Thanks in advance.

Problems with PrivateKey

3435 byte By SleestakKinga at 2007-11-27 2:11:52
Hi all,I'm really struggling here and I'm hoping someone can help. I'm no security expert so please forgive any obvious errors.I want to create a public and private key pair, then use a KeyStore to store them so other objects can access them. However, I'm having a problem and here is the ...

RSA key generation times

436 byte By c4rtera at 2007-11-27 2:12:25
hi guys , wondering if you can help me out, i am after some RSA key generation times to compare mine against.i have worked out that:512 key generation average is 217ms1024 key generation average is 600ms2048 key generation average is 3000ms any body know if there are any sites that can give me ...

"Choose a digital certificate" pop up when save Excel spreadsheet in IE

672 byte By MacArthura at 2007-11-27 2:12:29
One reporting page in our SSL application will generate an Excel spreadsheet. User will be prompted to either Save it to harddrive or Open it within the IE. If user chooses to Open it inside IE, then go "File --> Save as", this "Choose a digital certificate" dialog box will pop up, but ...

Finding x and y values of a Line Chart

353 byte By javacia at 2007-11-27 2:13:35
Hi,For instance, I had a line chart with x and y axis. When I move mouse to the line chart how can I determine x and y axis values? With mouseMoved metod i can find the coordinates but coordinates doesn't help me to find x and y values of the line chart.How can I find x and y values of a Line ...

Help with RSA Encryption using SATSA

1581 byte By gk4321a at 2007-11-27 2:14:05
Hello,I am a new to writing code on J2ME . I am trying to encrypt data usingRSA public key on J2ME using SATSA.I generated the public key using openssl in the PEM format and stored thekey (mypublickey) as a Base64 decoded byte array in my code.Next, I did the following:X509EncodedKeySpec test - ...

Java NIO - Key Cancellation and Registering with New Selector

711 byte By shannaraa at 2007-11-27 2:14:06
HiSometimes when a channel is unregistered from a particular selector (key.cancel() ) and then registered with another selector, the registration does not happen. It just blocks in that registration method..It does not execute after that..I am ...

AES in JDK 1.3.1_06

884 byte By andylimp12a at 2007-11-27 2:16:22
HI,This is realy realy urgent.Ca anybody tell me if I can user AES encryption in JDK 1.3.1_06. I tried with JCE 1.2.2 provider bu got "No Such Algorithm exists java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES"error -Following is the sample steps I used -String ...

Simple Animation With A Timer

422 byte By Fergala at 2007-11-27 2:19:51
HiI want to make a version of PacMan in Java. However, Ive never worked with animation before. I've researched on the Internet about it, and Timers seem to be used quite a lot. Does anyone know of good tutorials on animating a simple circle that has been painted on screen? It would also be ...

reaing a cmyk image

112 byte By Josephrajaa at 2007-11-27 2:20:48
Anyboy please send me the code for reading the CMYK color TIFF and JPEG images in java.. Thanks advance..

What is content level security?

153 byte By RamSaia at 2007-11-27 2:21:05
Hello All,What is content level security? how is it different from role/access based security?Please clarify.ThanksRam

adding children at runtime?

12418 byte By kotaonlinea at 2007-11-27 2:24:03
Dear all,I'm developing an applet using java3D. the basic idea is to display spheres on the canvas and when a user picks a sphere, it is translated to the origin and a different set of spheres is displayed. i could add children to my BranchGroup at runtime, but could not display them properly. ...

mouseClickEvent

3860 byte By e2nua at 2007-11-27 2:24:04
I have a lil problem implementing the mouseClickEvent() of the mouseListener in my code. I'm creating an application that draws a line between two selected shapes if certain constraints are satisfied. So far , I have been able to draw lines some how in the code but i need to implement this in ...

Quickest way to find the darkest pixel in an image

199 byte By ChromoXNHa at 2007-11-27 2:24:26
I was wondering what the absolute fastest way to grab the darkest pixel(grayscale) in a picture. Or if anyone could give me any ideas on how one would go about making a fast dark pixel finder.

Problem with Collision

479 byte By akitoa at 2007-11-27 2:26:27
Hello everybody!I have a problem with collision in java3D.I use WakeupOnCollisionEntry. It's ok if an object collides an other.But if an object collides with a series of other objects, only the first collision is detected...I have found a message which explain that impossible ...

help me this is urgent

549 byte By andylimp12a at 2007-11-27 2:26:50
hi everybodyi am doing the encryption/decryption using AES(256bit key) using SunJCE provider following is the codeString key2 = "FFF3454D1E9CCDE00101010101010101";byte [] keybytes = key2.getBytes();SecretKeySpec keyspec = new SecretKeySpec(keybytes,0,32, "AES");My program is working fine but in ...

Adjust Mixers Volume (Master, Wave, Mixer, Microphone,)

157 byte By wr34ta at 2007-11-27 2:27:43
I woul like to adjust mixers volume such Master Volume, Wave Volume, Mixer, Microphone. How can I do it in Java Sound API?Thanks.

OutOfMemoryException

493 byte By AP_javaa at 2007-11-27 2:27:54
Hi,I have written code for web base image viewer to performed some basic operations like zoom,rotate ,brightness.For that i have one class. I am calling this class methods for particular operation .Then taking modified image in buffered image.But main problem is that when i performed operation ...

Need an exemple of arb shader use

262 byte By Selkisa at 2007-11-27 2:28:07
Hi,I need your help, i work on a project and i need to use ARB shaders.I only find exemples using GLSL on the net and i don't know how to use ARB shader inside Java3D.Does anyone have an exemple to show me how to use it (sample code)

GUI and Thread... No error ,, but no run Why ?

15043 byte By alhairana at 2007-11-27 2:28:32
Hi all How are you This cods in GUI and Thrad 'smoole code Train and move i need if on Click to "Check" orlredy The Train crop upand i need BackTrain ;cooods ..import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.lang.Thread; public class TestT{public static void ...

I have been asked to capture both sound and screen as a video.

228 byte By jahansoza at 2007-11-27 2:30:23
Hi all,I am new to JMF.I have been asked to capture both sound and screen as a video.The source for audio could be from mic or software or operating system.Any help is appreciated.Thanks

help Problem uploading credential to DB

1833 byte By cup_joea at 2007-11-27 2:30:26
Hi,I am trying to upload a public key cert in .pem format to a MySQL database, using JDBC. Having read the cert out of a file successfully, as a String, I pass that String to an upload method. Since I had problems just uploading the String (in the values clause it translated to nothing, and ...

Implementing a Fast Fourier Transform in a Rabin-Miller Primality test.

8060 byte By evansentera at 2007-11-27 2:31:03
I feel like one of those people that calls into a radio station, "Hi, I'm a long time listener, first time caller, my question is..."I'm an undergraduate CS student working on a program that determines the primality of a number, and opted to use the Rabin-Miller test to check. On Wikipedia ...

link for javax.media.jai.* planarimage/histrogram

625 byte By cakea at 2007-11-27 2:31:29
Hi,I am trying to use:import javax.media.jai.PlanarImage;import javax.media.jai.Histogram;in my project but they cannot be resolved because I don't have them! I have downloaded several jre's but so far I have found no jmf.jar (though they contain a lot of other javax.media.* files)! Can ...

javax.media.jai error message

1184 byte By cakea at 2007-11-27 2:32:19
Hi,This is probably more of an eclipse message so i am sure I will get slammed for posting it, anyway...I have set a path to my necessary jai_cor.jar files, though now it does not show any error messages, when i go to compile I get the following error message:Exception in thread "main" ...

JMF Fobs (No sound issue)

672 byte By alam.shera at 2007-11-27 2:32:50
I am trying to add support for .3gp and MP4 file formats in my application. I have used FOBS to achieve this everything works fine except that i cant hear the adio in he movie and only video is played.This has been a known bug in the FOBS and they have provied a guide to remove the issue. I ...

Specifying a security provider for SSL operations only?

954 byte By Tata at 2007-11-27 2:33:12
Hi all,I have a question with the settings of security provider for one of our Java applications. The application uses a hardware cyrpto token for certain crypto operations. Now, we need to add the BouncyCastle security provider to handle the SSL connection (in particular, we need the latest ...

How to implement Record Protocol?

514 byte By java80a at 2007-11-27 2:33:34
Hi,I have to implement the SSL protocol in java.As the SSL consists of 2 layers:Handshake and Record Protocol,I need to implement both of them.I have got lots of examples on Handshake protocol and was successfully able to write the code for handshake protocol.My problem is I am not ...

'add'.....problem...?

1170 byte By vivinda at 2007-11-27 2:36:08
Hello,I am working on college抯 project & I am facing a problem , here problem is ask using simple example : /*<applet code="btnadd.class" width="500" height="500" > </applet> */ import java.awt.*; import java.applet.*; import java.awt.event.*; public class btnadd extends Applet ...

Ploting a 2D graph bioinfo-rmsd value of set of c-alpha

1105 byte By govind_kailasa at 2007-11-27 2:36:30
i have set of values of XYZ coord and the result of their RMSD(root mean square deviation),all these are stored in a file... so i need to plot a graph by reading this values from the file.the file content is shown belowX Y Z coords for model:1X Y Z coords for model:3Distance btwn the ...

help needed...

234 byte By anilsdomaina at 2007-11-27 2:37:50
Hi,.....for deploying a java application on a client system i need to check whether JMF is present on the client's system,as the application make use of JMF.So,how should i do this checking stuff through my application.

Getting Polygon out of the Area

730 byte By skifracea at 2007-11-27 2:38:17
Hi,I have an Area and after some transformation I am trying to get the Polygon out of it. Does anyone know the best way to do it? Here is my code snippet:int[] tPointsX= {0, 0, 100};int[] tPointsY= {0, 50, 50};int tN= 3;Polygon triangle = new Polygon (tPointsX, tPointsY, tN );int[] sPointsX= ...

Center of a Sphere in Java3D

152 byte By cky880a at 2007-11-27 2:39:50
Is there any way to find the center of a sphere object in Java3D?I'm not talking about a bounding sphere, just a sphere.Thank you.

MD5 <-> subString

605 byte By VOPa at 2007-11-27 2:40:43
Hi,I have a little problem with MD5 in combination with subString.MessageDigest md = MessageDigest.getInstance("MD5");byte[] temp = (""+userID).getBytes();md.update(temp);String hash = (md.digest()).toString();md.reset();If userID is 512 then hash is [ B@182f0dbString dir = ...

Grayscale to RGB

260 byte By Yann_LGa at 2007-11-27 2:42:38
Hello,I am trying to convert a grayscale image (pixelBits = 8 numComponents = 1) to an rgb image (pixelBits = 24 numComponents = 3).There are many tutorials to convert RBG to grayscale but not the opposite...Any idea ?Thanks.

mouseClickEvent

3745 byte By e2nua at 2007-11-27 2:43:39
I'm working on a code that allows a user click two similar shapes and then draws a line to connect the shapes. The code I currently have running just connects any two shape components clicked.How can I code my components to only connect similar shapes and further assign scores upon each ...

How to use the RSA key files generated by Crypto++ in java

3434 byte By carda at 2007-11-27 2:43:52
Hi - Good day to all :)I have two RSA key files(private key file and public key file) generated by Crypto++ 5.2.1: code here: void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed){RandomPool randPool;randPool.Put((byte *)seed, ...

How to test video chat on one computer?

188 byte By spawacza at 2007-11-27 2:44:33
I can't test any transmision on one computer, I can transmit captured video to 127.0.0.1 but I can't receive it (unable to create sesion manager). Do I have to test it on 2 hosts?

Video Frame as Image - Help

730 byte By --stallion--a at 2007-11-27 2:45:19
Hello,I am having some serious problems in trying to get this workingso if u have any idea to get it working please help.Aim : I need screen shots of a movie, what that means is I need certain frames of the movie as images. Say for example, the first frame, the 20th frame, and the 60the frame, ...

Java3D zooming in SimpleUniverse problem

1199 byte By SilverSurfera at 2007-11-27 2:45:26
Hi, I'm fairly new to Java3D and I'm using a loader to load a number of files into my program. It is basically just a city landscape and I'm loading each building separately. I used translate to place the buildings where I want to and then added them to the BranchGroup and then to the ...

simple question yes or no

57 byte By spawacza at 2007-11-27 2:45:43
Can I test AVTransmit2 and AVReceive2 on one host?

Speed, iterating through an image

532 byte By cakea at 2007-11-27 2:45:57
Hi,What is the quickest way to iterate through an image? I want to treat it as a two dimensional array[][] and access the colour values at each point for comparison.Within the JAI can the image be made to exist in that format, such as with raster... I am just wondering as I would like to go ...

How to get Subject from within Policy.implies()?

427 byte By Alisa at 2007-11-27 2:46:23
I have to create a dynamic (changeable at runtime) security environment, so I have extended Policy class and overridden implies method. I need to make decisions based on subject. How can find it from within this method?Is there already any Policy implementation that can do this(dynamic ...

Audio Mixer

948 byte By Servant@AKa at 2007-11-27 2:46:52
Hi all;I invite java programmers interested into java Sound API to visit the following link : http://www.jsresources.org/examples/AudioConcat.htmlthis page contains an example of an audio mixer . however the authors of this program made this note :Bugs, limitations. This program is not ...

Where is private key Stored

214 byte By pkta at 2007-11-27 2:49:41
Hi All A digital certificate has public keys. But what i am not able to understand is where is the private key stored. Please anyone can help me out on this issueThanks and RegardsPankaj

HTTP Client authentication by java code

268 byte By gcpbsba at 2007-11-27 2:50:17
Hi,I have an HTTP server that I can't change its configuration to provide client authentication by my web server.Is there some way to check by java code if request is provided by a trusted client that is in my truststore?Thanks in advance.

javax.net.ssl.SSLException error

6273 byte By BillLea at 2007-11-27 2:54:55
I'm getting the following error on Apache Tomcat/4.1.24 (Java version is 1.4.2_11-b06). Can anyone shed some light on what may be the cause of this error?2007-05-01 12:20:11 StandardWrapperValve[default]: Servlet.service() for servlet default threw exceptionjavax.net.ssl.SSLException: ...

Drawing 2 Cliques with one common Node

1398 byte By Jona_Ta at 2007-11-27 2:56:51
Hello Friends,Do anyone know how to draw 2 Cliques with both cliques having only one common node out of the rest nodes. Example, if I have a clique with 5 nodes ( A, B, C, D, E) and another clique with 4 nodes (F, G, B, K), that means B is the common node for both cliques.I tried it out with ...