Forum: Java Aug 28th, 2008 |
| Replies: 4 Views: 1,339 Cookies should never contain passwords. You can have a cookie contain a session id. The session id can then point to a user in a database. From the database you can easily cross reference the user's... |
Forum: Java Dec 3rd, 2007 |
| Replies: 6 Views: 770 well then I can pass it as an Integer and a Float |
Forum: Java Dec 3rd, 2007 |
| Replies: 6 Views: 770 well I have either an int or a float all the calculations are the same except for the constructor, where I need to call either java.util.Random nextInt or nextFloat |
Forum: Java Dec 3rd, 2007 |
| Replies: 3 Views: 11,457 use a csv extenion on any text file
for example, a file named output.csv
with the following data:
a,b,c
1,2,3
x,y,x
would produce the following in excel,
cell a1: a
cell b1: b |
Forum: Java Dec 3rd, 2007 |
| Replies: 6 Views: 770 I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the... |
Forum: Java May 15th, 2007 |
| Replies: 6 Views: 2,012 I was talking about the other component, those two I already knew |
Forum: Java May 13th, 2007 |
| Replies: 6 Views: 2,012 I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image.
It's the one that is captioned "Please input the...." I don't need help... |
Forum: Java Mar 12th, 2006 |
| Replies: 2 Views: 28,195 what does this have to do with programming in java? This sounds more like a webserver issue.
look in the httpd.conf file to change the port (in apache) |
Forum: Java Dec 2nd, 2005 |
| Replies: 11 Views: 2,425 i think i see what u mean... the focus will automatically return to main, so there is no need to call main(); it will continue from where it left off. |
Forum: Java Dec 2nd, 2005 |
| Replies: 11 Views: 2,425 you can return primitive data types and objects... not functions |
Forum: Java Oct 6th, 2005 |
| Replies: 2 Views: 1,509 it sure is, go ahead and try it!
it's like placing a zip in a zip |
Forum: Java Oct 6th, 2005 |
| Replies: 4 Views: 1,543 all the years from 1628 to 2005 .... hmmm, I would definately look into a for loop for this one
sounds like a homework problem to me |
Forum: Java Jun 13th, 2005 |
| Replies: 6 Views: 1,552 yes i would encrypt the password, but if you can view my source code, then you can view how it was encrypted, and thus decrypt it, I thought about having 2 passwords, one is the software to make sure... |
Forum: Java Jun 13th, 2005 |
| Replies: 6 Views: 1,552 oah yeah and I know about obuscaters, but that doesn't almost nothing to protect your code, just makes it really decently hard to copy |
Forum: Java Jun 13th, 2005 |
| Replies: 6 Views: 1,552 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... |
Forum: Java Jun 13th, 2005 |
| Replies: 2 Views: 1,198 is there anything you need help with specifically? we are not here to do your homework, so unless you have a more specific question then forget about it |
Forum: Java May 16th, 2005 |
| Replies: 18 Views: 12,932 you might want to consider creating a jnlp file instead |
Forum: Java May 16th, 2005 |
| Replies: 18 Views: 12,932 java was not designed to natively run on any operating system, so any thing like your jbuilder is completly independent of sun java. As far as i know many java to exe compilers are actually convert... |
Forum: Java May 10th, 2005 |
| Replies: 10 Views: 5,809 you can find plenty of them here:
http://freshmeat.net/search/?q=gateway&trove_cat_id=198§ion=trove_cat&Go.x=0&Go.y=0 |
Forum: Java May 9th, 2005 |
| Replies: 9 Views: 5,974 it could just be cached...
open control panel
double click java
under "general" --> temporary internet files click delete files
make sure "downloaded applets" is checked
click ok, click ok
... |
Forum: Java May 6th, 2005 |
| Replies: 5 Views: 11,326 uhm, maybe a BindException or a PortUnreachableException but i'm not sure |
Forum: Java May 6th, 2005 |
| Replies: 7 Views: 1,726 Good luck if the file was encrypted usign unlimited strenght encryption, which is available for java (if you live in the usa). You just have to download it seperately. Do you know what encryptions... |
Forum: Java May 6th, 2005 |
| Replies: 3 Views: 1,582 here is another site:
http://cs.saddleback.edu/rwatkins/CS4A/ExamplesIndex.html
http://cs.saddleback.edu/rwatkins/CS4B/ExamplesIndex.html
learn how to interact with a MS Access Database, MySQL... |
Forum: Java May 6th, 2005 |
| Replies: 2 Views: 10,880 take a long at java.io.ObjectOutput as this has already been created for you...
http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectOutput.html
no sense reinventing the wheel |
Forum: Java May 6th, 2005 |
| Replies: 5 Views: 11,326 there are thousands of ports, i think it ranges from 1-65,536 the first 1,024 are reserverd ports even though not all of them have been claimed yet, so program should generally try and refrain from... |
Forum: Java May 2nd, 2005 |
| Replies: 15 Views: 5,771 use javax.swing.JScrollPane and then just add your text area to this |
Forum: Java Apr 28th, 2005 |
| Replies: 6 Views: 2,961 lol, what if the program crahes or the operating system crashes/turns off/restarts/etc... and the file is left there for all eterninity! then the program will never be able to be opened again! |
Forum: Java Apr 27th, 2005 |
| Replies: 6 Views: 1,591 java.util is a legacy package, how do you figure Vectors should have been deprecated? It is part of the collections framework, they also updated it for java 1.5 to support enumerated types |
Forum: Java Apr 27th, 2005 |
| Replies: 2 Views: 2,241 just create a little loop and have it print on a new line everytime you repeat through that loop or are you trying to do this in a GUI?
System.out.println("column 1 column2");... |
Forum: Java Apr 27th, 2005 |
| Replies: 1 Views: 1,597 why don't you read it in this format:
char, int, string
then just use StringTokenizer to serpate any strings at the end, since you are usign tokenize you can count how many tokens are there to... |
Forum: Java Apr 27th, 2005 |
| Replies: 9 Views: 1,526 i tried it and it worked just fine, let me give you the link, but this time i substituted the username/password in there
... |
Forum: Java Apr 26th, 2005 |
| Replies: 6 Views: 1,591 you mean if you had the following:
intArray[0] = 0;
intArray[1] = 1;
intArray[2] = 2;
intArray[3] = 3;
intArray[4] = 4;
and you wish to convert it to:
intArray[0] = 0;
intArray[1] = 1; |
Forum: Java Apr 26th, 2005 |
| Replies: 1 Views: 1,696 well if we are trying to do that, then i would avoid putting a delimeter of a comma, since that will break up the lines at every single comma. A good delimiter would be the end of line signal, \n... |
Forum: Java Apr 26th, 2005 |
| Replies: 3 Views: 1,480 interfaces are classes which are abstract, which means if you implement a class you MUST override every single method in that class
for instance suppose you have a JSlider and want to add an... |
Forum: Java Apr 25th, 2005 |
| Replies: 14 Views: 2,051 haha ... look who the idiot is now! :o :cry: |
Forum: Java Apr 25th, 2005 |
| Replies: 11 Views: 1,856 i made my own custom charset so i could increment it myself and just usign ....
well i dont want to go to far into the code for this as i dont want to get kicked off this site! but once you get... |
Forum: Java Apr 25th, 2005 |
| Replies: 11 Views: 1,856 Actually it's an extremely easy project. Realisticaly, as you have mentioned it will take forever and have virtually no practical use because of the time! And like i said it takes a day or two with a... |
Forum: Java Apr 25th, 2005 |
| Replies: 14 Views: 2,051 i would not have responded to this question, but at the same time i did not want the wrong answer being given out... which i think is 10x worse than just been given the answer |
Forum: Java Apr 25th, 2005 |
| Replies: 11 Views: 1,856 I always thought it was fun to build a crack not because it goes around the law, but because it is something totally new to program.
Granted I have never distrubuted one, and have only managed to... |
Forum: Java Apr 25th, 2005 |
| Replies: 14 Views: 2,051 actually I don't believe they are... a loop starts at the beginning goes straight to the end, and then repeats.
a recusrive method/function will start at the beginning and go until it is called... |