- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
146 Posted Topics
Re: [QUOTE=shad]Hi Everyone, i am a final year computer science student.I was thinking of building a secure online voting system for my university's student union elections process. I wondering if anyone has an idea on how i can go about implementing the system.I would really appreciate any help you give to … | |
Re: of course you do. :) You're trying to declare a method inside of a method. Remove the first public static void main method and then a ending } near the bottom of your code and that should help you out some. Also, you have an extra ; at the end … | |
Re: Yeah, we're not suppose to do your homework for you bud. Do you have to use arrays? It might be best to use a HashMap here. Using a HashMap will allow you to count only the characters that you have and nothing else. However, you will have to make a … | |
Re: Hopefully the following link should help: [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2691&lngWId=2[/url] | |
![]() | Re: I don't think paint can do transparency. Try [url=http://www.gimp.org/]The Gimp[/url]. Its free and written in java. |
Re: you don't have a 'main' method in your class. Add the following: [code] public static void main(String[] args) { // Create an instance of your window here. // set the window to visible(true); } [/code] | |
Re: [QUOTE=Dark_Omen]Is there a way to convert a double to string. I tried to do it like this x.toString() and it didnt work as well as implicitly converting it.[/QUOTE] double is a primative not a Class and you cannot call methods on it like a Class/Object. There are several ways to … | |
Re: [QUOTE=dragony2000]i wanna be a good java developer[/QUOTE] Join the club. I've been programming for 8 years now and I still want to move from beginner to good. | |
Re: Its because you're defining methods inside of another method. remove the public static String getName(), public static void openFile(); (btw, you need to remove the ; here), and public static void displayResults() from the public static void main(String[] args) method. So your code should look more like... [code] public class … | |
Re: I like eclipse too and I also have some ant scripts that help setup my work environment. | |
Re: [QUOTE=mahes_]I was reading through my text book on Java Programming...It showed two class methods compareTo() and equals()...It seems to be that there is no difference between this two...Can someone pls clear me on this..Thank You![/QUOTE] compareTo(String anotherString) is used to compare if two Strings are equal and if they arn't … | |
Re: I'm betting this is a compile error? Your compiler can't find the class MyInput. Make sure that MyInput is in your classpath. Regards, Nate | |
Re: Java Runtime is used to only run applications on a machine. There is no ability to compile java code into java classes with the Runtime environment. The Java Runtime uses a Java Virtual Machine. The Java Virtual Machine is what gives java its cross-platform ability. There is a virtual machine … | |
Re: There is also a contains(Object o) method on List. So, you could check to see if the object is in the ArrayList before adding the Object. Or you could extend ArrayList with your own class that checks to see if Object is present in the ArrayList using the contains method … | |
Re: You should be creating a new topic for a new question. You also might want to be asking this question in the [URL=http://www.daniweb.com/techtalkforums/forum143.html]JavaScript[/URL] forum. Regards, Nate | |
Re: type 'set CLASSPATH' and 'set JAVA_HOME' instead. CLASSPATH and JAVA_HOME are not commands they are system varables. (You also should have stared your own thread instead of adding onto this one.) :) | |
Re: Do you have some code that connects to an Oracle database outside of a JSP? If so, could you please post it? | |
Re: Since you're using jsp's it might be easier to store the page that was clicked in the request object and use java programming (not java script) to highlight the page that was selected. The request should keep the page that was selected even after a refresh. Regards, Nate | |
Re: The attachments for yahoo might be in a database, but the user that sent the attachment isn't going to be sending a link to access the attachment from there database. The attachment is just part of the email message itself. With Yahoo doing one particular way of allowing a user … | |
Re: Well, getting the requirements frist would be a first good step. Then figuring out what your business objects are from there would be a nice second step. You must first show some effort and then we will help. :) | |
Re: What the error is saying is that istrue is not an ant task that shipped with ant called "istrue". Which there isn't. Try looking at ants "[url="http://ant.apache.org/manual/CoreTasks/condition.html"]condition[/url]" task. It should be able to do what you need it to. You can then nest different types of condition [url="http://ant.apache.org/manual/CoreTasks/conditions.html"]elements[/url] in your … | |
Re: The .prejava files are actually his .java files. You'll have to rename each .prejava file to .java. Once that is done your ide shouldn't have any more errors. | |
Re: If you're using Java 5 also known as 1.5... From the Java 1.5 API Docs... [quote] mouseEnter @Deprecated public boolean mouseEnter(Event evt, int x, int y) [b]Deprecated[/b]. [i]As of JDK version 1.1, replaced by processMouseEvent(MouseEvent)[/i]. [/quote] [quote] processMouseEvent protected void processMouseEvent(MouseEvent e) Processes mouse events occurring on this component by … | |
Re: whoa buddy... please don't reopen a thread that is 2 years old. :) Also, this is a javascript problem and you should post your question in the [url=http://www.daniweb.com/techtalkforums/forum143.html]HTML, CSS & JavaScript[/url] forum. | |
Re: Well, my guess is we would need to look at your code to see where the issue is. | |
Re: Signed means that the Applet has access to the browsers local machine. Due to security risks associated with Applets, applets are NOT ALLOWED TO ACCESS THE LOCAL MACHINE. However, if the applet is Signed then it is allowed to access the local machine. I do not know about how to … ![]() | |
Re: Do you have two class files or do you have only one class file? | |
Re: the text [i]script type="text/javascript"[/i] should hopefully give you a hint that your code is actually JavaScript and not Java. I would recommend asking your question in the [url=http://www.daniweb.com/techtalkforums/forum143.html]HTML, CSS and [b]JavaScript[/b][/url] forum. | |
Re: Of course you need help with deciding on what to do for a semester ending project. How about trying one of these? [url]http://www.daniweb.com/techtalkforums/thread48951.html[/url] [url]http://www.daniweb.com/techtalkforums/thread51473.html[/url] [url]http://www.daniweb.com/techtalkforums/thread51020.html[/url] | |
Re: How are you creating your thread that communicates to the internet? | |
Re: You might want to ask this question over in the [url=http://www.daniweb.com/techtalkforums/forum143.html]HTML, CSS and [b]JavaScript[/b][/url] forum. | |
Re: could you post more of your code please. there doens't even seem to be a complete class there. :) Also, do a System.out.println(bExitButton) right after the bExitButton is created and then do a System.out.println(source) after getting the source from the event to make sure you're working with the same object. | |
Re: You could also try adding all your components and THEN showing the JFrame. [code] JFrame jfWindows = new JFrame("Search Box"); ... //add components here... ... jfWindows.setVisible(true); [/code] | |
Re: Is there a question in there somewhere? | |
Re: Are you on a unix, linux or windows machine? There are different cvs products for each I think. You are going to have to do a lot of reading on cvs to get good at it. But there are CVS commands written into ANT, which should help you out quite … | |
Re: You and everyone else... [url]http://www.daniweb.com/techtalkforums/thread53661.html[/url] | |
Re: Do you have requirements yet? Besides having to create a hotel reservations system? | |
Re: Why would the panel need to request the tab change? | |
Re: You might want to look into a SectionListener instead of a MouseListener. Just a guess though. I've never worked with the SWT. | |
| |
| |
Re: cook‧ie /ˈkʊki/ Pronunciation Key - Show Spelled Pronunciation[kook-ee] Pronunciation Key - Show IPA Pronunciation –noun 1. a small cake made from stiff, sweet dough rolled and sliced or dropped by spoonfuls on a large, flat pan (cookie sheet) and baked. 2. Informal. dear; sweetheart (a term of address, usually connoting … | |
Re: You will need to use JDBC to access the database. Here is a link that was found with a simple "JDBC Access" google search. [url]http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html[/url] | |
Re: The answers to your questions would most likely be in your text book. Or on your teachers power point slides. | |
Re: Thats because you're making an array of 0 length. There won't be a value at position 2. (Which is really item number 3 because I think arrays start from value 0.) | |
Re: HEY DAN! IT MIGHT BE BEST TO USE THE CODE Tags!!!!1 IT ALSO MIGHT BE BEST IF YOU LET US KNOW WHAT YOUR ERRORS Are Too! | |
Re: Why does everyone ALWAYS want to write a chat program? I don't get it. This has been suggested before, but make a program that will make end of year program suggestions to 3rd year students. | |
Re: Asking this question in the JavaScript forum would be a good start. | |
Re: I agree with jwenting. Its a bad idea to do database programmiing in a jsp. But my guess is you won't stop doing it. So I would recommend puting system.out statements in your catchs to see if an exception is being thrown. I would also try and up your logging … |
The End.