2,443 Posted Topics

Member Avatar for OffbeatPatriot

Have you tried using System.setProperty as the first couple of lines in your main method?

Member Avatar for OffbeatPatriot
0
91
Member Avatar for keekee

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.

Member Avatar for masijade
0
189
Member Avatar for saintb

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.

Member Avatar for ithelp
0
514
Member Avatar for KimJack

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.

Member Avatar for masijade
0
155
Member Avatar for Sujata Bandyo

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

Member Avatar for masijade
-1
2K
Member Avatar for kerkquin
Member Avatar for sbhavan
-3
108
Member Avatar for arunpatil884
Member Avatar for masijade
0
26
Member Avatar for farzanehmif

[code=Java] package thisIs.a.valid.packageAnd; public interface MyInterface { } [/code]

Member Avatar for masijade
-10
94
Member Avatar for valleymorning

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.

Member Avatar for masijade
-1
85
Member Avatar for carl9999

And your question is? I can tell you that the "nextLine" call should come right after the print to which it corresponds, though.

Member Avatar for carl9999
0
100
Member Avatar for whiteyoh

[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. …

Member Avatar for Ezzaral
1
492
Member Avatar for manish27896

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.

Member Avatar for masijade
0
38
Member Avatar for keekee

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.

Member Avatar for masijade
0
95
Member Avatar for Sweet_person4
Member Avatar for masijade
-1
32
Member Avatar for KimJack

The second option is better as "\n" is platform specific and is not always guaranteed to get the effect you wanted.

Member Avatar for anupam_smart
0
160
Member Avatar for eager to learn
Member Avatar for hybridoutlaw
Member Avatar for coud_ren_26

You need to take a third input, right? So start with that, then maybe you can figure out how to continue.

Member Avatar for coud_ren_26
-1
111
Member Avatar for ndoe

With an actionlistener, some JDBC code (that runs in a different thread), and an SQLQuery.

Member Avatar for masijade
0
54
Member Avatar for jrosh

An actionListener that opens a JDialog, but you'll have to create your own "view".

Member Avatar for masijade
0
103
Member Avatar for jrosh
Member Avatar for gururajb

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 …

Member Avatar for JamesCherrill
0
91
Member Avatar for ajeet choudhary

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 …

Member Avatar for masijade
0
263
Member Avatar for Ramster

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).

Member Avatar for JamesCherrill
0
73
Member Avatar for Xamas
Member Avatar for low1988

Did you create an "AddressBook" DSN? If not do so or Google "DSNLess connections".

Member Avatar for masijade
0
90
Member Avatar for imclumsy

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 …

Member Avatar for masijade
0
1K
Member Avatar for leverin4

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 …

Member Avatar for JamesCherrill
0
118
Member Avatar for hery

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 …

Member Avatar for cgeier
0
197
Member Avatar for Moein.Enayati

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" …

Member Avatar for ~s.o.s~
0
618
Member Avatar for rajuchacha007

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?

Member Avatar for nomemory
0
150
Member Avatar for jrosh
Member Avatar for sawant_nitesh

[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 …

Member Avatar for verruckt24
0
122
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
170
Member Avatar for Web_Sailor

What does Matcher's find() method return? Why are ignoring that return value?

Member Avatar for masijade
0
110
Member Avatar for NickyPhun

Well, what's the content going to be? Don't worry about the title until you have an idea of the content.

Member Avatar for Rahul Bhat
0
179
Member Avatar for newjavastudent

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.

Member Avatar for freelancelote
0
84
Member Avatar for rajuchacha007

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.

Member Avatar for rajuchacha007
0
1K
Member Avatar for progresspeter
Member Avatar for masijade
0
62
Member Avatar for AbiSuren
Member Avatar for sawant_nitesh

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.

Member Avatar for javaAddict
0
117
Member Avatar for alsoumhi
Member Avatar for jrosh

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 …

Member Avatar for roswell67
0
105
Member Avatar for jrosh
Member Avatar for masijade
0
96
Member Avatar for jrosh

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')

Member Avatar for masijade
0
89
Member Avatar for treyd

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]

Member Avatar for masijade
0
291
Member Avatar for mrnutty
Member Avatar for imclumsy
Member Avatar for jay1992

[code] public class KeyGen { public static void main(String[] args) { System.out.println("key generator suggestion wcm"); } } [/code]

Member Avatar for masijade
0
233
Member Avatar for amitabhpandey

The End.