35,617 Topics
![]() | |
var head = headElement.firstChild; var headTable = headElement.firstChild; var body = bodyElement.firstChild; var bodyTable = bodyElement.firstChild; var a = body.offsetWidth; alert(a); var scrollBarWidth = body.offsetWidth - body.clientWidth; headTable.style.width = Math.max(0, bodyTable.offsetWidth + scrollBarWidth); | |
Hi guys...I am currently writing a program and it compiles fine but when I run it it says... Problem with input/output IOException:Null Problem with input/output IOException:Null I have two files in it and I dont know what to check anymore...Anyone have any idea on what I need to look at? | |
Hi, I am new to Java, and have been trying to write a program that calculates the square root of a number using the Babylonian/Heron method. I have been able to make it work, largely due to a lot of help from a PhD student. So yeah, what I'm trying … | |
package umadas.examples; import java.io.*; import java.util.*; class Counters { int iCount = 1; } public class Wordfreq { public static Reader r; private static String str=""; public static void main(String args[]) { try { r = new BufferedReader(new FileReader(args[0])); fnWordFrequency(); r.close(); } catch (IOException e) { System.err.println(e); } } public … | |
i need to access a variable from a class to another class currently running at the same time. my plan is to: Save the values of the variable to a file and access it from the other class other options i have Use a database use RMI what other features … | |
package umadas.examples;import java.io.*;import java.util.*;class Counters{int iCount = 1;} public class Wordfreq { public static Reader r; private static String str=""; public static void main(String args[]) { try { r = new BufferedReader(new FileReader(args[0])); fnWordFrequency(); r.close(); } catch (IOException e) { System.err.println(e); } } public static void fnWordFrequency() { HashMap map … | |
Can someone please take a look at this for me. I have to create a program that models a simple card game. I have to shuffle the card and deal 1 card at a time and display the card that I have dealt. Not sure how to do this. The … | |
Hi everyone, Does anyone knows, where i could find a java implementation for the Latent semantic analysis technique/algorithm ( eg for word/document) or even just how to decompose a matrix using SVD(singular valued decomposition). I need the code preferably in jave ( or c/c++ and i will code in java … | |
and when i add a new int data type my program has an error and yet when i add a new String data type it has no error // objectSort.java // demonstrates sorting objects (uses insertion sort) // to run this program: C>java libmainsys //////////////////////////////////////////////////////////////// [code] class libary { private … | |
hi all, i am using the tomcat server.. can i show the java out puts(System.out.println) on the browser that is issude from java classes, not from the jsp pages. i think there may be a way to change the configuration in the tomcat server.. thanks.. | |
Hi all, I want to use the [COLOR=DarkOrchid]<jsp:setProperty….>[/COLOR] tag. When this is used it says that it calls to the setter methods and set the instance variables that submitted from a web page. (I suggest that it gets the instance fields from JSP request object and assign those). But in … | |
My application is running over websphere. Now I want to run my application over JBoss.I don't have any idea about JBoss deployment process.My whole application is in .ear file which contains my frontend part.Backend is in seprate .jar file.Which is created during build.Now how can I deploy my application.What changes … | |
pls any one hv project using jsp and sql pls post the projects......... | |
Hi all , I'm having problem during parsing xml files using DOM API due to whitespace characters. Here is my sample XML File ,coding and output : XML File : [code]<demo> <empid>e100</empid> </demo>[/code] Coding : [code]import java.io.*; import org.w3c.dom.*; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; class demo{ public … | |
I am going to start off with Java, already knowing C/C++ So i needed to know which compiler should i download for the purpose of programming on Java ( for the Windows platform). (which consists of the editor, compiler,etc.) I need something i can download from the internet like Dev … | |
:!::!::!::!: I have an Assignment and Iam very new In [COLOR=DarkRed][U][B]JAVA LANGAUGE [/B][/U][/COLOR] , Anyways I need some help if someone can help me i will be very thankful, really i need it !!! :?: I need a code in Java , that maked a [U][B]SMall[/B][/U] program , that let … | |
Hi, I have a very difficult problem.Perhaps a good Java programmer can solve it. I want to open a Java chart (it can found on [url]www.wdsoftware.com[/url]) not from a computer but from a PDA.I have a Fujitsu-Siemens Loox 720 (520Mhz CPU,128 RAM,64 ROM).I use Netfront 3.3 with JV-Lite2 as web … | |
I have already turned this so my grade will off anyway but I just need to know. I cannot get the right figure for this calculation, here is what I have and it gives me the wrong calculation of 7178. when its supossed to be 1167. Any help would greatly … | |
--------------------Configuration: <Default>-------------------- C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ 2 errors how come i cant cast a char on a set??? it works well with … | |
Hi all, I have download Apache POI(2.5.1) to convert a Excel file to XML using NetBeans5.0 . After Unzipping i got three Executable JAR files 1.poi-2.5.1-final 2.poi-contrib-2.5.1 3.poi-scratch-2.5.1 Please tell what steps i have to do to install it (or) just it's enough to just point out that JAR files … | |
Hello everyone i m having three swings textboxes mm.dd.yyyy i want a simple code for validating date & leap years plz help me | |
hi all, i want to know about simple java concept, public class Operator{ //this is a bean class and there is a method to insert object of this class, into the database. public int saveObject(Operator _operator){ //here are codes for insert the given object in the database. }//end of the … | |
I am trying to write a recursive function that will produce a fractal snowflake, but am not getting the correct results. For some reason it gets caught in an infinte loop, but I cannot figure out why. Any help is appreciated. [code] [COLOR=#941edf]private[/COLOR] [COLOR=#941edf]void[/COLOR] recursiveDraw([COLOR=#941edf]double[/COLOR] x1, [COLOR=#941edf]double[/COLOR] y1, [COLOR=#941edf]double[/COLOR] x2, … | |
Hi all, I download JOnAS 4.8.4-tomcat5.5.17, APACHE Ant 1.7.0 and installed by setting JONAS_ROOT and ANT_HOME. When i check the environment using "jonas check" I'm getting following message [B]" The system cannot find the path specified. The system cannot find the path specified. JONAS_BASE is set to '-Dinstall.root' is not … | |
Hi Pls tel me how i can host my own web site in my own server. I am using jsp, html as my front end and Mysql as my backend and Tomcat as my web server | |
I'm learning Java right now, and one of the projects I've been working on as practice lately is just a simple text editor (using Swing). The one thing, though, that I can't for the life of me figure out, is how to add scroll bars to the text box if … ![]() | |
I have a project that I am working on for 5 days, and I am stuck. I have been able to generate some numbers, but no based on the instructions below. Can you please provide some assistance on what I missing and what I need to do to get this … | |
hello currently i have joined in a software company in bangalore. i have knowledge in jsp and servlet. in my company core java is needed. i dn have tat much knowledge in java . kindly help me to get source code from online. wat r the websites available. how to … | |
:-|Hi all, I'm new to programming and I've been learning on my own. I seem to be writing way too much code for simple exercises. I just finished one where all they wanted was to convert your change into a total dollar amount. I went ahead and created a method … | |
Hi I just want to get datas of three months of specifying year. I want to give input from two check boxes , one for month and the other for year. Now i want to retrieve datas from database which is in there already. Can u help me out........???:sad: |
The End.