Java Intermediate
- passing values from database to servlet to jsp text field using onblur
- Tue, 14 Dec 2010 01:19:00 GMT
- i m having a jsp page with three fields namely account number,name and address..once the user enter the account number his name and address should be automatically fetched from database and populated in the respective fields on the press of TAB key...Fetching and populating should done via servlet.....
- problem in rotating & moving image at same time(JAVA)
- Tue, 08 Jun 2010 08:39:00 GMT
- Hello every one im making a car game in which you have upper view
problem im facing is that i cannot move and rotate the car(image) at the same time means
if i press up and right arrow key at the same time i wont rotate and move which i want it to
it just moves forward or rotate
Any one who know...
- Java not accepting my iterator..
- Thu, 08 Oct 2009 00:56:00 GMT
- package LLStuff;import java.io.Serializable;import java.util.Comparator;import java.util.Iterator;import java.lang.Iterable;public class LinkedList<E> implements ListInterface<E>, Iterable<E>{ .. private Iterator<E> iter;<snip>/* using private inner class for my iterator, ...
- Zoom In Function help!!
- Thu, 17 Jul 2008 20:28:00 GMT
- Hi there. I am creating a simple image editor in Netbeans 4.1. I have a Frame which has a panel listing options to the user such as Zoom In, Zoom Out, Set the picture to black and white etc. I then have a panel where images are loaded to and edited. I am in the process of making the Zoom In func...
- Zipping in Java!
- Wed, 16 Jul 2008 17:38:00 GMT
- Hi Folks,I'm currently trying to make use of the jave.util.zip functionality within Java. I'm trying to create a program for work which will unzip zip folder(s) change a file name (to time.xml) and add 6 further files to the zip folder. Once this is done I then need to zip it back up!! I...
- Zipping files
- Wed, 16 Jul 2008 18:03:00 GMT
- Hi,First let me explain what I need to achieve using my Java application. There is directory : XXX, inside this dir. there are some more dir. like A,B,C. There can be an image file 123.jpg which can be present in each of these dir. and that too with the same name. Basically, XXX\123.jpg, XXX\A\1...
- ZIPOutputStream's public void putNextEntry(ZipEntry e)
- Wed, 16 Jul 2008 18:22:00 GMT
- Hi, I have question about ZIPOutputStream's public void putNextEntry(ZipEntry e). When we place a ZipEntry, the method puts this ZipEntry object in the beginning of the stream right? The one occupied beginning position prior to the method was placed behind this current one or is it deleted?...
- ZipFile closed: EJB deployment issue
- Tue, 15 Jul 2008 20:29:00 GMT
- Hi all,I am facing problems in the Ejb deployment. Please read the followingV r using Weblogic 7.0 with jdk1.4Just take a luk at steps performed1. V compiled all the source code, the ejbc compilation and the .ear generation thru ant(v 1.5) build scripts with JDK1.4.12. When v tried deployin the...
- ZipException - urgent
- Wed, 16 Jul 2008 17:51:00 GMT
- Hi allI am running an application which is running fine on Windows but when i tested it on Linux RedHat 7.1 it gives the following errorOn giving the command to execute,java -Djava.security.policy=FBNServer.policy -jar server.jarit threw the exceptionException in thread "main" java.util.Zip.ZipE...
- Zip/Unzip using ANT
- Tue, 15 Jul 2008 20:20:00 GMT
- Hello!Is anybody know how can I emplement winzip command line option?I need unzip compressed file that include folder with many files and copy it to another directory using ANT.Thank's...
- Zip the file along with password protected
- Wed, 16 Jul 2008 18:08:00 GMT
- Hi Friends,Using the java.util.zip api we can zip the file.But the thing is I need to zip the file along with password protection.Could you please guide me on the same.Let me know is there any other API to do this or we can solve it using java api itself.Thanks & Regards,Prasath Thirumoorthy...
- Zip question
- Wed, 16 Jul 2008 18:02:00 GMT
- hello, i have written a small program that extracts zipfiles. but somehow this only works with some zipfiles. somtimes i am getting a filenotfoundexception at the commented line?! why that? here is the code:code://java UnZip zipfile --> extract all//java UnZip zipfile file --> extract the...
- Zip folder using java
- Wed, 16 Jul 2008 17:50:00 GMT
- Hello all, How do i zip whole folder? Thanks in advance...
- zip file error
- Wed, 16 Jul 2008 17:43:00 GMT
- Hello!Does someone know's what this error mean's?java.util.zip.ZipException: error in opennig zip fileThank's for your attention,Rafael....
- hi friends i have a problem with the buffered writ...
- Wed, 16 Jul 2008 18:26:00 GMT
- hi friends i have a problem with the buffered writer in ziping the file. when i zip the file uing zipoutputstream i have clubbed the zipoutputstreamwith buffered writer so the i will not have a buffer problem,but the resultingzip file is corrupted . please help me out the zip the file using buff...
- hello,i want to know how to zip and unzip a file i...
- Wed, 16 Jul 2008 18:08:00 GMT
- hello,i want to know how to zip and unzip a file in java language.please suggest me.Thank you....
- Zip Extraction
- Wed, 16 Jul 2008 18:22:00 GMT
- Why does the following code append a 0x00FF at the end of each file entry when extracting ?code:import java.io.*;import java.util.zip.*;public class Test{ public static void main(String[] args) throws IOException { if(args.length < 2) { System.out.println("java Test <zip-file> <outpu...
- zip code to city/state database
- Wed, 16 Jul 2008 18:23:00 GMT
- I'm guessing that there is a freebie zip code to city/state database out there somewhere. Anybody know where?...
- Zip Code Search API
- Wed, 16 Jul 2008 17:39:00 GMT
- I want to implement a zip code search.The idea is that you enter a zip code to search, and the results contain records where the zipcode is within a certain number of miles from the zip code you entered. I also want to display how many miles the resulting zipcode is from the one you entered.Is t...
- Hi everyone,I am having some problem on some zip a...
- Wed, 16 Jul 2008 18:20:00 GMT
- Hi everyone,I am having some problem on some zip and jar issuesPlease see the below threadhttp://www.codeguru.com/forum/showthread.php?t=328749Any help is greatly appreciatedThank YouYours SincerelyRichard West...
- zero suppression
- Wed, 16 Jul 2008 17:54:00 GMT
- How can I obtain an empty string for a double that has the value 0.0? I used the code below to achieve this, but I still get "0"... double numberVal = Double.parseDouble(stringValue); String formattedValue = new DecimalFormat("#######").format(numberVal));Thanks in advance....
- your valuable views needed..
- Wed, 16 Jul 2008 18:20:00 GMT
- has anybody used 'Exploring Java' b4? it is part of 'Java Series', i think. i need some opinion b4 i start spending my time into reading it.thanks,...
- Your Java Development System
- Wed, 16 Jul 2008 18:27:00 GMT
- This post is more of a survey. What system / tools do you run for you java development system ?Here's is my setupJdk(s) : Sun J2s3 1.3, 1.4, 1.5IDE : EclipseTesting Tool : JunitBuilding Tool : AntManagement Tool : MavenVersion Control : SubversionDatabase(s) : MySQL, just started looking at...
- your code (help)
- Wed, 16 Jul 2008 18:06:00 GMT
- [ EJFH: Deleted request for help in cheating on programming class exam. ][ December 05, 2004: Message edited by: Ernest Friedman-Hill ]...
- young HACKER's training: pass gen :)))
- Wed, 16 Jul 2008 17:40:00 GMT
- Hi!!!Please don't laugh at me... I am only 16 years old and I was sitting and thinking about which porn web site should I watch when an accident happened and THE THOUGHT was born inside my head... here's a result:code:/* * Created on Jul 24, 2003 * */package ivj.hack;import java.util.*;i...
- you'd think this'd work but....
- Wed, 16 Jul 2008 18:04:00 GMT
- it doesnt! (is anyone really surprised!?)heres the deal, i have a class, with a integer variable called ticketCount.ticketCount is in a loop to read from a file, and increment, thus counting the number of tickets. strangely, it seems this increment never happens. despite every other command in t...
- Hi,I would like to know wheather yield() method gi...
- Wed, 16 Jul 2008 17:03:00 GMT
- Hi,I would like to know wheather yield() method gives the lock on the currentobject or not?...
- yield calculation
- Wed, 16 Jul 2008 17:01:00 GMT
- I have a Mathematical equation that cannot be solved linearly. Can some one help me find a simple logic to calculate yield.Given a financial instrument which offers the annual paymentsYears from Now Promised Annual Payments1 $2,000 = c12 $2,000 = c23 $2,500 = c34 $4,000 = c4The price of the fina...
- Yet another Package/classpath problem
- Wed, 16 Jul 2008 17:42:00 GMT
- Hi All. I posted this elsewhere, but it was at the end of a topic with a solved problem, so I'm afraid nobody will see it...I'm using JDK1.3 on win2k, and suddenly my classpath is not working. For the last 8 months, under win2k my classpath has been:C:\java\jdk1.3\bin;C:\java;(and before...
- Yet another Package question...
- Wed, 16 Jul 2008 18:00:00 GMT
- From the java tutorial on java.sun.com under Creating a Package I found this statement:quote:To create a package, you put a class or an interface in it. To do this, you put a package statement at the top of the source file in which the class or the interface is defined. For example, the followin...
- "Java Intermediate" Related Questions
- reading from files
- I was wondering how do we stop a BufferedReader when it reaches the end of line. Is there an EOF in java like in C++? Thanks....
- Creating a Random Number..
- Hi..I'm wondering if someone can tell me how to generate a random number in Java.. i forgot how to do that..Hope somebody replies soon.....
- Finding libraries on classpaths
- I'm trying to find all jar files on the classpath, for debugging purposes. It would be best if I can not only see what jar files my program may access, but also where they are physically located.Reason for this question is that we have web-applications that seem to have conflicting libraries...
- keytool & self signing certificate
- I found the following information from the sun site http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html#genkeyCmdSince I am a java guy I am also posting this query in the java forum.When we use the -genkey argument the keytool "generates a key pair (a public key and associated private...
- Compile Steps in Maven
- Hi, When i try to compile the sample files in maven2.0.1, i receiving the error msg as[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central[WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not...
- Language Conversation in Java
- Hi Ranchers is it possible to Achieve the Language Conversation using java ? Can anybody knows ? Please kindly reply to me.Sorry for my ignorance. ...
- calling a button from utility file
- I created a utility file named AntoniosUtilityFilepublic String reverseThisString(String toReverse) { return new StringBuffer(toReverse).reverse().toString(); }} }I want to be able to click on a button called reverse in my main classand it will access the information in my utility file.public cl...
- string input for txt file..
- how to take a string input from a text file...
- TimerTask & Schedule
- Hi, I just wrote a snippet to schedule for a task. the program works.. but the problem is that i want to show the sec, mins ticking, I dont have any idea about it. If some one knows plz let know.The code is as follows:-import java.util.Timer;import java.util.TimerTask;import java.awt.Toolkit;pub...
- How to refresh the output in DOS console?
- Hi all,I have a trouble with some UI output.Here is the requirement below:1.The program will use the DOS as UI.2.The program will execute some important job with a background thead,alos it must provide the monitor function by displaying some information about the transaction every several minute...