2,443 Posted Topics
Re: Have you tried using System.setProperty as the first couple of lines in your main method? | |
Re: Correct, and, as I said in your other thread, it is because the image file (as referenced there) doesn't exist. Read the API docs for the getResource method carefully and completely. | |
Re: Be more than happy to [i]help[/i] you. Once you show us what you have. We are not going to do it for you, though. You need, JFrame, JLabel, JTextField, JButton, GridLayout (as the easiest), ActionListener, and Random. | |
Re: Okay, and your question is? If you read the API docs for ArrayList you will find a method for retreiving an Object at a specific index. Use it. | |
Re: And your question is? That exception [i]usually[/i] comes when trying to insert to (or query in a where clause against) a number field using letters and not digits. Edit: I.E. 'Z' instead of 0 | |
Re: There is a "sticky" thread at the top of the Java Forum. Start there. | |
Re: Ensure the jarfiles that contain them are on your classpath. | |
Re: [code=Java] package thisIs.a.valid.packageAnd; public interface MyInterface { } [/code] | |
Re: This is [i]your[/i] quiz (you could, at least, have left off the question which makes it undeniably a quiz/homework question). What do [i]you[/i] think is wrong with it. | |
Re: And your question is? I can tell you that the "nextLine" call should come right after the print to which it corresponds, though. | |
Re: [QUOTE=whiteyoh;1005809]so with an array, say you set it to 10, and you dont use all 10, you will get an error on compiling.[/QUOTE] No. But it will if you to try to add an eleventh. [QUOTE=whiteyoh;1005809]arrayList makes the array the right size based on what you putting into it?[/QUOTE] No. … | |
Re: ProcessBuilder Or study up on the file format of rpm's and write a parser. Or google and see if a "Java RPM API" already exists. | |
Re: It probably means that the image you're trying to load doesn't exist. To change which image you're showing you need only change the image file you're loading, of course. | |
Re: [code] if (readLine.equals(pattern)) { ... [/code] Of course. | |
Re: The second option is better as "\n" is platform specific and is not always guaranteed to get the effect you wanted. | |
Re: You need to take a third input, right? So start with that, then maybe you can figure out how to continue. | |
Re: With an actionlistener, some JDBC code (that runs in a different thread), and an SQLQuery. | |
Re: An actionListener that opens a JDialog, but you'll have to create your own "view". | |
Re: No, you can't. You need to either create a new thread for each file, which is wasteful, or create and pass a list of files, rather than just one. Or, have the thread, essentially, ask for the next file (i.e. call a method in the "main" class to retreive the … | |
Re: The JDK is the Java Development Kit. It contains the compiler, the packager, a profiler, a previewer, and other tools, as well as a complete JRE. The JRE is the Java Runtime Enviroment, basically the "java" command. The JVM is the Java Virtual Machine. This is what you start when … | |
Re: That is an OS question. On linux simply add an & to the end of the command. On windows, prefix the command with start (I believe). | |
Re: [code]java test.Main[/code] not [code]java test\Main[/code] | |
Re: Did you create an "AddressBook" DSN? If not do so or Google "DSNLess connections". | |
Re: The concept is fairly simple, when you can use "temp" references. It's when you can't that it gets hard. [code] n1 = getNode(idx1) n2 = getNode(idx2) temp = n1.next n1.next = n2.next n2.next = temp temp = n1.prev n1.prev = n2.prev n2.prev = temp [/code] This is, of course, not … | |
Re: Sounds like your "temporary" string array may not be so temporary. But, seeing as how the "password" file is [i]not[/i] large, I would read the file completely and keep it's contents in memory, then start with the first word in the "dictionary", compare it in it's original form to all … | |
Re: Have you done those things that are listed in the exception? Check any firewalls. Check that the DB is running. Check that the DB is configured to accept TCP/IP connections and that it is actually listening on the port mentioned. If you are unable to do those things, then find … | |
Re: Then, seemingly, this org.jdesktop package is not repainting the textfield after the variables value changes. Sounds like a question for where ever you got this this "org.jdesktop" package. You may be doing something wrong. In any case this "binding" is not a standard Java feature, but rather a specific "feature" … | |
Re: Yeah, File. You read it and write it to copy, you listFiles to list them, and you use delete to delete them. Where's the problem? | |
| |
Re: [QUOTE=sawant_nitesh;990153]There are many[COLOR="red"] [I]Java Decompilers[/I][/COLOR] which can decomile [COLOR="Red"][B][I].class[/I][/B][/COLOR] file to [COLOR="red"][B][I].java[/I][/B][/COLOR] file revealing the source. Is there any way to prevent this reverse engineering ? [/quote] Of course. Provide a web service rather than a standalone application. [QUOTE=sawant_nitesh;990153]Like in .Net framework, once .dll or .exe is built, noone can … | |
Re: Does he ever get a Heap Space exception? Does he ever even fill at least have of the Heap Space? If not, it may just be that the JVM hasn't felt that a GC run has been necessary yet. Also, even if it has, Java only reserves from the system … | |
Re: What does Matcher's find() method return? Why are ignoring that return value? | |
Re: Well, what's the content going to be? Don't worry about the title until you have an idea of the content. | |
Re: The API documentation for the constructor your using says: [quote]Creates a new PrintWriter, without automatic line flushing[/quote] The close() method [i]should[/i] flush the stream before closing the file, but try calling flush before calling close. | |
Re: As alludded to [url=http://www.daniweb.com/forums/post985575.html#post985575]here[/url], have you tried Google, yet? And if so, what did you try? Also, do you mean "Network Data Model" (which is what most people understand behind the abbreviation NDM)? Try Googling that. | |
Re: [url]http://java.sun.com/docs/books/tutorial/deployment/jar/index.html[/url] | |
Re: Just use split. See the API docs for String. | |
Re: No difference. local variables get their stack addresses at the method level, so there is, [i]truely[/i] no difference. Unless, of course, you wish to [i]use[/i] that variable outside of the for loop. | |
Re: configure the servlet mapping in the web.xml properly. | |
Re: I'm sorry, but, this is a MySQL question, not a Java question. Go to [url]www.mysql.org[/url] and find, and ask at, the forums there. If you want to solve it with Java, the [i]only[/i] thing you can do is to read all the keys, finding the missing numbers (i.e. 1 and … | |
Re: What happens when pwrd.next() returns false? What is the return value then? | |
Re: Just simply don't include that field in the insert. i.e. you have table with field1 and field2 and field1 is auto_increment and field2 is varchar. So your query is insert into table (field2) values ('a') | |
Re: The exception shown say it can't find main. The main method [i]needs[/i] to have the following signature if you intend to use it to start your program [code=Java]public static void main (String[] args) {[/code] yours is [code=Java]public void main (String[] args) {[/code] | |
Re: project -> properties -> libraries -> add jar | |
Re: [code] public class KeyGen { public static void main(String[] args) { System.out.println("key generator suggestion wcm"); } } [/code] | |
The End.