page code flipping (simulation for real page/book flipping)

576 byte By JDragona at 2007-11-27 6:41:39
can anyone provide me with the code to flip an image; I mean by flipping the image simulate a real page flipping, the same thing happens while you are flipping the book.what i real need, is one page book (not two pages), then try to flip this page as the real book (somehow).any hints, you can ...

Accessing private key on Windows with SunMSCAPI (JDK 1.6u1)

552 byte By jrrubioa at 2007-11-27 6:44:27
I need to be able to generate PKCS7 signatures with certificates and private keys stored on Windows. I抳e tried to do that by using SunMSCAPI provider (JDK 1.6u1), but I haven抰 achieved the expected result. My program runs without errors and generates a signature, but the generated signature is ...

Deploying jmf

487 byte By abshirf2a at 2007-11-27 6:45:06
Hello all,Need some serious help because of time pressure!Okay, i have a few classes that record video from a webcam or any other device that can record video. What i need to do now is to deploy this on a website? Is this even possible, i mean can i embed it like an applet? By the way i don't ...

image on......

815 byte By vivinda at 2007-11-27 6:45:23
hi my problem :public class img extends Applet{pic kk;kk=new pic(this);----public void init(){ add(kk) ;--}public static void main( String[] args ) {Frame frame = new Frame( "Image" );--}}class pic extends Applet{public void init(){try{ i=getImage(getDocumentBase(),"yu.jpg");}catch(Exception ...

JMF with Optelecom IP Encoder

2861 byte By englanderma at 2007-11-27 6:45:29
I'm trying to access a hardware codec from JMStudio. Eventually I'd like to be able to do processing on the video feed in java using JMF, but at this point I am not even able to connect to the codec.The codec serves MP4 video in an RTSP feed. I realize JMF does not currently have support for ...

Player - checking for if it's playing

119 byte By Consideratea at 2007-11-27 6:45:34
Hi I'd like to know how you check if a RealizedPlayer is stopped or playing someting.//Thanks in advance

error in framerate output- changing code of dyble

1863 byte By federico81a at 2007-11-27 6:46:18
i've used and changed code write by andy dyble(jmfcam05s.java), for read stream not from a cam but from a file plain avi, i've put in input a file with different framerate such as 5-10 or more until 100, but the output is always the same for fixed format(like 640*480 ...

Setting the JFrame size for my Maze

2613 byte By cbr_madmonka at 2007-11-27 6:47:27
G'day Guys, I'm having trouble setting the size of my main JFrame appropriatly for my Maze. I am generating a maze by creating a series of lines in my DrawMaze class (which extends JPanel):g2d.draw(new Line2D.Double(x, y, x, y) This works fine. I then go to sick it in a JFrame in my main ...

Web Cam Through Browser

185 byte By VinuRocksa at 2007-11-27 6:47:51
Hi all,Can anyone please tell me how can i run my web cam through Web - Browser in java using JMF? ( Live video from camera to Browser )Thanks,Vinayak

Video Surveillance/Video Streaming

536 byte By bro_firdausa at 2007-11-27 6:48:35
Hi guys. Currently i am doing a project based on live video streaming on Ip camera to mobile phone using the emulator of P900. Its kind of like a mobile surveillance thingy where mobile users are able to view their ip cameras at home to the mobile phone. There's also video streaming to the web ...

Corrupted images using ImageIO.read.

1258 byte By jid1a at 2007-11-27 6:49:15
I have looked around and it seems to be a lot of confusion about the point that the corruption occurs. After trying a lot of thing I simplified it to the following code:final BufferedImage bimg = ImageIO.read(file);JComponent mC = new JComponent() {public void paint(Graphics c) ...

Need some suggestions on encryption / decryption code and process

4341 byte By kcook1973a at 2007-11-27 6:50:34
I am using the code below to provide file encryption of highly secure data on Sun servers. Below is strictly an example of my encryption / decryption algorithms stripped to the minimum and embedded in main(). The code works fine and performs as it should. Here are a few questions I have for our ...

Running two JMStudio instances on same machine problem

1283 byte By cs02lk1a at 2007-11-27 6:51:35
Hi,My name is Costas and I am facing a problem regarding multicasting.I want run an application which forwards multicast data to Unicast clients and I am implementing it in JAVA.I have aproblem because I believe that my laptop does not support multicast. Why I say that? Because a week ago I had ...

DES Encryption OutputStream Error

7533 byte By rpalm01a at 2007-11-27 6:52:39
OK. I'm confused. What am I doing wrong in this code that I get a weird null runtime everytime with an odd java result?This was developed on a Windows XP 32bit system using the Java Studio Enterprise 8.1 IDE and JDK 1.5.0_06 (however, whether I run it inside or outside of the IDE I get the ...

array index

607 byte By screenna at 2007-11-27 6:52:45
Hi! I need some help. I do proccess images and I do like that:DataBufferByte buffer = (DataBufferByte) image.getRaster().getDataBuffer();data = buffer.getData();data2d = new byte[iw][ih];it works fine.but when I want to change the data let's say like this:for (int i = 0; i < iw; i++) {for ...

Recommend me a speech api or program to integrate with my application

804 byte By Jordi_rca at 2007-11-27 6:58:52
helloI am developing a commercial application. I need to have voice synthesis.I have tested FreeTTS and got it work.But it has just 2 voices (both male). The process to make a voice or import some seems difficult, and seems I have no control on pitch or tone.I used to use Lernout and Hauspie in ...

AffineTransform

1565 byte By PaRlOaGna at 2007-11-27 6:59:11
Alright, I'm writing a game where you are a soldier that runs around shooting stuff. Pretty simple, right? The game's GUI is where you're looking down on top of the map(non-scrollable) that's made up of about 50 or so obstacles and blocks. What you're doing is you're pressing right to ...

Java plays midi with custom soundbank strangely.

4517 byte By P57a at 2007-11-27 7:01:22
I try to use Sonar 6 and Beatnik to get a good sequence.My problem is I cant delete piano instrument from the sequence while playing.I use MIDI Yoke 1.74. Sonar 6 and Beatnik 2.1.0.1Java 1.6.0My steps:I. 1. Run Beatnik. 2. Set MIDI Yoke NT:1 as input device. 3. Create new session 4. Load some ...

AES Encryption using JCE

5252 byte By jakuarvima at 2007-11-27 7:01:38
I have taken the program for AES encrytion and decryption from the site " http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html"It is working fine if i haven't change any pat of the program except the input to encrypt. I couldn't able to decrypt data of my own. that is i ...

Waveform display

111 byte By bharathga at 2007-11-27 7:02:22
Does anyone know how to display a waveform for audio files, using Java image or sound apis?cheers

image in TextArea Or TextField

191 byte By vivinda at 2007-11-27 7:03:12
hi,i want image(picture) in TextField or TextArea ,is ti posible then plz help.& if not then tell any alternative so i can scroll images in Panel or canvasThanks.....

Draw a line over a JLabel

576 byte By lon22a at 2007-11-27 7:03:13
Hello,Does anyone know if there is a way to draw a line over a JLabel. The scenario is that I have a Jpanel that uses a Gridbaglayout and has an array of JLabels(to display images). I have the need to connect labels and to have the line draw over any labels that it intersects. I know this can ...

Decryption problem while - Urgent

192 byte By JavaBaby@79a at 2007-11-27 7:04:13
Can any one suggest why this exception araises:java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object.Thanks,nareshG.

Avtransmit laggy slow streaming

261 byte By jwonathana at 2007-11-27 7:04:42
Hi,i'm using avtransmit3 and avreceive3 and it does work.My problem is : it's really slow even if the framerate is allright (30) and not synchronised (audio and video)Hope someone can help me,thanks in advanceJonathan

what happened if I call doFinal() without any input?

768 byte By LiveByJavaa at 2007-11-27 7:06:01
Hi,In partial of my encryption code using PBEWithMD5AndDES, by giving pass phrase, salt and iteration count, the key was generated. I used the following code to generate the output ciphertext[]:PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, iterations);SecretKeyFactory keyFac = ...

Text tool for a drawing applet

1039 byte By CbbLea at 2007-11-27 7:06:10
Hi!I've made a drawing applet where I can draw different shapes like rectangles, oval, polygon etc on top of a JPanel.Now I want a text tool. I want to be able to serialize an instance of a text object created from this tool so it can be sent through a network. So it can't be a component like ...

need an encryption solution between the browser and the Java tier

597 byte By subhrajyotia at 2007-11-27 7:09:44
Hi All,I am a java programmer and have really limited knowledge about cryptography. I work on JSF . I am basically looking to build a component that will ensure that the password entered by the user on the browser is properly encrypted using Java script and then we should be able to decrypt it ...

reading PDF and convert each single page to an image

429 byte By JDragona at 2007-11-27 7:09:56
I need to read a PDF and do the following:- determine the number of pages.- determine the chapters (Tree/Hierarchy of pages ).- determine the height and width of the page.- convert each single page to JPG image.is there any clear and simple API that contains these functionsi tried PDFBox, but ...

scrollbar in Panel.....help

1644 byte By vivinda at 2007-11-27 7:11:00
hi.... i have to add images(picture) in Panel .because I have to add more pictures(image), scrollbar (or JScrollPane) will require please help me how to do. U can also help in respect of following program, Thanks.// <applet code="AnImageApplet" width="400" height="400"></applet>// ...

How to get scale to work properly on text

4320 byte By 4fingersa at 2007-11-27 7:11:28
I have been having problems scaling down text to fit inside a 5 by 7 grid as show here: http://forum.java.sun.com/thread.jspa?threadID=5181810Unable to get an answer I decided to simplify the problem I am having so I have come armed with a simple example and images.First off I used the ...

Image scaling problem

2872 byte By amishera2006a at 2007-11-27 7:27:10
Hello,I have been trying to scale an image to create a thumbnail. The thumbnail image size is around 200*200. The thumbnail is to be rendered on a web browser. My code is:public static byte[] getScaledImage(InputStream imageData) throws IOException {Image origImg = ImageIO.read(imageData);int ...

detecting object in images

171 byte By aneuryzmaa at 2007-11-27 7:32:18
Hi,how can I detect objects in images using java ?I need to detect movements of an object in consecutive images exported from a video.thank you

Area Info

80 byte By dantoniOHa at 2007-11-27 7:33:32
Hi. Is it possible to extract multiple Shape objects from an Area object?

Problem with Graphics 2D scale and manual scale on multilayer. please help!

1293 byte By shaselaia at 2007-11-27 7:34:22
public void paintComponent(Graphics g){ Graphics2D g2d = (Graphics2D) g; if(image != null){g2d.scale(scaleFactor,scaleFactor);g2d.setComposite(AlphaComposite.getInstance (AlphaComposite.SRC_OVER, ...

Problem with drawing Swingcomponents over the Videocomponent

3161 byte By BlackCrazea at 2007-11-27 7:35:06
Hi there,I'm trying to draw a simple Swingcomponent over a running video - I read in the Forums for days - nothing helped. I don't know why it still don't work.LIGHTWEIGHT_RENDERER is already usedJLayeredPane is already usedPlease help me - I don't what I can do anywaypublic class ...

250X increase in BufferedImage draw time from 1.5 to 1.6

6339 byte By compuwinna at 2007-11-27 7:37:30
I had a program running fine in 1.5, had 3-4ms to draw 45 of the image to the screen, for a large image scaled small before drawing. Now after 1.6, I'm getting 820 ms for the same thing, and -version:1.5 will return it to 3-4. Did something change from 1.5 to 1.6? drawing the loaded image to a ...

Why does we need ImageIcon instead of Image?

662 byte By amishera2006a at 2007-11-27 7:37:50
Hi,Why do you need ImageIcon in this case?Image origImg = ImageIO.read(imageData);origImg = origImg.getScaledInstance(newImgWidth, newImgHeight,Image.SCALE_AREA_AVERAGING);origImg = new ImageIcon(origImg).getImage();BufferedImage bimage = null;bimage = new BufferedImage(origImg.getWidth(null), ...

Decrypt SHA1?

662 byte By basti78a at 2007-11-27 7:38:40
Is there a way to decrypt SHA1? I have encrypted SOAP message's UsernameToken password: String sha1Hash = null; try {MessageDigest md = MessageDigest.getInstance("SHA1");byte[] digest = md.digest(text.getBytes());sha1Hash = new String(Base64.encode(digest)); } catch (Exception e) ...

Problem with scaling

1882 byte By amishera2006a at 2007-11-27 7:39:27
Hi,I was using the following code:InputStream imageData /*= .initialization code*/;try{byte[] bytes = FileCopyUtils.copyToByteArray(imageData);RenderedOp renderedOp = JAI.create("stream", new ByteArraySeekableStream(bytes)); // byte[]ParameterBlock pb = new ParameterBlock();pb.addSource( ...

Need a help for video conferencing project

364 byte By bindhu_11111a at 2007-11-27 7:41:16
Hi,i'm doing a video conferencing project . But Jim (JMStudeo) preference window shows only audio capture device . It doesn't display any video capture devices .I don't know why it doesn't displaying . is it need to be done anything extra to capture video devices using JMF. expecting an ...

Transmit and Receive RTP over the same session

654 byte By rtpa at 2007-11-27 7:41:40
Hi,I'm working on a voip client.I'd like to know if there is a methot to trasmit and receive a RTP flow over the same session.For example: suppose to have a client A and another client B.Client A has: ip 192.168.2.1 and port 22222;Client B has: ip 192.168.2.2 and port 33333;The flow should go ...

Keyboard Interaction

226 byte By psyfenga at 2007-11-27 7:41:54
I want to use some keys, such as arrow keys to change the line length drawn by java3d. And I don't want to use the scale method.How could I deal with it?Thanks,Message was edited by: psyfeng

Fitting a curve with Path2D

805 byte By James_Vagabonda at 2007-11-27 7:42:11
Given N ordered sample points on a curve, I want to generate a Path2D (or PathIterator) with as few segments as possible that "fits" my curve. The Path2D curve does not need pass through all the sample points, but the max distance, or alternatively the sum of the squares of the distances, ...

reading bmp in java 1.4.2

122 byte By JusteUneQuestiona at 2007-11-27 7:42:43
Hello i have pb for reading bmp files as ImageIO.read does not support this format. How can i do ?Thank you.

Illegal Image Size

2467 byte By necro_ignisa at 2007-11-27 7:43:19
Hi, having returned to basic J3D bits and bobs for a few years now and I'm having some issues loading a texture.After having read through a few tutorials I have put together the following code. It simply creates a QuadArray of 4 points, sets the texture coordinates (which I don't know if I ...

painting rectangle at an angle?

447 byte By Spring85195a at 2007-11-27 7:45:34
Hi,There are 2 points, (x1,y1) and (x2,y2), a line is drawn before then using the drawline method, what I want to do it have a rectangle which will go from point (x1,y1) to (x2,y2).However, fillrect do not support any angle parameter and I can't find a method to the rotation.See the orange ...

Inverting a GeometryArray

377 byte By Vassimia at 2007-11-27 7:46:52
I've recently been playing around with the Java3D libraries to try and render a little game. I've figured everything out pretty much and I've gotten to the point where I have a GeometryArray for each room of the level but the problem is, when I play, the textures appear on the outside of the ...

Cryptography solution between browser and server without using HTTPs

1148 byte By subhrajyotia at 2007-11-27 7:47:02
Hi All, I am looking for a cryptography solution which I shall be using to encrypt the password being sent from the browser to the middle tier. My requirements are as follows :1. I need to only send the traffic in one way ie from browser to the java tier. So I guess I only need to generate 1 ...

Doubts about cryptography

2109 byte By TechnoSpikea at 2007-11-27 7:49:08
Hi to all. I'm new to cryptography, and although I've been reading about it and started trying to program with it I'm still having dificulty on grasping the concept of it.I intend to encryp (and decrypt) data (2 varchar columns) from a table in a database. I'm developing a new web page of a ...

HEX back to byte array while using AES encryption

1231 byte By manubhavea at 2007-11-27 7:49:18
Hello,I have downloaded the following code for encryption with AES standards.I noticed that the byte array is getting converted to hexa. Can anyone please guide me how to get a bye array back of the hexa value.Also, didn't understand why is the zero getting appended while converting to a ...