i have already registered with this forum but days after i can't enter the site and it says that the password could not be validated with the sun online id....i have not mistyped it too coz i have open it a few times....is it possible that some of my friends change my current password to a new ...
Hi !New to this board, hope you will excuse me if i磎 asking something stupid :-)I磎 pretty new to JAVA, and at the moment I need to modify some code, so that it will dynamically preset the name and file-type when the user chooses to save. I'ts a small bit of code that uses different JPEG-pics, ...
2994 byte By
LeKtriXa at 2007-9-30 23:53:41
Hello,I have a Map class that reads in a map.txt (square or rectangle) as a 2D array of chars.I need to now convert it into an array of JLabels and display it in a window. I have started some already but Im not sure if I am going in the right direction. Either I am VERY CLOSE or I am WAY OFF. I ...
Hello !I have been trying to avoid the above mentioned exception but can not pinpoint as to why this is happening . Can anyone help ?God bless u.import java.lang.Runnable ;import java.io.* ;class NetWorld {public static void main(String args[]) throws IOException { boolean mainFlag = false ; ...
I'm having problems with a particular task. Here is what I have to do:Write a program which reads 100 integers from a file. Store these integers in an array in the order in whcih they are read. Print them to the screen. Sort the integers in place using bubble sort. Print the sorted array to ...
Eclipse runs the following code perfectly fine. but I don't have a single goddamn browser from explorer to mozilla that can execute the following:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>Just a sample app for quick ...
I would like a user to be able to type in http://x.xx.xxx.xx:xxxx/TheSiteName and they are directed to my index page. Right now if I did this it would take me to the file directory listing. How do I fix that?!?
What I'm doing is using a JBGrid component to dispaly all open quotations for a specific prospect. The user is to select a row in the grid and click on the btnLoad object. I would like that event to fire this method (it does this just fine as I've put System.out.printlns into the method to ...
557 byte By
josomaa at 2007-9-30 23:55:26
Can someone please help me with what exactly the classpath variable does? I have my java and javac.exe files located in C:\Program Files\Java\jdk1.5.0\bin. I can only compile and run files that are located in this directory. So if I put my HelloWorld.java file in that directory and run the ...
In work (and other things, wink wink), Heidi Klum says I should "become the fantasy". http://www.cnn.com/2004/SHOWBIZ/books/12/04/klum.reut/index.htmlDoes this work for Java, too?
295 byte By
fiskesa at 2007-9-30 23:55:50
I'm migrating to Eclipse from VCafe and am having problemsMy program crashes because it can't open the file passed to main(args[])I'm sure its a path issue but I can't recall where eclipse sets the value for args[] and how to modify the paths used. Would appreciate help
I want to sort just 1 column of an array that has 1000 rows and 5 columns.Is there an automated way to do this?Col1 Col2 Col 3 Col4 Col5
Hi guys, I guess I'm going to post one of the most silly questions on the forum but I have a stupid problem....I have to compute an expression dependendent on n (n is incremented each time the function is called).This is the expressionBWVar = (1/(n-1))*(BWSqSum-n*(Math.pow(BWAver,2)));If n is ...
Hey everyone, I have to make a program which can do this:print 19 times 19 labelled table indicating which of all the pairs made up of integers between 2 and 20, inclusive, have common factors other than one. (that is there GCD is greater than 1)A "--#" at the intersection of two numbers show ...
Hello, I'm relatively new to Java. I am a student in high school taking an Introduction to Computer science course, and am in need of creating applications from my PC. I downloaded the "jdk-1 5 0-windows-i586" file, and installed it on my computer, but I do not know how to configure it. I wish ...
Hi,I have a Java program that I want to run and gather some memory usage statistics on. Can someone recommend a good tool? Google search yields many, but I was hoping to go with one that other developers may have standardized on.Thanks.
Sorry, but im still quite new to this and havent quite grasped the concept of arrays. I was able to use the string tokenizer on the formatted text in a file where there are only three variables. In the loop indicated below id like to store the first token from the file, into one array, the ...
477 byte By
jeffnca at 2007-9-30 23:56:44
I notice in the certification levels that the new exam (1.4) has removed the material on AWT and I/O as compared to 1.2. I also notice that in a newer version of a book - Java in a Nutshell from O'Reilly - AWT and Swing have been removed (3rd ed. compared to 2nd ed.)Not knowing much about Java ...
Hello,I downloaded a package mx.jar. It has classes in it that I need to use. But my program that uses the package will not compile.package mx does not existimport mx.*;Could someone please tell me how do I get the code to compile?
Bought a copy and installed it. It went in well, but I find it only has one template just for web applications. Does this thing do other stuff, like console apps, or applets and such?Mark Bondurant
86 byte By
cstone6a at 2007-9-30 23:57:07
How would I read an input file charcter by character instead of token by token?
I have an existing java application that is essentially an editor. It keeps a little chunk of data and represents it on the screen and you can manipulate and play with the data.Someone has asked me if the software could be modified to be use collaboratively over the web. I assume that they mean ...
hi everyone,i'm a shorthorn here,and i love jave,enjoy studying.here i've a test project wanna your great help.i plan to create aproject to connect to a FTP sever,and download files from it,afterdownload it,i'll read these file,put some content into database,finally delete the files on ...
Hi PR's I have created a vector named roomContainer to put rooms in.I have got list of all rooms and a list of all booked rooms which am able to display them on a console but because they are different variables I don't know how i can display rooms that are not booked(free rooms). if rooms ...
629 byte By
InkTanka at 2007-9-30 23:58:03
I am a student and new to Java programming. I have an assignment to write a program that will interact with a two file Database that has a one to many relationship and must be able to demonstrate referential integrity. It will also need to have options to add, delete, modify and view records. ...
5138 byte By
Stumpeda at 2007-9-30 23:58:31
I've created the below class and now I need to write main so that it prompts and reads in two names from the user with first, middle and last names. then i need to create a name object for each. Is there an easier way to get the user input than what I have below?Name firstName;Name ...
I am using mysql as a database. The default format in mysql is yyyy-mm-dd and I want to change the format as dd-mm-yy then how can I chage? Pls give me Suggestion.Thanx
Hi i want develop my application using jsp and servlets. Which version of java should i install?
309 byte By
babu-ha at 2007-9-30 23:58:40
Hi ,Is It Possible to call external exe in java.I read Runtime.exe("some exe") but actually my exe expects some input to process for that how can i pass the input to my exe and how can get the response from exe to my java class.any sample code is welcome.ThanksBabu ...
Hi all,I'm trying to get my program to display the instruments used in a midi file. As I understand it's a matter of saying something like:Sequencer myPlayer = MidiSystem.getSequencer();myPlayer.open();myPlayer.setSequence(seq); //Where seq is the sequenceSynthesizer synth = ...
I am using Dreamweaver MX 2004.I just cannot get my head round this Java code and would really appreciate some help or direction!I want to make a nice little window to show a few lines of text, with a close button or X in the corner (not fussed). I have looked at lots of tutorials and produced ...
I'm having a problem with an insertion sort method. Here is the task I have - "Write a program which reads 50 strings from a file and places them in a sorted array using Insertion Sort according to their lengths." My code I have so far compiles but doesn't produce any output. Can you see any ...
395 byte By
hbc1981a at 2007-10-1 0:00:07
Hi,I am building a reasoning engine in Java and this needs to work with PHP web pages.I am having difficulty finding out if it is better performance wise (or any other way) to get PHP pages to call a Java program (using PHP 4's Java extension) or to redicrect from PHP to a Servlet (running on ...
562 byte By
hbc1981a at 2007-10-1 0:00:12
Hi,I have a servlet which will be called with a get request with some parameters, will do some calculation and then forward on the results as parameters to a script (PHP).I see that I can extract parameters from an HTTP GET request to my Servlet using doGet and retrieving the parameters sent to ...
689 byte By
Achayana at 2007-10-1 0:00:19
Hi Friends,Whats the difference between the 'stack' and 'heap' memories?My perception is that all the objects gets created in the heap part while the stack part holds the class & method definitions and the primitive and refernce values, please correct me if Im wrong.Can there be any ...
i want to append content in the begning of text file.is there any class in java support this need?if there is no class for this...anybody can give logic to implementvenu
i want to append content in the begining of text file.(usually append flag will append content in end of the file)is there any class in java support this need?if there is no class for this...anybody can give logic to implementvenu
265 byte By
ciaraFxa at 2007-10-1 0:00:51
Hi there,Does anyone know where I could find a list ( 300+) of first and surnames of non famous people? It can be in xls, txt or mdb format. Preferably in the format <first name surname>.Any help much appreciated.ThanksCiara
6004 byte By
lachicaa at 2007-10-1 0:00:59
Hey all,I'm trying to write a program that calculates a mortgage and gives the user the option of choosing from 3 loan terms: 7 years @ 5.35, 15 yrs @5.5% and 30 yrs @ 5.75%. For the options I decided to use radio buttons. I have used buttongroup but I think this is not working for me. I ...
Hi everyone,Here is the program in javaclass Static1 {public static void main(String a[]) {int x=1,y;y=x++ + ++x + ++x;System.out.println(y + "" + x); }}output for this program is 8 4The same program in c++ which i got the output as 7 4Can anyone explain me pls ........With ...
we are using wls8.1sp2. The 4 managed servers are clustered, 2 each on 2 unix boxes. Moreover, these 4 BEA managed servers are clustered with 2 iplanet webserver instances in front. Furhtermore these 2 iplanet webserver instances are loadbalanced by the DNS entry/a virtual IP.Well, the problem ...
this is my first experience with GUIs and especially the jComboBox so if i seem to be missing something obvious let me know.my problem is that i want to populate the combo box with strings from a text file.right now i've written an extra class LoadData which populates a vector with the strings ...
Hi . Do thatSystem.out.println(new Date("10/10/2004")); You will get : = Sat Oct 09 23:00:00 BRT 2004when I do that System.out.println(new Date("12/12/2004")); You will get the correct result : = Sun Dec 12 00:00:00 BRST 2004I know that this sintaxe is deprecated. I can use de DateFormat. ...
error message - stdout.logCatalina.stop: java.net.ConnectException: Connection refused: connectjava.net.ConnectException: Connection refused: connectat java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(Unknown Source)at ...
HelloI have a frame with BorderLayout, and in its center I have a JTextArea of a certain size. I would like to add 2 check boxes in the EAST border. I place these in a JPanel with GridLayout(0,1), but the checkboxes will fill out the entire height of EAST border. I would like them to be just ...
Hello again world.If one designs a class hierarchy correctly (allowing for different interpretations of the word correct in this context), is polymorphism a contributing factor to that design or simply a result of the correctness of that design? I'm beginning to sense that polymorphism is just ...
Hi, i am trying to create a java applet that allow for the user to click on three points and then uses those 3 points to create a circle. any help is appreciated, thx
698 byte By
tsosmia at 2007-10-1 0:02:21
hello there,i've got the followng code:<INPUT TYPE=RADIO NAME="amswer" VALUE="S">Strongly agree<INPUT TYPE=RADIO NAME="answer" VALUE="A">Agree<INPUT TYPE=RADIO NAME="answer" VALUE="O">OK<INPUT TYPE=RADIO NAME="answer" VALUE="D">Disagree<INPUT TYPE=RADIO NAME="answer" ...
I want to set an Object property with a Dynamic Proxy instance.Something like this://suppose I have a dynamic proxy to instance A of class MyClassMyClass A;Object proxy = Proxy.newProxyInstance( A.getClassloader(), A.getInterfaces(), someHandler);//suppose B has a property "prop" of type ...
Hello,I installed jdk1.4.2_05 a while ago. I have since downloaded a jar file that requires java 5. Would it be ok to download and install this latest version and still have 1.4.02_05 running also?i,e, is it ok to have run different versions of java on the one machine.Would there be any ...