36,051 Topics

Member Avatar for
Member Avatar for kobi

How can I load an xml file and show it as a treeview control in my HTML page

Member Avatar for mavines
0
109
Member Avatar for nedimavci

Program 1 A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month. Create a Payroll program that can do the following 1. Enter the Salesperson’s name, employee number and basic monthly salary. 2. Enter the number of …

Member Avatar for jwenting
-2
135
Member Avatar for mizcomscie

[code=java] import java.io.*; public class ACMICPCContestScoring { public static void main(String[] args) throws IOException { BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); BufferedReader br = new BufferedReader(new FileReader (" ")); String s = br.readLine(); String[] array1 = s.split(" "); int numberOfTeams = Integer.parseInt(array1[0]); int numberOfProblems = Integer.parseInt(array1[1]); String[] timeStarted = array1[2].split(":"); …

Member Avatar for majestic0110
0
132
Member Avatar for Nige Ridd

Sorry if this is the wrong group to post in - I couldn't think of another suitable one. I'm applying for a job which talks about 'experience using Java/J2EE', I've used Java but not sure if by putting J2EE that they are expecting anything particular? Thanks Nige

Member Avatar for jwenting
0
139
Member Avatar for muthumari

Hi, Tillnow am using notepad.I want to use Jcreator editor.I haven't any idea about how to use jsp in Jcreator.Now Am using ApacheTmacat4.0 is my Webserver. Anyone help me to this Query. Thanx in advance

Member Avatar for peter_budo
0
466
Member Avatar for push
Member Avatar for peter_budo
0
63
Member Avatar for Tom Tolleson

Does any one have a recommendation for a basic Java book for someone who is new to anything other than web development (Javascript and XML). Perhaps something that might include servlet or J2EE? Thanks a lot! THT

Member Avatar for ~s.o.s~
0
203
Member Avatar for majestic0110

HI all, been messing around with this game for a while now. last thing I need to do is get the score(bals dodged) to display in the main menu.Now I have had some helpful advice regarding this issue but I have notbeen able to implement it myself. Nevertheless I am …

Member Avatar for majestic0110
0
115
Member Avatar for sparksterz

Ok, I had a lab assigned to me which detailed many different situations in which I had to use recursion in order to solve them. Most of them were pretty simple. However I've been stuck on this Palindrome problem for hours. I know most people's Palindrome issues are with proving …

Member Avatar for jwenting
0
147
Member Avatar for abhi287

Hi i've class project with textfilds id,name.no... when i click ok here another window (another class) opens with same fields but not editable. and when i submit here data goes to db. then how to get values of textfields in project class into current class which i've to send to …

Member Avatar for Ezzaral
0
296
Member Avatar for FrankHere

Hi all, I am a final year student of a Computing Degree and have an idea of doing a Distributed File System for the Final Year Project. I am mainly consider only Distribution of files across a LAN and Replication of data. So any idea of how to split the …

Member Avatar for jwenting
0
95
Member Avatar for leroi green

sup ya'll, i've been doing this Triangle class homework for a couple of days and have ended up having to change how i am attacking it like 2wice but anyway. i've hit the last wall i think i can hit. this code is all wrong & i don't even know …

Member Avatar for javaAddict
0
276
Member Avatar for virividivici

Hello everyone, I need to change the value of a jsp variable in javascript. I have got this code in my .jsp page: <c:set var="searchType" value="jobsearch" /> the value of the "searchType" should change depending on which link the user click on. I though if I put this variable in …

Member Avatar for masijade
0
69
Member Avatar for majestic0110

hi all. I was wondering if anybody out there knew how to implement a high score system for this game(saucer). SaucerMenu is a gui class where i want the high scores to appear (up to 5 highest). saucer is the class where the game resides. many thanks in advance. [CODE]/* …

Member Avatar for majestic0110
0
143
Member Avatar for hidash_in

hi everyone, i need ur help, how to count the no of pages in a pdf file using java, is it possible to do this. if anybody knows pls send the code. advance thanks hidash

Member Avatar for hidash_in
0
182
Member Avatar for cbalu

Java specification tells that we cannot have static methods in interface.Can anyone explain me Why? :-O

Member Avatar for darkagn
0
105
Member Avatar for palcham

calculate the date difference between two dates exclude the saturday and sunday(Please dont calculate saturday and sunday between two dates)

Member Avatar for masijade
0
488
Member Avatar for jeneal

I am having an issue getting my program to run. It is a program to add an address to a text file. If the user does not know the zip code or city, they can enter the one they do know and it searches a 2d array for the corresponding …

Member Avatar for jeneal
0
49
Member Avatar for claudiu_is

This is more of a JSF problem, but the solution I want is in Java (beans). I want to build a session based application and I'm having trouble finding a good tutorial which states all the steps, from the beginning to the end, leaves no gaps for me to fill …

0
84
Member Avatar for sunny_b

Hi, my name is sunny, i need help with my java project urgently. Could anyone help me? i would be grateful if anyone could help. here is a link to the task [URL]http://n.1asphost.com/jaz08/[/URL]

Member Avatar for jwenting
0
272
Member Avatar for bahati

hi everyone i hope you could help me out i need to develop a software for the library system we are currently using a manual system and i would like to generate a java code that will capture my reqirements could you help me with a simple code

Member Avatar for jwenting
0
64
Member Avatar for slayer10

ok, what i have is a parent class, eployee, with 5 child classes, Doctor Surgeon Nurse Janitor and Receptionist. on my form i have a buttongroup for when the user selects one of those 5 jobs. when the user selects one i want to create an instance of that object, …

Member Avatar for javaAddict
0
110
Member Avatar for im_desperate

Hey i have to write a program that will prompt the user to write sentences and those sentences will be written until the user type "stop". i though of doing such a thing but its not doing what i want because i want each input to be on a new …

Member Avatar for im_desperate
0
139
Member Avatar for eleonora

Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions. I managed [i think so] to create the array but i cant find a way of getting from the user …

Member Avatar for eleonora
0
393
Member Avatar for orcboyx

I cannot get the bullseye to replicate itself 5 times even though I've already set the count to 5... any suggestions? import java.awt.*; public class Bullseye { /** Creates a new instance of Main */ public Bullseye() { DrawingPanel Target = new DrawingPanel(300,400); Graphics g = Target.getGraphics(); bullseye(g,100,100,50,5); } public …

Member Avatar for orcboyx
0
750
Member Avatar for majestic0110

HI all, this app is a simple game where the objective is to avoid incoming balls (adversaries) however at present I can only figure out how to get one ball on screen at a time. What I'd really like is, when a player hits 100 points, a second ball is …

Member Avatar for majestic0110
0
118
Member Avatar for 71monaro

The brief ive been given is to write a Java prg to take some command line arguements of the form JavaProg -n[anInt] -o[inputFileName] -o[outputFileName] -s[aStringWord] and then use them. Now I understand very basic args[] use. But in the brief there may be missing args and placed out of order. …

Member Avatar for masijade
0
108
Member Avatar for Jananee
Member Avatar for radha_athithan

hai, I need complete java code for image to binary conversion. Please help me.

Member Avatar for raja baba
0
90
Member Avatar for claudiu_is

I'm having a session problem with jsf. I've googled abut sessions and none of the results answer this question: what happens when a user logs in, copies the link, logs out and pastes the link in the browser? They say that I should validate the user when the page loads …

Member Avatar for claudiu_is
0
99
Member Avatar for sandy183

hi, i'm trying to build a web page which permits the user to login before accessing the contents of the site. the login works fine (i did it using jsp), but i am not able to logout properly, that is, when i click on a "logout" hyperlink, it sends me …

Member Avatar for shajidbasha
0
230
Member Avatar for shweta797

hi, my problem is that i have a database where i have stored information month wise of various user and i want that user details in month wise and its shows too but when its move to another column like means in next month like jan to feb its creats …

Member Avatar for shweta797
0
118
Member Avatar for eleonora

does anyone knows how can i create an array that will get parameters from the user row and column and with a method to fill with strings the rows and columns and after that to print it out. i tried several things BUT nothing works :( if anyone knows how …

Member Avatar for masijade
0
87
Member Avatar for guccica

Hi all, would need your help on unzipping message which is zipped with java.util.zip. For your information my module was written in c++. Currently i am trying to unzip with zlib, how ever it failed with "Z_DATA_ERROR" error. Please advice.. thanks a lot. regards brandon

Member Avatar for guccica
0
120
Member Avatar for new_2_java

Hi all, I am new to java. I am writing a program and I would like to read some inputs from user, when the program is run. Can someone give me some hints on how can do this... Thanks.

Member Avatar for new_2_java
0
94
Member Avatar for tactfulsaint

Please i need help with a code that can help me add an item to cart take me to the next page and i will still see thesame item i choose on the shooping cart.

Member Avatar for jwenting
0
57
Member Avatar for majestic0110

Hi there, I am experimenting with game design and have met an obstacle. I am trying to paint the background of this simple game I have coded but cannot seem to find out how! any help would be much appreciated!

Member Avatar for majestic0110
0
92
Member Avatar for jimm00.kl

Hello friends , i am jimm . I have some doubts regarding Java Basics. If anyone interested in Java basics..please help me out to find out the answers. What is a java source file ? can you please describe ?

Member Avatar for jwenting
0
172
Member Avatar for saranya_arun

I reterived a set of records from the database using a j2ee applciation. i want to delete a record in from the ones that are displayed. is it possible to delete just by clicking a button on the same page where the results are displayed? can someone help me on …

Member Avatar for jwenting
0
62
Member Avatar for hidash_in

hi all, in the below code is used to open a file with its corresponding application.the file with application is opening but the data is corrupted. pls help to open the file without data corruption. advance thanks <% // fname is the file name String filePath=savefile; File f = new …

Member Avatar for masijade
0
429
Member Avatar for parthiban

Hi all , I had created a Document using jTextPane which I will use as a Template to create customize ones . For eg : I will create something like this in a Document using jTextPane Hi [B][I][U]<name>[/U][/I][/B] and I will open this Document in another jTextPane to replace <name> …

Member Avatar for parthiban
0
149
Member Avatar for im_desperate

Hey i want to create a [B][U]vector[/U][/B] in order to store circles in it. i did something but im getting a warning error "java uses unchecked or unsafe operations" if anyone knows whats going wrong let me know thanks in advance! [CODE] import java.util.Vector; import java.awt.*; import java.awt.geom.*; public class …

Member Avatar for majestic0110
0
142
Member Avatar for kindheart07

Hello everyone, please i am new to progamming in general and i have a project to submit this friday i have been trying to find a way to write the codes but all i keep getting is errors and another problem is one of the program i have to write …

Member Avatar for Acidburn
0
137
Member Avatar for abar_sow

what may be the reason for the following message? D:\program files\Java\jdk1.5.0\bin>java FindNoun java.lang.NullPointerException at java.io.Writer.write(Writer.java:126) at ReplaceText.saveOutput(FindNoun.java:92) at FindNoun.main(FindNoun.java:109)

Member Avatar for masijade
0
120
Member Avatar for jsmith9990

Hai . I'm Smith. In this section We have to discuss about JSP. I want to know more about JSP.I thnk the people interested in JSP will help me out to find out some answers. How is a JSP processed ?

Member Avatar for samtben111
0
88
Member Avatar for ivabigun

Hi guys, I am working on an encryption/decryption vigenere cipher at present. Ive been reading and writing to text files using integer arrays and then modding them together in order to get the full ASCII character set. the problem i am facing is, when i am encrypting, the spaces dissapear …

Member Avatar for indienick
0
100
Member Avatar for crazydj

Hi everyone! I want to secure my URL to my webapplication so that nobody can get straight to the maps on the server wich are in the url. Can anyone help me with this? Thx

Member Avatar for peter_budo
0
25
Member Avatar for aan@ucsc

Could any one pleace tell me, can I run a java program on a system that does not have a java virtual machine?if yes,how could I do it?

Member Avatar for jbennet
0
41
Member Avatar for romcas6

I'm a neewbie in this help what's wrong with this one.. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ page import="java.sql.*" %> <% //create a Connection, Statement, and ResultSet object to connect to the database Connection con = null; Statement stmt = null; ResultSet rs = null; String queryText …

Member Avatar for nschessnerd
0
81
Member Avatar for majestic0110

hi all, I am trying to design a game app that uses a swing gui as a main menu. so far I have been a little confused as to how I get my 'start new game' button to actually launch the game. I have googled event handlers and cannot seem …

Member Avatar for majestic0110
0
82

The End.