hi i need an example using Vector collection to ensure its synchroniztionthanx
Hi,I have a Applet running on browser.This applet can accept only utf-8.When i store data in a database i am sending it thru Big5 chinese character set.So applet cannot display proper characters.how do i convert Big5 chinese characters to UTF8 and then make the applet show correct ...
Hi All, I am finding it difficult to understand different character sets on the web. I am trying to read a russian web page with cyrillic characters through my java app. The app works fine for english pages because all the characters are in ASCII (i can view the correct data via notepad - view ...
61 byte By
mihirdma at 2007-9-29 18:50:18
is there any way that java can touch windows registry?
434 byte By
DK21a at 2007-9-29 18:51:12
HiAnd many thanks in advance.First of all I would like to say that I use Java 1.3.1My problem is the following:I create an array of java.util.Dates and then try to sort it.When all dates are in the same year e.g. 2003 then everything works fine.If one or more Dates are in 2004 then I get a ...
Can any one help me to do this: Make a class Employee with two data members: name and salary. Supply a non-default constructor and accessor methods for each data member. Make a class Manager inherit from Employee. Add an instance field: department. Supply a non-default constructor and an ...
10677 byte By
legacyea at 2007-9-29 18:59:47
[red]This message was edited by legacye at 2003-12-9 20:29:17[/red][hr]Hey...im having a little problem with this program.It normally takes in two files containing linked lists of data (normal) is the normal data and (test) is data which we know has errors in it.It gets the gaussian ...
Hi all!I am developing a small chat application where the data typed at the client on a textarea should be reflected in the textarea at the server. I can send data through the network and append it at the client. But if I want to handle the special keystrokes like backspace and all, I need to ...
Hi everybody,I designed a calculator, and I need help with the rest of the actions. I know I need to use the different Math methods, but I tried tried that and it didn't work. Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I ...
Hi ,I have a j2EE application which has both thick and thin clients,since the functionality is same for both the clients except the gui(JSPs and Swing Clients).. all the wrappers are externalized.In case of using the same wrappers in JSP will it cause any Performance Problems since we dont need ...
777 byte By
itim100a at 2007-9-29 19:22:43
I am trying to write or find code to evaluate an inputted string for a boolean result.For example:Say I have String "a*a + b*a == c+b";Currently in my code i goboolean check = (a*a + b*a == c+b);i need to have the equation be inputtable by the user. There is a javascript method eval(String ...
Hi, I am not familiar with Image/graphics stuffs.Is there an API for combining multiple images into one big image ?For example, I have four identical size images, 1.jpg, 2.jpg.i need to be combined to into one image .means 3.jpg image containing 1.jpg and ...
Hi all i have a class which has a static block and a static method.For the first time i call the static method in the class its strange that its excuting a part of the static block and entering the method later and agian turning back to static block. but for the secon time when i call the ...
363 byte By
ramy076a at 2007-9-29 19:25:11
I am looking for modem communication api in Java (similar to RASAPI in C & windows). Wanted to know if there is any public domain library which can be used for modem communications - which supports PPP protocol. This is for a signed java applet which is supposed to run on all platforms ...
I clicked too quickly when looking at the java console options, selected the wrong item and hide the icon forever. Could someone please tell me where I can go to make it visible again?(I'm talking about the Java logo/icon that appears in your taskbar when Java applets are running in your ...
Dear all, I am testing the maximum sending bit rate of Java datagram socket. The configuration is: CPU: X86 Family, P3-733 MHz; RAM 256MB, RHLinux9.0; SUN JDK 1.4.2_01; 100Mbps Network. I also give the source code here for your reference. It is quite straightforward. For PACKET_SIZE = 256B, the ...
I'm trying to run this program both as an applet and an application, but I'm getting the following error when I try to compile it:/tmp/18006/calculator.java:10: calculator should be declared abstract; it does not define actionPerformed(java.awt.event.ActionEvent) in calculatorpublic class ...
I am looking for an all-Java RTF Editor or word processor component.. Have been searching everywhere but cannot seem to find one! Additionally, does anyone know of an all-Java XML editor that behaves like a word processor? I would like to incorporate this component in an all_java application ...
Me and my friend pedrofire, that磗 probably around forums somewhere, are newbies. We are trying to get a log file line and process correctly but we are found some dificculties to create the right expression pattern.My log have lines like:User 'INEXIST' with session 'ax1zjd8yEeHh' added ...
228 byte By
kapsla at 2007-9-29 19:36:47
hi all,i want to communicate the fax and i want to check the status of the fax,is there any possible way to track the fax using java, please provide me some sample code for communicating the fax or some examples...
Dear all i would like to know does any resource in java support MD5.for example String A = "THIS IS ROGER";URLEncode encode(A);output data is already encode and then my question is , does that method support MD5 MD5 md5(A);
Hi, we are in need of a Java based Spreadsheet applet Grid with all of the below requirments, can you please suggest me on this.. Can you suggest which is the best Java based Grid ?* Pure Java spreadsheet applet - pure java language* Applet should not require any browser plug-in* GUI interface* ...
Hi Folks,I have Program whis is listening to a Socket, on to the socket some data is beeing dumped.So my program has to parse the information read from the socket and dump it to the Database.Yes, ofcourse I am able to do it. But I need the performence to be very high.That mens on to the Socket ...
Hello All, I磎 having a little problem while trying to get a response from a server service. I did a program that calls a report service sending the determinated parameters, the report takes aproximatelly 50 minutes to run and generate the output, so the connection that is established with the ...
Hi...There..I h'va wrirtten Search application which search words from Simple text files.My file contains list of words separated by "\n"(new line).i am using java.io.BufferedReader for reading file.i'want to search word from file within few milliseconds, but when my file containo more then ...
how to insert text in existing file.?my file contains simple text with numbers of lines having more then 10 MB size and it might be increase up to 100MB.i required to seek to spec. position and insert chunk of characters to file without overwriting existing one.I tried out with RandomAccessFile ...
This is not easy as you think it is. I'm creating my Java IDE and I'm already finish w/ the compiling and reading of error process. This Java IDE is just basically writing your codes and compile it and run it inside the IDE, the main problem is the run portion does not work, how do I solved ...
Hi ,I written a server class that simply writes the numbers and the client simply reads those numbers and prints them. When I run the both client and server on tha same machine there is no data loss found. But when I run the server on different machine than client I found heavy dataloss.(while ...
hi, Mr. Wooster,Thank You for ur suggestion. And I have tried as u said by taking 2 different threads. One for reading the information from the socket and another for processing the information, parsing the information and writing the information to the Database. And as u said I have used ...
691 byte By
hhayatia at 2007-9-29 20:00:30
hi all, how do i receive and read from the input stream which will return me a string?thanks in advancep.s. a working sample would be niceint k = conn.getContentLength(); //though i dont have any idea, //this is roughly what i got from the netbyte[] array = new byte[k];InputStream is = ...
Hello people,I just started learning java, I have a little problem that I can't seem to solve. I have a small program that outputs milliseconds. But I want to convert this milliseconds to seconds, this is where am having sleepless nights.this is a segment of the code.long start1 = ...
In linux, we can type as following: more [filename]we can view the file's content ,page up, page down etc.can java implement such more command's function?
Hi,I am new to the forums and not sure where this post belongs.....I am looking for an appointment scheduler application - all-Java, preferably off the shelf or open source. But definitely with source code for us to customize. Any ideas or recommendations?Thanks in ...
1696 byte By
Stijn_Va at 2007-9-29 20:07:10
Hi guys and girls,I've got a simple problem: i'm busy programming a browser (for now it's a simple text based browser) and everything works fine, the connection works and it gets all http headers and the html file. But once and a while my program doesn't terminate properly and i think it's ...
Hi i pdont know whether anyone can help me, i created an application that parses strings into a collection and then uses an Arraylist to sort the collection and then print out contents of the collection, everything works up until it's time to creat a list this throws up an error, the code is ...
Hi friends !!!Can anybody explain what AGGREGATION and CONTAINMENT is?Also please give some refernce sites for the above topics.Thankx
how can I convert the int (wich i get by this method) to a string?//is there a function that doeas that in the java.lang or do I have to create one?try{String file="something.txt";File inputFile = new File(file);FileReader in = new FileReader(inputFile);text="";int c;while ((c = in.read()) != ...
20 byte By
_FRj_a at 2007-9-29 20:17:26
Reply here...
689 byte By
Stijn_Va at 2007-9-29 20:19:27
Hello, I've got a JeditorPane in my gui and i downloaded an html file using sockets and streams. The HTMl file is constructed correctly so no errors there.But i want to display that file in the JEditorPane: my question is wich classes should i use to achieve this. I don't want the source, i ...
3127 byte By
lii_tga at 2007-9-29 20:24:58
Hi guysI working on this assignment, but i cant make to work up. non-static method getHref(java.lang.String,java.lang.String) cannot be referenced from a static contextkeep poping up.please help outI am also attaching my program.please have a look at it.import java.io.*;import java.sql.*;import ...
141 byte By
ohadasa at 2007-9-29 20:27:52
Hello , I have a EJB 2.0 , J2EE ,JAVA and websphere job interview , can you please send me questions and answers?THANKS
213 byte By
avier5a at 2007-9-29 20:33:47
Hi all,I started a project of implemmenting the UML in Java, a GUI to creat a UML charts.I need your help in finding classes that will help me in my work and reserch. Thanks,A.B
Hi All,I have a Client Socket Connected to Server. My Server is some Different Application (Not a Java Application). If the Server is Closed, I want my Client Application to be Closed.Can some help me out in doing so... Thank U Very much.Madan
467 byte By
gnpa at 2007-9-29 20:45:52
I have a simple doubt about the use of throws exception in java.Even if i am not throws any exception in method the method will throw the exception right.for eg:public void aMethod()throws SQLException will throw sql exception when any sql exception happends in the program.public void aMethod() ...
2737 byte By
aKull82a at 2007-9-29 20:48:29
Hello,I want to create a listener, which inform me when a object was delete by the gc. so I wrote the code you see below.New I have the problem: in the run method of the thread i use a while block, and this block will never ending, but if a add a system.out in the block everything works fine. ...
Hi All,How do u compare two Images. It need not be 100% comparison. Up to 80% it is talarable.Can some one give me Idea about this...Thank You Madan
I'm going to develop an appointment remindig system,which is a web based application.One of its important functions is to pop up a window at some certain time to remind the user for an coming appointment .So I think there's 2 options to implement this requirement:1.Refresh page automatically ...
284 byte By
Dr_Dukea at 2007-9-29 21:16:24
hi,I want to read some unique ID for the PC I'm running my code onI mean I could always do it in a native way (read the serial of the HDD or something like that)but I 'd love to do it in javais there is a way to do it in 100% pure java?duke
A float is 32-bits but not all are used for storing the number, does anybody know weather they have a set structure or/and in which order the bits are set out?I am wondering weather it is possible to bitshift, or use other bit-wise operations for that matter.Thanks in advance. ...
http://developer.java.sun.com/developer/bugParade/bugs/4891531.htmlAre they ever gonna fix that? It's been almost a year since the bug was reported but nothing has happened!?It's about the internalization of java applications! I don't know how big a procent of java developers are from ...