Vector example

99 byte By islamvipa at 2007-9-29 18:39:41
hi i need an example using Vector collection to ensure its synchroniztionthanx

Big5 to UTF8 conversion in java

347 byte By vipinsavaia at 2007-9-29 18:43:13
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 ...

Russian Characters on Web Page

2482 byte By mryan321a at 2007-9-29 18:46:50
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 ...

can jav touch windows registry

61 byte By mihirdma at 2007-9-29 18:50:18
is there any way that java can touch windows registry?

Date Problem

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 ...

Need Help

791 byte By chaohiolabonjoura at 2007-9-29 18:55:40
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 ...

I keep getting "E" values near the end of output

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 ...

How to fire event to a textarea?

894 byte By Vijay_Sagara at 2007-9-29 19:15:34
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 ...

URGENT Help with scientific calculator!

15612 byte By lauritasrea at 2007-9-29 19:19:31
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 ...

Serialization Performance Issue

390 byte By calganesha at 2007-9-29 19:21:14
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 ...

Equivalent to eval method from javascript?

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 ...

how to combine 2 images

444 byte By ganesh@sourceoneservices.coma at 2007-9-29 19:24:49
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 ...

Problem in static block execution

2205 byte By sreenathreddya at 2007-9-29 19:24:52
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 ...

Modem communication (PPP) Java

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 ...

Java Console (icon in taskbar)

355 byte By outlander78a at 2007-9-29 19:25:13
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 ...

Why I get extremely high sending bit rate using Java Datagram Socket?

2521 byte By TianqiWanga at 2007-9-29 19:28:56
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 ...

Applet and Application not Running

11695 byte By lauritasrea at 2007-9-29 19:29:05
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 ...

Java RTF editor or word processor

350 byte By venkatsharmaa at 2007-9-29 19:31:20
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 ...

Regex Pattern help.

1045 byte By peteredmana at 2007-9-29 19:33:46
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 ...

communicate fax

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...

MD5

272 byte By roger5089a at 2007-9-29 19:38:35
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);

Java Based Grid

1531 byte By india_naveena at 2007-9-29 19:43:02
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* ...

Need More Performence

15598 byte By madanmohanthotaa at 2007-9-29 19:47:56
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 ...

Problems waiting for server response(HttpURLConnection)!

709 byte By elezianopierrea at 2007-9-29 19:48:54
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 ...

Seachring word from text file

703 byte By TimirKumarPatela at 2007-9-29 19:55:07
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.?

422 byte By TimirKumarPatela at 2007-9-29 19:56:43
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 ...

Running Java Inside My IDE

1039 byte By BringMe2Lifea at 2007-9-29 19:59:11
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 ...

performance problems with java sockets

1747 byte By sridhar_ratnaa at 2007-9-29 19:59:38
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 ...

Need More Performence

645 byte By madanmohanthotaa at 2007-9-29 20:00:27
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 ...

getInputStream

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 = ...

Milliseconds to seconds

663 byte By omegaNetworka at 2007-9-29 20:03:03
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 = ...

how to implement linux's "more" command's function use java?

184 byte By liucpinga at 2007-9-29 20:04:17
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?

Appointment Scheduler component

315 byte By venkatsharmaa at 2007-9-29 20:05:32
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 ...

Reading from http server

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 ...

collection problems

1346 byte By moyosore486a at 2007-9-29 20:10:11
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 ...

Aggregation

162 byte By rj_edhana at 2007-9-29 20:16:21
Hi friends !!!Can anybody explain what AGGREGATION and CONTAINMENT is?Also please give some refernce sites for the above topics.Thankx

int2String

534 byte By FELIPE_EL_DUROa at 2007-9-29 20:17:09
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()) != ...

For BringMe2Life

20 byte By _FRj_a at 2007-9-29 20:17:26
Reply here...

Displaying a html doc

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 ...

error : non-static method getHref(java.lang.String,java.lang.String)

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 ...

JAVA Job interview

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

Implemmenting the UML in Java

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

How to close the Client Socket

264 byte By madanmohanthotaa at 2007-9-29 20:40:33
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

throws exception

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() ...

problem with the run method of a thread

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. ...

Image Comarison

183 byte By madanmohanthotaa at 2007-9-29 21:00:10
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

Appointment Reminding System

793 byte By jobseekera at 2007-9-29 21:13:28
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 ...

how to do this in java?

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

Technichal question about primative types

305 byte By bamkin-ov-lestaa at 2007-9-29 21:20:17
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. ...

Webstart and ResourceBundle (Do sun engineers test at all?)

1503 byte By javaguyaimfia at 2007-9-29 21:23:24
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 ...