toString() method

979 byte By tjap at 2007-9-26 1:30:20
Hi,Please can someone help me figure out a simple problem...I have 4 classes - one of which, say Class Test contains 3 related strings. I have a String toString() method in this class which returns getA + getB + getC, (getA etc. just returns the value as a string) public String getA() {return ...

Extract the content of a PDF-file

244 byte By turjalei at 2007-9-26 1:30:27
Hi,how can I get the content of a PDF File with the Tool PJ (www.etymon.com)? I coudn't find any methode getText() or something. Can you give me a example, please?Is there other tools to read pdf-files?Thanx!

How to convert Vb code to java.

257 byte By Abu_ramla at 2007-9-26 1:30:34
Hi,I want to know how to make conversion a visual basic source code into java. The conversion could be (1:1) scale.Is there any compilers making the live easier (solving this problem) ? Thank you all.Abu_ramla

Java Security

108 byte By zabe_david at 2007-9-26 1:30:35
Hello,How can I protect my class files against "decompile" ?Thanks,David.

servlet tools

194 byte By Abu_ramla at 2007-9-26 1:30:38
Hi,I am new in internet programming. So if I want to compile and run servlet and Jsp, what kind of compilers and other tools should I have?Thanks all.Abu_ramla

addActionListener and Panel

619 byte By EviB at 2007-9-26 1:30:39
Hoy, hoy,I hava implemented this code in a Panel:(i.e. public class CLASSNAME extends JPanel; and this class itself is a Panel)// create copy buttoncopy = new JButton( "Copy >" );copy.addActionListener( new ActionListener() {public void actionPerformed( ActionEvent e ){// place selected ...

3D under Java 1.1

63 byte By fruttaelettronica at 2007-9-26 1:30:40
http://www.fruttalab.hu/labelements/3d/index.html

Architecture

178 byte By JBing at 2007-9-26 1:30:41
Has anyone implemented a really successful architecture for servlets, SQL and the database?If so, then could I have the details please?!?Cheer!

XML Generation from DefaultStyledDocument

456 byte By gfroehlich at 2007-9-26 1:30:44
Hi,following idea. I want to implement a JavaAppleteditor where you can format text (bold,underlined,italics). The document from this editor shall some-how transfered into a xml document which is formated the by a xslt sytlesheet into html, pdfor rtf.Can I replace style definitions in the ...

Index file management in Java

66 byte By rmahale at 2007-9-26 1:30:46
can we create, update and Read index files in Java.

Vectors

525 byte By Smartie_ys at 2007-9-26 1:30:47
HiWhat I want to do is have an objectCode_id.....Code_Name..... Color1.....One.....Red2.....Two.....Green3.....Three...BlueThese at the moment are in a vector of vectors[[1,One,Red],[2,Two,Green],[3,Three,Blue]]I want to be able to reference the object say when a value is passed in 1 need to be ...

System call in Java

157 byte By rmahale at 2007-9-26 1:30:48
Can we make calls to programs written in other languages using java. Is it possible that we can call Unix OS commands and Utilities using Java.

http upload

225 byte By osilekpl at 2007-9-26 1:30:51
Hello,Guys I need to write a JSP that will take a image from the form file field, and i want to store the image on the server in some directory.Can somebody give me the codeI need this ASAP.

applet java.rmi.RemoteException class not found

711 byte By sundaram123 at 2007-9-26 1:30:52
Hi,my applet uses the RMI connection to server. Applet working fine with appletviewer. i try to load my applet in IE its giving class not found error.error message :java.lang.ClassNotFoundException: java.rmi.RemoteExceptionat com/ms/vm/loader/URLClassLoader.loadClassat ...

I need this ASAP

310 byte By Chris_Martens_11 at 2007-9-26 1:30:54
Hey guys, I need a mail server, web site, and custom shopping cart running in a real-time 3-D enviroment all written in Java. Can someone write it for me and post it here ASAP, and keep some time free afterwards because I will need a lot of support on this thread afterwards to get it ...

how to use FTPClient.list(String mask) ?

308 byte By ybucher at 2007-9-26 1:30:55
Hi all,about the package enterprisedt.net.ftp.FTPClient( http://www.enterprisedt.com/downloads/ftp.html)I have a problem using the FTPClient method "list", what do they call a "mask", I would like an example with "list". thanks Yves ...

Synchronizing two virtual machines

435 byte By tbraun at 2007-9-26 1:31:01
Hi, currently I'm facing the problem of synchronizing two java threads that are running in different virtual machines which is necessary as they require different versions of a library in their classpath.Both threads read and write randomly to one file and I need some sort of locking ...

What are the BEST tools to develop in JAVA?

332 byte By nemaria at 2007-9-26 1:31:03
Hi everyone!Our project is just beginning to work in JAVA. We want to buy the BEST, the modernest professional developing tools(like JAVA editor, etc). Could any of you, gurus and specialists, recommend us what tools to order? (P.S. What would you say about Visual J++? Is it good and why?) ...

FTPClient.list(String mask) ?

760 byte By ybucher at 2007-9-26 1:31:05
Hi all,about the package enterprisedt.net.ftp.FTPClient( http://www.enterprisedt.com/downloads/ftp.html)I have a problem using the FTPClient method "list",what do they call a "mask", I would like an example with "list".Trying myClient.list("*.ps")when connected onto a sun serverI get this ...

How to force a JTextField to convert all to UppperCase?

637 byte By kleindinst at 2007-9-26 1:31:06
Hallo !How can I force a JTextField to convert all to UppperCase? If the user presses a charater key on his keyboars, it should be automatically converted into UpperCase if the cursor is in this specific JTextField.The user see in this JTextField only UpperCharacters if he type a character on ...

I put a thread into sleep for 24hours. When it woke up ...?

424 byte By jgyoo at 2007-9-26 1:31:07
I put a thread into sleep for 24 hours at 00:00.But when it woke up , it was 22:00 o'clock.So the difference was 2hours. Does it make sense?If there is anybody who tried this kind of things,please let me know the result that you had.2 hours is so much , I think.If there is any solution for ...

Passing session information to multiple JVM's

254 byte By gauthi15 at 2007-9-26 1:31:08
Is it possible to pass session information to another JVM running on another server?Example:Server A calls a servlet on Server B. Will the session object (and values stored in it) created on Server A be accessible to Server B.

selection in JList

432 byte By lraghunath at 2007-9-26 1:31:11
Hi! I am using JScrollbar to hold the JList and i have set the property setVisibleRowCount to 1. List contains the values from 0..1000, if i want the default value to be displayed in the JList is 21, i have set the ensureIndexVisible property to 21, but it is showing only the first item in the ...

A Basic Http Question!!!

599 byte By ganarrg99 at 2007-9-26 1:31:16
Hi, I just wanted to ask you a simple http protocol question.We all know that 'http' is a stateless protocol'.Let me explain you the scenario: Say, if i click some link ,say, 'Login' from http://www.anotherserver.com/ and it calls the servlet running in http://www.myserver.com.Is there any ...

J2EE deploytool compile error in generated code.

377 byte By armen at 2007-9-26 1:31:18
I write and compile all the code for EJB.Created .EAR and .WAR files needed for deploy. But when the deploy application tries to generated and compile stub code there is a compilation problem.Anyone knows how can I solve this? or this is a problem of the deploy app, Is there another one? I'm ...

Mobile Operator seeks J2ME applications

183 byte By MobileOp at 2007-9-26 1:31:24
Mobile Operator in southern Europe is looking for J2ME applications and games to supply to their customer base. Please contact mobile@europe.com for more details.

Generating an array of binary numbers

440 byte By valyuha at 2007-9-26 1:31:25
Hi, guysI want to create a method that would return an array of binary numbers for a given size.Say, for example I want to know all possible possible binary numbers of 4 digits, that method should return numbers (or strings) from 0000, 0001 ... to 1111.I really cant think of anything, right ...

Converting Java 1.18 code to Java 2

247 byte By soughtred at 2007-9-26 1:31:27
I am currently working on a project and need to convert our code from Java 1.18 to Java 2.What should I look out for?Do I actually have to re write code or just recompile the old code?Any help I would appriciate.

Test for a connection to a database

765 byte By eugenebyrne at 2007-9-26 1:31:28
Hello! I need to test to make sure that my connection is active and useable. Rioght now, I test to make sure that the connection in non-null and returns false://dbConn is a Connection passed into the methodtry {if (dbConn == null || dbConn.isClosed()) { Class.forName(HardCode.DBDRIVER); dbConn ...

xml and servlet

320 byte By fabligo at 2007-9-26 1:31:31
Hi everybody. I'm very new to Java. the question is the following. I need to set up a servlet that establishes a connection with a database, selects something from it and then returns an xml document back Is it possible to do this? Anybody has a sample code for that?Thanks in advance ...

Event calls Event

845 byte By fsblendorio at 2007-9-26 1:31:32
Hello, I was a VB programmer, and I was (in VB) able to do something like that:SUB Button1_Click' do something...END SUBSUB Text1_KeyDown(KeyCode as Integer)Button1_ClickEND SUBIn other words, I could call an event handler from another. In Java I tried:Button1.addActionListener(new ...

"un"minimizing minimized windows

154 byte By dybarra at 2007-9-26 1:31:33
Anybody have any ideas on this? I think I have tried everything. I can't seem to get a minimized window to pop back up. thanks.David

Vant use Images in Wjview

248 byte By tomaz_b at 2007-9-26 1:31:35
I have some problems with wjview and jview. I get an error when I use images in my programs running with wjview and jview. It's no problem with compiling the programs and they work well with jview /a.How do I fix this problem?

how do I run an exe file from a java program?

116 byte By atrio at 2007-9-26 1:31:37
I need to run an exe program from within a java program.what do I need to do this?thanks

Can Someone Help Me With My Questions?

1016 byte By SanDMaN at 2007-9-26 1:31:38
Hello ppl,I'm back with a few more questions.... Thank You mharin for helping me with my JDBC.... it works fine now... but i've got summore questions that need to be answered.... Ok first off.... How do i delete information from my database through an interface.. (using DML [data definition ...

How to Pass a BufferedImage? Client -> Server

627 byte By demose01 at 2007-9-26 1:31:40
Please Help!I've been trying to figure out how to send a BufferedImage from my client program to the server program. I'm using a socket to create the connection. The client draws into a BufferedImage and then it is sent to the server to be saved as a JPG file. I've been able to create the ...

Repaint Error when trying to scroll in Browser? PLEASE HELP

893 byte By ntwebdeveloper at 2007-9-26 1:31:44
I'm getting a repainting error ( the applet messes up and can't refresh the controls) when I try to scroll down in the IE 5.5 browser to view the rest of my applet. I noticed while scrolling, the applet does not seem to be repainting the controls properly in the exact spot as if the applet is ...

JDBC CONNECTION & MULTITHREADING

140 byte By kukukkikuk at 2007-9-26 1:31:46
How does JDBC Connection work with multithreading clients accessing it? Can anybody refer me to any documentations out there?

tiff to jpeg

111 byte By keerthikanth at 2007-9-26 1:31:47
Is there any way to convert tiff file to jpeg through java.is there any any api available?

using mvc

361 byte By newtojavaswing at 2007-9-26 1:31:48
Hi all,Although I know java to some extent I am not sure with the MVC concept.In my application I have created a class which extends a JTree and made this tree implement different listeners. I am using the DefaultTreeModel for the JTree. Is this a good way of programming. Are there any ...

How to continue substraction ?

1260 byte By Woti1990 at 2007-9-26 1:31:49
Hi !I've written the following code (output shoud be in a frame):ActionListener insertText = new ActionListener() {public void actionPerformed(ActionEvent e) { String batchC1 = "15.01.2001"; double inStockC1 = 10.0;double toSell = Double.valueOf(textField.getText ...

What is a servlet?

129 byte By mwstein at 2007-9-26 1:31:50
Probably thinking, "that's a dumb question", but the Java docs didn't help me much. So, what is a servlet?

Curious about replacing ' and

288 byte By seanmcgurk at 2007-9-26 1:31:51
Funny one, this one...How do I replace an apostrophe (' character) with an empty space?i.e. one cannot state:String s = new String("I've");s.replace(',' ').trim();i.e. resulting in IveSo how do you go about this?Sean

100% Pure Java Discontinued

209 byte By stephen007 at 2007-9-26 1:31:52
I am looking for information on java compatibility programs, hopefully I'm in the appropriate forum. 100% Pure Java has been discontinued, what other options do I have to certify my application?

Function to color Text in Console Program?

251 byte By GP343 at 2007-9-26 1:31:56
Does anybody knows of a function to color Text in Console Program.Example textbackcolor(2);//c++system.out.println("Heres is a color text");And how do you clear the console window in java in c++it is clrscr().

What's my program's name?

526 byte By jdwyah at 2007-9-26 1:31:57
How does one know what name your java program is running under? Specifically what .jar file?This is similar to question of the week #43, which was: How do I know what directory an application written in the Java programming language has been loaded from? The difference is that I want to know ...

how to figure out if a file is in use?

2268 byte By ragnor at 2007-9-26 1:32:01
Hello all, I'm trying to redirect the standard output stream to file. To complicate things, I might have multiple users running multiple instances of my application, so I want each instance to have its own output file, dynamically assigned when the application starts. I don't want there to be ...

ServerSockets, their Ports, and No-Route exception

840 byte By xiarcel at 2007-9-26 1:32:04
I have a deep, burning question on ServerSockets...I have a situation where sometimes there is "No Route To Host" from a client, and sometimes there is not..Currently, the ServerSocket is listening @ around Port 18xx or 2yyy, and I am wondering if one of the following two options exist...1-Can ...

image background to Jtable using 1.3

268 byte By amnonm at 2007-9-26 1:32:07
I was working till now with 1.2.1 and got from the internet nice class that put an image background to Jtable.but since I changed the version to 1.3 it's not working anymore.does someone know how to put image background to Jtable using 1.3

Directly reading/writing to ports in Java

162 byte By mwstein at 2007-9-26 1:32:09
Is it possible to directly read/write to say the Parallel Port using Java? I've done it using C++ before with the outport() and inport() functions.