32,199 Topics

Member Avatar for
Member Avatar for hisrichness

Hey, I have to write a Java program that implements a sorted linked list to be able to count the number of chars and words in an input file. would any1 be able to help me please? Thanks

Member Avatar for jwenting
0
117
Member Avatar for razibcse

Hi, I have a project on peer-to-peer file transferring...Now I don't have any clue how I can use just the IP address of a computer to search for files in different drives...I have used socket object to create clients...now I have the info of only IP address and port number …

Member Avatar for jwenting
0
90
Member Avatar for mike1980

Tryin to get the "Division by zero not allowed" part working ca someone help please :cry: [PHP] import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.applet.Applet; public class JDivideMe extends Applet { private TextField numeratorField = new TextField( 10 ); private TextField denominatorField = new TextField( 10 ); private Label theAnswer …

Member Avatar for mike1980
0
210
Member Avatar for bsunkel

Heya all, I have a small problem. I have created a phonebook program for myself. I am using MySQL to store all the data. Just the usuallly stuff like name, tel No, address etc. I have about 400 entries in MySQL. ON MY SEARCHING MENU: I use a JTextfield to …

Member Avatar for server_crash
0
77
Member Avatar for George2

Hello everyone, When exceptions occur in constructor so that the instance of the object can not be created, should we throw the exception to the invoker of the constructor or simply catch the exception (and not throw it again)? I think we should not catch the exception (and not throw …

Member Avatar for George2
0
177
Member Avatar for luisator

Hi everyone: I am running an java application in a windows xp toshiba computer. My application works fine in an windows 2000 compaq deskpro computer but in the toshiba one I get a strange exception. I think the problem is something with the parser and that makes the second error …

Member Avatar for freesoft_2000
0
290
Member Avatar for tomank

My knowledge of java is zero - I program in VB, however I have just got hold of a bluetooth mobile phone, and since it runs java apps it got me to thinking... In a nutshell I want to use the phone as a remote control for windows media player …

Member Avatar for freesoft_2000
0
356
Member Avatar for ultimate_fusion

i want to name a item and give it a color(probs an int value) i was thinking of doing a 2d array but I need to send it to another class i create the item by Monster m = new Monster(this); any ideas

Member Avatar for Phaelax
0
79
Member Avatar for NewbyChic

I am having some issues learning inheritance. I have stumbled across this example in my book but it has got me floundered. I am not expecting a resolution to this but maybe a little push in the right direction. I need to write an inheritance hierarchy for classes quadrilateral, trapezoid, …

Member Avatar for Phaelax
0
214
Member Avatar for vajwee

Non of the java programs which used to run fine in my computer has stopped running. There are no errors in da programs as they still run fine in other computers. All programs gives the folllowing error "Exception in thread "main" java.lang.NoClassDefFoundError" I set my classpath and the path fine …

Member Avatar for vajwee
0
460
Member Avatar for animesh
Member Avatar for server_crash
0
91
Member Avatar for grajeshmsc

I'm working on a project that requires users logging on using windows authentication. How do I go about this. This application is JSP-Struts.i can able to get the user name by System.getProperty("user.name"); But i can i get the password.PLz help.Thanks in advance. with luv Rajesh G

Member Avatar for grajeshmsc
0
318
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to print a multipage JTable but the the thing is on the left hand side of the JTable does not have any grid lines and i have tried to draw a rectangle around the jTable before printing it but nothing is happening. Another thing …

Member Avatar for freesoft_2000
0
176
Member Avatar for frankcs

guyz.......total newbie to servlets stuff......... have got few java files and their corresponding class files.....don't know where to put those files in the tomcat directory structure............ i have put the html files in the root directory....... the html file is working but the file can't retrieve the servlet............guyz plz help …

Member Avatar for techniner
0
173
Member Avatar for paradox814

i hear that java is supposed to be very secure and it has all these security features yadda yadda yadda, but my question is: if you can decompile the program modify its content and recompile it, then how can java be secure?!? I am asking this because I need to …

Member Avatar for happyshub
0
127
Member Avatar for sam1

hi does anyone know what this mean? SWT.error(SWT.ERROR_NULL_ARGUMENT); is there another virsion of this to write?

Member Avatar for sam1
0
106
Member Avatar for ultimate_fusion

I am starting to make some java games and I think i have sorted out the collision side of things ( i have made a space invaders game) so i know how to shoot and kill enemies. I am now wanting to stop players/monsters going through walls etc? p.s. what …

Member Avatar for ultimate_fusion
0
175
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to add values to an element spec array dynamically. This is what i am trying to do [code] SimpleAttributeSet start = new SimpleAttributeSet(); start.addAttribute(AbstractDocument.ElementNameAttribute, "start"); SimpleAttributeSet end = new SimpleAttributeSet(); end.addAttribute(AbstractDocument.ElementNameAttribute, "end"); DefaultStyledDocument.ElementSpec esStart1 = new DefaultStyledDocument.ElementSpec(start, DefaultStyledDocument.ElementSpec.StartTagType); DefaultStyledDocument.ElementSpec esStart2 = new DefaultStyledDocument.ElementSpec(start, DefaultStyledDocument.ElementSpec.StartTagType); …

Member Avatar for freesoft_2000
0
138
Member Avatar for nccliang

Hi guys , i met with another problem and it goes like this I had a com application , i uses JIntegra to wrap the com object and now i have 8 java classes . Then i created my own java class , to create object of their classes in …

Member Avatar for nccliang
0
141
Member Avatar for vex

8.10 Sum of series Write a program to calculate and display the sum of the series: 1 - 1/2 + 1/3 - 1/4 + ... Until a term is reached that is less than 0.0001 I do not need help with the code! What comes next in the series? Is …

Member Avatar for server_crash
0
193
Member Avatar for Shanrak

I am trying to use the stringtokenizer on input strings containing the " character, but stringtokenizer seems to treat that as the end of the string. For instance, "a cat is /"not/" a dog" should return the tokens a, cat, is, "not", a, dog but instead it returns a, cat, …

Member Avatar for server_crash
0
293
Member Avatar for stupidenator

Hello Everyone, I recently have been getting into the python language and noticed that there is a portable python that you could save to something like a flash memory card and then you could write and run python programs on any computer without having to install anything. I am wondering …

Member Avatar for server_crash
0
223
Member Avatar for ! !

[url="http://www.javaworld.com/javaworld/jw-05-2005/jw-0523-anniversary.html"]http://www.javaworld.com/javaworld/jw-05-2005/jw-0523-anniversary.html[/url] [url="http://java.sun.com/features/1998/05/birthday.html"]http://java.sun.com/features/1998/05/birthday.html[/url] [img]http://java.sun.com/features/1998/05/images/green.bbq.jpg[/img][indent][i][QUOTE] [/i][i][i][font=Arial][color=dimgray]This is a snapshot taken at a barbecue that James Gosling threw for some of the folks associated with the Green Team. From left to right they are: Al Frazier, Joe Palrang, Mike Sheridan, Ed Frank, Don Jackson, Faye Baxter, Patrick Naughton, Chris Warth, James Gosling, Bob …

Member Avatar for server_crash
0
110
Member Avatar for Dark_Omen

Hello, I created a program from a book I am reading on java. The program is using swing to make a frame that shows buttons. It compiled without any error, but I ran into an error while trying to run the program. here is the code: [CODE] import javax.swing.*; public …

Member Avatar for Dark_Omen
0
141
Member Avatar for nilesh

I am developing a J2ME application for Nokia 6630. In which I'm trying to play audio (.mp3 & .amr formats). I use " player.stop(); " to pause audio. But when I try to resume audio, Player strarts audio from beginning. import java.io.*; import javax.microedition.lcdui.*; import javax.microedition.media.*; import javax.microedition.media.control.*; import javax.microedition.media.PlayerListener.*; …

Member Avatar for server_crash
0
125
Member Avatar for scb10

i need a code that allows me to take an array search it on another txt file and replace the new string with the string after the (,) and save the changes in a new file. how do i do that???? i have this: file1.txt sd00100 test on 24 ago …

Member Avatar for freesoft_2000
0
100
Member Avatar for nccliang

hi guys , i have a query if some group of people are using the same java application and are connected via LAN . It is like in the java application , i want to expose other people ip address , so that i am able to send message via …

Member Avatar for freesoft_2000
0
179
Member Avatar for maverick_79in

Hi, Well i am new to these forum as well as IT field.But i was looking for a right form to post up my add for help. I am an Aerospace student from scotland dont knwo much about IT. I have been assigend the IT Project from the university to …

Member Avatar for freesoft_2000
0
216
Member Avatar for jigvesh

I wanted to know that is it possible to change the background of a frame and put an tiled image as the background instead? If yes, then how??

Member Avatar for freesoft_2000
0
83
Member Avatar for nccliang

Hi guys , i was wondering how could you create your own UDP ports in java ? To be more specific , its like i have a communication application in java which i can use it to interact between different computers in LAN . However this application usto transmit data …

Member Avatar for server_crash
0
93

The End.