2,443 Posted Topics

Member Avatar for Ray007
Member Avatar for rocky4everurs
Member Avatar for bops
Member Avatar for masijade
0
160
Member Avatar for 47pirates

Don't do it through MS Access. If you a need a "simple" db that you can use "anywhere" (which you can't with MS Access, BTW) use JavaDB/Derby and distribute the derby.jar with your app.

Member Avatar for stultuske
0
132
Member Avatar for JoonYup

Here [code]for(int h=0; h<numMatrices; h++) { int numRows = 13-h, numColumns = 12-h; matrix[h] = new Matrix(numRows, numColumns); [/code] you are varying the "sizes" of the matrices using the index into the Matrix array. Here [code]int nRows = A[0].numRows, nColumns = A[0].numColumns; for (int i = 0; i < A.length; …

Member Avatar for masijade
0
106
Member Avatar for Akilah712

Yes it is. Instead of simply pushing on the blue (right pointing) triangle, click next to it to get the pull down, and select something like "configuration" and play around in there a while. You would be better off, however, since you are learning, programming with a simple, highlight capable, …

Member Avatar for masijade
0
1K
Member Avatar for raul8
Member Avatar for hidash_in
Member Avatar for beginner21
Member Avatar for daudiam

Because the compiler you used is setup to search the source directory, as well as the classpath, and compile those items from the src dir if they are newer than the current class versions.

Member Avatar for ~s.o.s~
0
212
Member Avatar for miraj0072004

Read [url=http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]this[/url] completely, thoroughly, and carefully and implement [i]all[/i] of it's suggestions.

Member Avatar for masijade
0
120
Member Avatar for madhub2v
Member Avatar for LianaN

The default layout option for JPanels (which you use in your class) is FlowLayout with a default flow of left to right, so, as Ezzaral says, use a different layout.

Member Avatar for LianaN
0
81
Member Avatar for BestJewSinceJC

Check out multicast if you [i]really[/i] feel the need to advertise. Note that this will probably only be a "local network" feature as most gateways will probably not propagate the signal. Better, however, would be to simply have a range of, say 5 or so, ports and simply have the …

Member Avatar for masijade
0
142
Member Avatar for christiangirl
Member Avatar for Ezzaral
0
3K
Member Avatar for Vinnijin

[QUOTE=Vinnijin;1326624]How Ajax will be used in java ?[/QUOTE] Since I'm not sure if this question is a question or just a spam intro I'll leave the question and just remove the spam link.

Member Avatar for masijade
-1
85
Member Avatar for jemimaloh
Member Avatar for robertmacedonia

Because you won't get "null" until the server closes its end of the connection. Which you don't want, I would assume. I would assume you want to continue using the same connection, right? So the server is going to have to send some extra String, or something, to signify that …

Member Avatar for robertmacedonia
0
156
Member Avatar for notuserfriendly
Member Avatar for rje7

You can implement multiple interafaces but you can extend only one class. So be careful with abstract classes in the first place and the [i]only[/i] reason to use an abstract class in the case listed above is when there is some common, non-trivial, [i]implementation[/i] to be considered as well.

Member Avatar for masijade
0
125
Member Avatar for inddeveloper

I'm sorry but what part of [quote]Only level 0 dumps are allowed on a subdirectory[/quote] do you not understand? I can only assume "$now" references a directory, of course.

Member Avatar for masijade
0
107
Member Avatar for daudiam

[code] public static Integer one = new Integer(1); [/code] one is a static member that is an instance of the Integer type. Same same.

Member Avatar for daudiam
0
364
Member Avatar for gunjannigam

Try [url=http://download.oracle.com/javase/6/docs/api/java/nio/channels/FileLock.html]FileLock[/url], but no guarantees, of course.

Member Avatar for masijade
0
156
Member Avatar for miraj0072004

Uhm, what do you mean "extract the part". To concatenate Strings you use "+" of course. I.E. [code]string1 + string2[/code]

Member Avatar for miraj0072004
0
97
Member Avatar for michael.ngobeni
Member Avatar for vgd

Add derby.jar to your project's library list. And that is as much as I will say about it as classpath discussions always become ugly on a forum. Find a tutor and/or read the IDE documentation thoroughly and read everything you can find about classpath.

Member Avatar for masijade
0
207
Member Avatar for daudiam

Because in the second case the compiler knows that b will [i]always[/i] have a value, but it does [i]not[/i] know that in the first version (the compiler does [i]not[/i] compute expression values).

Member Avatar for daudiam
1
89
Member Avatar for gudads

> DEAR FRIENDS, I M NEW TO JAVA, > > PLEASE ANSWER MY QUESTIONS: > 1. I am trying to use float and double in java? can u tell me how to use it? > By using the types float and double? > > 2. I am trying to calculate …

Member Avatar for gudads
0
184
Member Avatar for qwest21

That is a pure personal choice design question. If it is going to be local intranet anyway, you could do simple multicast and let each "client" receive and broadcast the messages themselves, without any kind of a server.

Member Avatar for masijade
0
364
Member Avatar for sivasuit
Re: java

By modifying your classpath. See the documentation for the IDE you are using and these documents for command line and jarfile use: [url]http://download.oracle.com/javase/6/docs/technotes/tools/solaris/java.html[/url] [url]http://download.oracle.com/javase/tutorial/essential/environment/paths.html[/url] [url]http://download.oracle.com/javase/tutorial/deployment/jar/downman.html[/url] Edit: And that's as much as I am going to say about it. If you can't figure it out from these items than get a …

Member Avatar for masijade
0
86
Member Avatar for purijatin

If you need to ask this, then you definately do [i]not[/i] need a new networking protocol, but simply want a new protocol [i]on top of[/i] either TCP or UDP (like HTTP, SSH, most DB protocols, etc, etc, etc).

Member Avatar for masijade
0
118
Member Avatar for steveh000

FYI, related to [url=http://www.daniweb.com/forums/thread307927.html]this[/url].

Member Avatar for steveh000
0
105
Member Avatar for the b
Member Avatar for steveh000

See SwingWorker. Your problem is that you are performing your "action" on the Event Thread, rendering it incapable of responding to "user events".

Member Avatar for steveh000
0
272
Member Avatar for tinamary

I'm sorry, but if you "know the concept of abstract class", then you know how it "is different from the normal class". Maybe we should begin with you stating what you believe to be "the concept of abstract class", and what you believe to be "the normal class". Then we …

Member Avatar for jon.kiparsky
0
155
Member Avatar for steveh000

Do not cobble together statements like this unless you [i]want[/i] to allow SQL injection attacks to succeed or [i]want[/i] seemingly "random" SQL syntax errors due to invalid characters. See PreparedStatement.

Member Avatar for steveh000
0
205
Member Avatar for Vivek Venkatesh
Member Avatar for johnbryle
Member Avatar for johnbryle
0
107
Member Avatar for tedtdu

What do you have against "parsing librarires"? Especially since there is both a DOM and SAX parser included in the JDK and JRE. In any case it's called [url=http://www.regular-expressions.info/tutorial.html]regex[/url]. or use toCharArray() and [i]really[/i] do it yourself.

Member Avatar for NormR1
0
210
Member Avatar for Sunshineserene
Member Avatar for jon.kiparsky
1
526
Member Avatar for SeanC

Aside from your [url=http://www.java-forums.org/new-java/31680-how-delete-txt-file-if-contents-empty.html]croos-post[/url] see the API docs for the File class and see if you can combine the length and delete methods.

Member Avatar for SeanC
0
2K
Member Avatar for toronto

Because su opens an interactive shell you might try placing everything below the su command into a seperate script (lets imagine we call it newScript.ksh), then change this script to the following: [code] #!/bin/sh su - postgres -c "/path/to/newScript.ksh" [/code]

Member Avatar for masijade
0
1K
Member Avatar for jk_bscomp
Member Avatar for sawant_nitesh

Unless you [i]need[/i] to use regular expressions, then use "replace" rather than "replaceAll".

Member Avatar for sawant_nitesh
0
314
Member Avatar for Sugarskull

@OP what was wrong with this thread [url]http://www.daniweb.com/forums/thread114556.html[/url] Oh, wait, don't tell me. You were upset that I didn't simply [i]give[/i] you the answer, but rather tried to make you [i]think[/i]. That must have hurt, man. I can't imagine the pain. Ungrateful kids these days.

Member Avatar for Ezzaral
0
276
Member Avatar for new_programmer

[url]http://download.oracle.com/javase/tutorial/extra/generics/index.html[/url]

Member Avatar for vhoramoin
0
137
Member Avatar for comSysStudent

It's [i]like[/i] overriding, it is [i]not[/i] "the same as" overriding. Overriding makes it impossible to use the overridden method without instantiating anew instance of the class containing it (not a class that extends that class). Static methods can [i]always[/i] be used. [i]Which[/i] one you use depends on which Class reference …

Member Avatar for yasuodancez
0
187
Member Avatar for majestic0110

Because the first line of [i]every[/i] constructor, is a call to a super constructor. If you do not add it yourself (i.e. call a specific super constructor) the compiler automatically adds a call to the default constructor of the super class. And, yes, obviously, this call will finish before the …

Member Avatar for masijade
3
665
Member Avatar for Nobuo

PHP is very good for small projects. It is not all that scalable, however, and is not suited to large projects. JSP/Servlets are, generally, also faster (when written with comparable quality, whatever that may be).

Member Avatar for masijade
0
344
Member Avatar for musthafa.aj

P.S. unless the spot where you're using a StringBuffer is "thread" sensitive, use a StringBuilder rather than a StringBuffer. A StringBuffer is "synchronized" whereas a StringBuilder is not, making a StringBuilder more performant when synchronization is not an issue.

Member Avatar for zerocool21
0
147

The End.