Java Essentials

  • Array assignment using java code
  • Thu, 16 Feb 2012 03:13:00 GMT
  • write a program that reads in a list of int values one per line, and outputs their sum annotated to say what percentage it contributes to the sum. Your program will ask the users how many integers will be create an array of the length, and them fill the array with the integers input a possible...
  • Jfree Chart GanttChart
  • Thu, 07 Apr 2011 02:29:00 GMT
  • -> I have a dateaxis as value axis ;I would like to draw a thick timeline mark on the present date at the 24 hour;For Example-> when I draw a chart its all fine and I see timelines for the selected dates; But would like to know if I could make the current date timeline a little thicker than other da...
  • Jfree GanttChart
  • Thu, 17 Feb 2011 12:13:00 GMT
  • Hi ,I am trying to display a Jfree GanttChart.But,I have lot of problems while rendering the GanttChart.I am really in need of help to achieve the following :1) I have few groups each group has few tasks For Example: Group A has task1 task2 task3 Group B has task1 task2 task3No...
  • Growing Online, how do you do it?
  • Fri, 24 Dec 2010 13:40:00 GMT
  • When Hurricane Katrina was hurling 135 mph winds pass New Orleans, my three-week-old GOD Daughter, Taylor Ann Hill with here Mom & Dad were in the Superdome. The roof was quickly blown away. I was losing everything but on my mind, there was only one thought, one prayer: "www.thatsjava.com User C...
  • HOW CAN CONVERT DOUBLE TO HEX STRING...
  • Thu, 20 May 2010 07:41:00 GMT
  • I NEED CONVERT THIS DOUBLE VALUE 18446744073709551615 TO HEXSTRING THAT IS EQUAL TO FFFFFFFFFFFFFFFF. HOW CAN DO THAT?...
  • How to populate JComboBox with values from a textfile
  • Wed, 02 Jun 2010 00:32:00 GMT
  • Hi, I faced some problem during my coding. I need to create a text field that can add value to the text file (without overwriting it if can). After adding the values to the textfile, I need to have JComboBox read those values and use them as an "option" in the drop down box. Currently I...
  • piecewise histogram equalization using jia
  • Tue, 08 Jun 2010 15:23:00 GMT
  • Salam Alukom Please Could You Help me Soon, Please I try to enhance image using Generalized Histogram equalization algorithm 5-Calculate the histogram H(p) based on the values G(x, y). 6. Since the histogram H(p) is very noisy, we need to remove the noise, and we  smooth the histogram...
  • Smooth Histogram
  • Tue, 08 Jun 2010 15:24:00 GMT
  • Please Could you tell me how can i smooth histogram using jia.? give me java code example. please thanks for your help ...
  • Runtime.getRuntime().exec does not execute linux command
  • Thu, 08 Jul 2010 17:06:00 GMT
  • Hi I want to run this linux command in java: String cmd = "echo 'root:" + newPwd + "' | chpasswd"; String[] str = {"/bin/sh","-c",cmd}; int retCode = Runtime.getRuntime().exec(str).waitFor(); but it doesn't work and the return code is 127...
  • is there a special san dick card i need to down load speech synthesis data installer
  • Fri, 03 Sep 2010 05:10:00 GMT
  • what san dick card do i need for speech synthesis data installer .   for LG  Ally  phone...
  • Help with removeAt modification problem!
  • Thu, 14 Oct 2010 20:41:00 GMT
  • i am trying to modify the removeAt so that it will not remove numbers in order but rather having it copy the last element in the list at the position of the item to be removed and reducing the length by 1.  i also need to modify the method removeAt in the UnorderedArrayList class i have also.&n...
  • Why do the StackOverflow Error Occurs with the below code?
  • Tue, 20 Apr 2010 23:22:00 GMT
  • public class InnerReference { InnerReference iRef = new InnerReference(); public static void main(String args[]) { try { InnerReference iReff = new InnerReference(); } catch(StackOverflowError err) { System.out.println("StackOverflowError"); ...
  • help using a 2d array to create a "map"
  • Tue, 27 Apr 2010 14:15:00 GMT
  • i have a program where i am given a text file in this order: <num of rows> <num of cols> <array of ints at each spot> ex: 15 15 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0,2,0,0,0 0,0,0,0,0,0,0,0,0,0,0,2,0,0,0 0,2,0,0,0,2,0,0,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0...
  • Z-value on imageicon/jlabel
  • Tue, 25 Sep 2007 03:12:00 GMT
  • Hi wonder how to put a z-value on a imageicon or jlabel? (which to be on top, and second..etc)Thanks in advance!...
  • zooming in swing
  • Tue, 25 Sep 2007 06:13:00 GMT
  • I created a Jslider with certain values now I want those values to correspond and change my imageIcon size evertime i move it. THe icon is inserted into a JLabel and the JLabel inserted into a JPanel.anIcon.setImage(rightIcon.getImage().getScaledInstance(100, 100, 100));Now I want those 100 ...
  • Zooming a graph
  • Sun, 23 Sep 2007 16:07:00 GMT
  • I need to select a rectangular region of a graph with mouse dragging and then zoom that region. Can anyone tell me how to proceed? Thanks in advance......
  • Hi was just just wondering how One may zoom into a...
  • Sun, 23 Sep 2007 12:20:00 GMT
  • Hi was just just wondering how One may zoom into and image on a jpanel.I have managed to do it vertically but not horizontally so it only zooms into one part. Your selp will be very much appreciated...
  • Hi was just just wondering how One may zoom into a...
  • Sun, 23 Sep 2007 12:20:00 GMT
  • Hi was just just wondering how One may zoom into and image on a jpanel.I have managed to do it vertically but not horizontally so it only zooms into one part. Your selp will be very much appreciated...
  • Zoom in/out Image
  • Mon, 24 Sep 2007 00:44:00 GMT
  • Hi guys,In my Applet , I'm drawing some shapes (ovals and lines) .I need to add zooming functionality , so that when i click zoom in button the Image is scaled correspondly.can someone suggest a way to do that ?thanks....
  • Zoom in/out function
  • Thu, 15 Nov 2007 06:36:00 GMT
  • Hi i am making a photo editing program where all the canvases extend Jpanel and are stored in JInternalFrames.what i am trying to do is to make a decent zoom in/out function where everything is properly in proportion without losing any image quality when you zoom back to 100%.when it is zoomed ...
  • zoom in & zoom out a image in a java applet
  • Sun, 23 Sep 2007 12:58:00 GMT
  • hello, i don't find any example of code of a java applet that zoom in and zoom out an image in jpeg format...can you help me?thanks...
  • any1 know how to zoom into an image? at the moment...
  • Mon, 24 Sep 2007 07:00:00 GMT
  • any1 know how to zoom into an image? at the moment i am creating my image through a label! but i dont think i cant zoom into a label! so can sum1 help with code to zoom into an image?been stuck on this for a while1=!any help is greatly appecieated! thanks...
  • zipping with password....
  • Sun, 23 Sep 2007 00:49:00 GMT
  • i was thankfully guided on how to create a zip file using java api by you guys....but requirement i am faced with is to create a zip file with password. java.util.zip does not support it and the issue is infact in the java bugdb as one user pointed out earlier.i havent been able to make much of ...
  • zipping with password for solaris 9
  • Sun, 23 Sep 2007 02:47:00 GMT
  • I program on solaris 9, I would serve me a program in order to create zip with password that he comes launch on the line of commands, I exist something of the sort?Thanks in advance....
  • Zipping things without parent folder
  • Thu, 15 Nov 2007 08:59:00 GMT
  • Hi, this page shows how to zip things with java.http://www.devshed.com/c/a/Java/Zip-Meets-Java/1/Now I want to zip a file locate at c:\myFile\firstfile.txt, hence I typefilesToZip[0] = "c:/myFile/firstfile.txt" (Please refer to the source code at the url above)However the zip file that ...
  • zipping problem: return char converted to linux return char
  • Sun, 23 Sep 2007 19:09:00 GMT
  • Hi there,I've the following code zipping files with no problems on windows, but when i run this program on linux and move the newly zipped file to windows and extract the text file, all the return characters are converted into linux return characters which are offcourse not recognized by ...
  • Zipping PDF using java.util.zip doesnt work
  • Sun, 23 Sep 2007 18:49:00 GMT
  • Dear List,I can successfully ZIP a Excel, a HTML and cvs within my application, using the java.util.zip package, but for some reason when I try the same code with a PDF and try opening it doesnt work. The number of bytes of the file before compression, and with the extracted file is ...
  • zipping & Unzipping Directories & files both - URGENT PLEASE
  • Mon, 24 Sep 2007 23:54:00 GMT
  • Hi friend,I tried for zipping and unzipping but it is not working still.and have to submit project tomorrow. so please as possible as fast just send me the source code that zip the file/folder and unzip in the same way as it was stored.ex : if we zip filec:/temp/myfolder/myfile.pptto .zipunzip ...
  • zipping a folder with empty & non empty subfolders
  • Mon, 24 Sep 2007 06:24:00 GMT
  • Hello everybody there, Right now i am facing the difficulty to zip a folder which is having some empty and non-empty folders within it.Can anyone suggest me what to do.I want to do it with java.util.zip package...
  • Zipping a Folder as same as what winzip do,Please help
  • Thu, 15 Nov 2007 08:00:00 GMT
  • HiI am using java.util.zip ,in order to zip a folder which contains some files.I could able to successfully zip a folder.But it is not same as what winzip does(correctly).Why i am asking is while doing encryption my zipfile size becomes less compare to original zipfile size.But everything works ...
  • Java Technology Blogs
  • "Java Essentials" Related Questions
  • Want to stop tomcat's info messages from printing to console
  • Is there any way to stop tomcat from printing itsmessages to the console.. I know how to configure the log4j message from within the application, by setting the level in the log4j.configurationfile but I still get message on the console like the ones below. Iwould like to stop these from ...
  • wscompile & error: RmiModeler
  • Hi ,I'm generating one sample WSDL file through wscompile , But I'm gettingproblem like " error: RmiModeler error: java.lang.ClassNotFoundException: stub_tie_generator_test$CollectionIF" . Please tell me what is the issue and what is the solutionmy config.xml location ...
  • Set Color to a String & to an Integer ?
  • OK guys, I have a 9x9 multi-dimensional array of integers, I want to set the color of some numbers of the array .I thought that it would be better if I parse it to String , but again i can't find a method to change the color of the numbers.I tried (import java.awt.Color;....... a.setColor ...
  • Message Resource Error
  • Hi,I've written a Struts application which uses i18n, I'm getting the following exception javax.servlet.ServletException: Cannot find message resources under key ...
  • How do i do to register an a Java Applet using "free" certified
  • Hello everyone,im developing a Java Applet to run an on Intranet. This applet must write files at hard disk. How do i do to register this applet ?tnks...
  • detect the clients type of printer, either laser or dot matrix
  • Is there a way to obtain the clients printer whether it is laser-printer or a dot matrix? I will appreciate any answers, sample programs, & suggestions. Thank you....
  • Throwing exceptions in a TableModel setValueAt method?
  • I have a TableModel. I would like the setValueAt method to throw an exception if there is an exception. The problem is that I cant throw an Exception because the method's signiture does not allow it.!! MoreOver, it is the JTable which will call the method. So if I throw a RuntimeException the ...
  • How can write xsd
  • HiHow can write xsd using dom in javaThanks in advance...
  • Post data to a servlet
  • Hi,Can send a post request to a servlet using a Java program. I tried this code. But the servlet cannot access the post variable.URL url = new URL("http://hostname:8080/servlettest");data += URLEncoder.encode("key", "UTF-8") + "=" + URLEncoder.encode("somedata", "UTF-8"); URLConnection conn = ...
  • inner class
  • I know the usage of inner class and types of inner class.But I want to know what is the purpose of inner class? In which scenario it is used?...