8455 byte By
CbbLea at 2007-11-27 6:27:19
Hi!Im drawing lots of different shapes like rectangles, polygons, circles etc on a JPanel. All the shapes are stored inside a model and are redrawn by invoking each objects paint(). This works fine.ProblemWhen I draw a shape, for example an rectangle, im painting it meanwhile im dragging my ...
404 byte By
JDragona at 2007-11-27 6:28:23
How can I distinguish whether TIFF Image which contains a Text if it is portrait or landscape?Explanation:1. TIFF image represents an A4 paper size.2. This paper contains Text inside it.3. TIFF Image (paper) should be displayed (flipped) according the Text orientation.4. Need to figure out the ...
7444 byte By
novakoma at 2007-11-27 6:30:53
Hi all,I'm a bit of a newb in java development, and having some trouble getting an implementation of symmetric encryption working. Basically, the design for the program I'm building uses the following encryption paradigm:1. User enters username/password2. System checks DB for salt associated ...
Hello All, In my last post, I was not clear, in the explanation of my requirement so that could be a reason for no replies I wanted to know whether there are any Java libraries that I can use to create a password protected zip file which will be recognized by WINZIPWill hope to hear back ...
189 byte By
spawacza at 2007-11-27 6:31:29
Hi,When I'm compiling and running program trough command line everything works, but when I created jar file from my application it wasn't working.What is the problem?
Hi friends,In axis client, for stub I can set connection time out by stub.setTimeOutbut how to set read time out for the same?Or the setTimeOut acts as read time out itself and not connection time out?Please enlight me.Regards,ChintanAppreciate your help ...
679 byte By
rtpa at 2007-11-27 6:35:18
Hi,I try to execute AVTransmit2 and AVReceive2. I execute them whit this lines:java AVTransmit2 javasound://8000 192.168.16.183 22222andjava ACReceive2 192.168.16.183/22222but I have the following problem: Unable to handle format: dvi/rtp, 8000.0 Hz, 4-bit, MonoFailed to prefetch: ...
Hi,I try to load a PNG image in my program : it works great with normal image size. But when I tried to load an image of 20000*100px, I got a NullPointerException.Here my method to load the image :BufferedImage graph = ImageIO.read("image.png");And when I use : ...
Hallo!I have the following simple piece of code that simply should connect to my tomcat using SSL. However I always get a strange exception. I run it using the VM Parameter: -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol. The really strange thing is, that when I test it ...
I use putty/ssh from my PC desktop. On a solaris9 system I cannot log in directly with root but I can with my Solaris10 boxes. What setting and/or configuration controls this remote login access?Note: all the machines are on the same domain.tksJG
where can i download free javax.speech package and other javax packages like microedition, etc...pls help me. juz gve me d link of where i should download it.thank you!
I'm currently using this everywhere.BufferedImage bi;Jlabel jLabel;ImageIcon img = new ImageIcon( bi );jLabel.setIcon(imgIcon);but now I've discovered I can write images directly to the component from paintComponent( Graphics g )(from a subclass of JLabel)public void paintComponent( Graphics ...
I'm trying to learn how to do transparencies using BufferedImages, not shapes. I'd like to:a) clone my RGB BufferedImage into an TYPE_INT_ARGBb) build a "mask" in the alpha channelc) transform the cloned image somehowd) then composite it back onto the source RGB with the transparency handled ...
How to run Web Camera on to the Web Browser through JAVA and JMF?
hi,i hav done a video transmission from Local PC to internet,i am sucessfull in transmitting video from LAN to Static IP pc, i am receiving it in the server using the public IP,but in reverse when i send video from Static IP server to public IP i am not recieving it in my system tat is in ...
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 ...
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 ...
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 ...
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 ...
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 ...
Hi I'd like to know how you check if a RealizedPlayer is stopped or playing someting.//Thanks in advance
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 ...
Hi All, I am using apache's commons net for my FTP client program. I have no problems with that. Now how can i also add the SSL into this program. I am completely new with JSSE. Please provide me with pointers. Thank youPradeep
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 ...
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
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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
I am trying to do what is now a privileged operation on Windows Vista (modify the local hosts file) from an applet. Can anyone tell me what I need to do to get the rights I need? I am currently getting a java.security.PrivilegedActionException when I attempt to modify the hosts ...
I'm implementing HTTPS communication and I would like to programatically add trusted root certificates. Ideally, I would like to be able to get the default trust manager and do something like:public void checkClientTrusted( X509Certificate[] chain, String authType ...
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 ...
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 ...
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 ...
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 ...
Does anyone know how to display a waveform for audio files, using Java image or sound apis?cheers
318 byte By
warxsga at 2007-11-27 7:02:44
Hi all,I have to authenticate myself to a site calling the url in HTTPS mode.I have to do this through a standalone application and i have a cetificate for the authentication.After sending the certificate, how can i know if the authentication is failed or not ?Cheers. ...
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.....
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 ...
I have a daemon that is not running as root but needs to run several restricted commands. The daemon is spawned via the cron table of a normal user. Most of the documentation I've seen discusses role based access which assumes a logged in user using 'su' and entering a password. I cannot get ...
Can any one suggest why this exception araises:java.security.spec.InvalidKeySpecException: java.io.EOFException: EOF encountered in middle of object.Thanks,nareshG.
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
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 = ...
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 ...
590 byte By
warxsga at 2007-11-27 7:08:18
Hi,well, i have to call an URL using https.I have a certificate to send to the URL for the authentication.How can i do this ?Is there a place where to put the certificate ?The certificate is installed on my Internet Explorer, so i exported it and save it on my computer.During the export process ...
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 ...
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 ...
1614 byte By
Ciobara at 2007-11-27 7:10:21
Hi all..I'm having this problem while trying to "sign" a jar.. I think the problem is in the manifest file, i'ts all on one lineManifest-Version: 1.0Main-Class: tchn.login.UpdateManagerClass-Path: DMtchn/DMlib/RMtotdSgn.jar DMtchn/DMlib/RMl2fprod-common-totdSgn.jar ...