23172 byte By
faivalina at 2007-11-27 3:51:07
hi all,I have some problems when I try to save the streaming data provided from my Ip camera to a file. I think it is the best way to record the MJPEG streaming in order to preview later the video from this file. I have three classes AxisCamera, to connect to the camera, preview the MJPEG ...
I am trying to work with SSL in Oracle 10. Unfortunately Oracle is packaged with JVM 1.4.1 and I need to use a cipher suite (TLS_RSA_WITH_AES_128_CBC_SHA) that was introduced in 1.4.2.I've looked around a lot for ways to plug in new ciphersuites but haven't had much luck finding anything. In ...
now i starting to make a game .now i have my menu page,but i don't know the structure of java file.what file should i have in the structure ?(eg.menu.java,main.java,?,?)if there must a main.java, what is main.java use for?and what is the main structure code?i ask this question because i saw ...
1740 byte By
sakpaya at 2007-11-27 3:55:19
Hi, I am trying to use the standard security packges in JDK : import javax.crypto.*; import java.security.AlgorithmParameters; import java.security.Key; import java.security.KeyGenerator;andthe code :public static void main(String[] args) {try{ KeyGenerator keygen = ...
HelloI have developed an application for real time video processing using JMF. Now my problem is that I would like to make detection of the web camera easy for the user. That is, without he having to go to the JMF Registry, I want to make it possible to detect his web camera. Please help me ...
337 byte By
rvdba at 2007-11-27 3:56:53
Dear Allis it possible to use JMF on Windows XP (capturing from webcam) without installing JMF as administrator?We have networked machines available with Java and Processing running and i would like to use JMF, alas we don't have adm rights on the machines and thus cannot install JMF.Kind ...
Hi guys .. a set of fresh eyes is all I need... In the following program its very simple, but I can't make it work..I want to draw a simple image over a background ... the thing is it DOESN'T work, it only loads the image if I click on the frame or resize it....if I take all the listeners out ...
483 byte By
HenOYa at 2007-11-27 3:57:47
Hi,I am doing capturing an image from an applet and save it to the server. I did try 2-way communication between applet and servlet and it succeed.But actually I just need a one-way communication and I tried without getting anything from the servlet but i failed. It doesn't even go to the ...
661 byte By
Jona_Ta at 2007-11-27 3:58:22
Hello Java2D Friends,I have a 2-dimensional Char Array. Each row contains a number of Chars which I draw as clique. My intention is during the first iteration, I draw the first row as clique of chars. The second iteration will draw both the first and second in different areas of my GUI, the ...
i have the menu and i create more java file. i want to click new game form gamemenu and change the screen of Jframe to a playscreen.but it have a problem form the startgame() method.how to fixed this?Downstair.javaimport javax.swing.*;import java.awt.*;import java.awt.event.*;import ...
is there any way to key java to emulate a key being pressed. i need it control a media player by using the media players shortcut keys. so when an event happens it will send a pre determined key to windows?
Greetings,I am writing a drawing tool and using affine transform to place my shapes. The problem is, I do not know how to map the cursor such that it's coordinate space is the same as my shapes once I have transformed them. Can anyone help me? Below is a simplified example. If you compile and ...
Hi, I need to deploy an applet using Java3D package. Trying to avoid the installation hassle (on the client side), I want to put the three packages available on the server (j3dcore.jar, j3dutils.jar, vecmath.jar), and then add the class path of these jar files in the manifest of the applet jar ...
71 byte By
sitha at 2007-11-27 4:04:31
Prompt please, what values should be at constructor AudioSystem.
when i try the codeRobot r = new Robot(); r.keyPress(20); r.keyRelease(20);it works for all the VK values i found except for 20 for return, i jus get Invalid key code Eception. can any one tell me the integer code for enter?thanks
i want to make a background image on Jframe.and i want the background image change like a game (menu page to play game page)?How can i make a background image on Jframe?and if i want to make the above effect. what thing i should now about it?are there any simple method to do this?do anyone know ...
3567 byte By
PaganBa at 2007-11-27 4:07:15
Hi, I am receiving the following error when I attempt to add a crypto provider. java.lang.ExceptionInInitializerErrorat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)at ...
I guys, i'm new in jmf (fobs)world. I have coding a simple video player. My question is:is it possible to stop/play/pause the video whit keyboard? I'm thinking about keylistener but while the video is playing i can't I am not able to access the function to stop the video flow (is JMF ...
554 byte By
williwa at 2007-11-27 4:07:54
I'm trying to draw a set arrows along a path like on a map, I have the begin and ending coordinates.I tried to draw a stroke with rectanglur shape, then fill in the shape, but I couldn't get it work.The idea was inspired from www.jhlabs.com/java/java2d/strokes/The arrows need to evenly spaced ...
5029 byte By
jperalaa at 2007-11-27 4:07:58
Hi,I know here is many topics which are close to my own but I can't find answer of them. I'm doing client-server program which can play sounds with streams. I want also play mic data which is coming from other computer. File sending from other computer works well. I have to receive many files ...
Hi all,As I'm fairly new to java programming for games I thought I would try my hand at something simple like a 2D card game. The card game I picked was Canasta although you probably don't need to know that it might help you understand my method.The code sample is from one class of many ...
28885 byte By
momosaaa at 2007-11-27 4:08:09
Welcome wrote this code, everything is true but there is a logical problem to be solved first idea of this program is a moving train to the contrary, it can stop and operated once again and that can add cars and locomotives and can delete it but there is a problem when adding that the train ...
182 byte By
Pintoia at 2007-11-27 4:08:11
Hello i have two usb cam at my pc.But i can't use both with jmf what should i do? why capture device list only detects one cam?Please can someone help me?Thanks
244 byte By
JAP43a at 2007-11-27 4:09:35
i have a form made with flash, and form handlers made with java. So how can i make it work. i have couple java packages that make the calculations from the values given in flash form.any good websites that have info about java and flash?
hi crwood ,thanks for your suggestion of the structure.now i have this structure, but i don't know how to use Event class to handle a event.Do you have any exsample?now i try this code but the event handle part is not work.import javax.swing.*;import java.awt.*;import java.awt.event.*;import ...
How can you play music in an application? I would like the music to change to certain events such as pressing a key. I have tried this way:AudioPlayer p=AudioPlayer.player;try{AudioStream as = new AudioStream(new FileInputStream("music.wav"));p.start(as);}catch(IOException ...
131 byte By
hanane1a at 2007-11-27 4:10:25
Hello,I would like to parse a DER encoded file ; can any one forward me on how to do that in java.best regards
798 byte By
shay_tea at 2007-11-27 4:11:44
i am using JMF player to play moviesi have downloaded some codecs (jffmpeg)but one thing is missing displaying subtitles i been searching google but find nothingThere is something written all ready or should i start thinking how to do it my self.i am thinking about using a glass pane to draw ...
i want to draw a image random and they are not stick together but i try that code it only have one image show up.how to do draw a image and they are not stick together too?and i have one more question how to make a image stand on other image . because i want to make a person walk on a ...
i want to make image mov e i do this code but there is no error and the image doesn't move.How to make it move?import java.awt.*;import java.awt.event.*;import java.awt.geom.Ellipse2D;import java.awt.image.BufferedImage;import javax.swing.*;import javax.swing.event.*;public class Downstair ...
Hey,I've had two, similar strange experiences with MD5-encryption. I'm currently testing and developing an application, with users and passwords and stuff. In the 'add new user'-section, I've got two password fields. In 'processnewuser.jsp' I compared MD5-hash 1 to MD5-hash 2, coming out ...
1087 byte By
flexeda at 2007-11-27 4:13:13
Hello all,I have a very big image and don't have enought ram to make a copy of the image in the buffer. So, I want to convert this image partly and on each iteration append an image part to a file.BufferedImage bigImage = ImageIO.read(new File("bigImage.jpg"));for (int i = 0; i < 100; i++) ...
Hello, I am a student and new to using the JMF, please give me some pointers and directions to look for.I am starting a project that requires a computer to transfer screen caps to several computers(say 8 computers) simultaneously.The image will be 800*600, it must not be blurred but the color ...
Track 0 is set to transmit as: unknown, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 176400.0 frame rate, FrameSize=32 bitsjava.io.IOException: Format of Stream not supported in RTP Session Managerwhy this erro occors?if need i put more code and more explanation here.(was ...
Hi all,I want to create an application in SWT, which is able to play all types of music files. By using JMF i am able to do it in Swing, but i want to do it in SWT. (Should not use any AWT components). Can any body tell how to do this ?Thanks in advance !!
192 byte By
fins4ua at 2007-11-27 4:15:23
Hi,I would like to encrypt and decrypt the content of an XML file. How I can perform that? Please help me to do so.If any of them have source code for this, please.
Hello,I'm using a diffie hellman key exchange algorithm. So I created a publickey and sent it to the server.Here, I have a problem coz I sent the publickey as a string and I used byte[] publicKeyBytes = publickeystring.getBytes() to get the bytes value.This gives me a "Invalid Key spec ...
352 byte By
flexeda at 2007-11-27 4:19:08
Hello all,I open JPEG, make some transformations and want to save it again.Is there any possibility to get the quality of the file I have opend and to save the JPEG with the same quality as it was created.In other words I want to find out this quality param:encParam.setQuality (1.0f, ...
952 byte By
pkta at 2007-11-27 4:19:30
Hi All I am working on application that requires to do encryption and decryption using public and public key. I need some guidance on how to implement this functionality. The only requirement is to have public key and private key in two different files. For public key i can get it from .cer ...
how to make one image stand on the other image?
7651 byte By
Fenrisa at 2007-11-27 4:19:56
I'm writing a program for a Pong-like game, but I'm having trouble with the angles. I'm using two variables: XSpeed and YSpeed, for the ball, and every timestep I add XSpeed to XPos and YSpeed to YPos, then I redraw the ball using the statement Draw.fillOval(XPos-Radius, YPos-Radius, ...
hii hav made a website where users can upload videos.....how can i play the uploaded videos of all formats......my concers are video buffering and traffic managementthanks
where can i download javax.media.* libraries from?thanks
I'm new at programming and I wanted to make a small physics simulator for an assignment. I have to get the program working by tonight, so I thought that someone in here might be able to help.I am trying to add some collision detection to my program.. I have a ball that drops and I want it to ...
6315 byte By
Anantja at 2007-11-27 4:25:04
Hi all,I'm using the code below to play a simple wav file in Linux:==import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import javax.media.ControllerEvent;import javax.media.ControllerListener;import javax.media.EndOfMediaEvent;import ...
i just want to show a picture as a JButton on JFrame,the picture's path is the path of the project,bu when the program run ,i can see the frame,bu can't see the picture,why ?import java.awt.*;import javax.swing.*;public class UseImage extends JFrame {JButton bn;ImageIcon icon;public ...
Hi. I need to draw some lines in one class that I have in a program, and then, when I have my lines drawed, I have to send those lines to another class that have the JFrame and put this lines on the content pane to display it.My first problem is that I dont know how to invoke a method that have ...
i want to move the image auto going down when i press enter or space bar.i do this for my codebut it does't work.class Playscreen extends JPanel {ImageIcon playbg;ImageIcon playerIcon;ImageIcon[] stair;int floor;int live;Point loc = new Point(100,100);int dx = 3;int dy = 3;Rectangle[] ...
Hi,Which is the best way to compare X509Certificates? My system should authenticate users by their certificates and I磀 like to be able to compare the certificate presented by the user and the one - or the info stored about it - in my system. Using serial number could be a good approach but I ...
1486 byte By
Kiwiguya at 2007-11-27 4:32:16
Hi,I want to embed data in my application which I have encrypted and signed using strong cryptography, so that the application can verify the data (assuming the application itself doesn't get changed).Currently I construct three byte[] arrays: 1.) DESede encrypted data 2.) RSA encrypted DESede ...