3,927 Posted Topics
Re: He did tell you how to do it. Read the last two sentences again carefully. | |
Re: Keep in mind your array elements ("slots") are null until you put something in them. If you declare the array to have 10 and only fill three then the remaining seven will throw errors if you attempt to read data from them - hence a "null pointer" error. | |
Re: What is drives the change in the combo box entries? You can change the values in the combo box model pretty easily as needed. Here is an example that updates the values in the combo based upon the value in another table column (the "Vegetarian" column in this case). The … | |
Re: Start with the information in the Read Me: Starting Java thread stickied at the top of the forum. That is exactly why it was put together. | |
Re: You solve it by keeping up with your coursework and asking specific questions in the appropriate forums when you cannot figure it out on your own. | |
Re: It's telling you that you can't use constructors that don't exist. | |
Re: I would recommend reading [URL="http://cc2e.com/"]Code Complete, 2nd Edition[/URL]. | |
Re: I don't see how giving you the code for that is going to help you at all. The whole point of the class is to learn something and that doesn't mean turning in something you got from the 'net. Think. | |
Re: The only tags on my profile are "give me teh codez" and "spam magnet". :) They are still small though. "give me teh codez" should be much, much larger. I'll have to work on it. | |
Re: You'll need to use JNI: [url]http://java.sun.com/docs/books/jni/[/url] | |
Re: Yes, if the catch expression is appropriate to catch that particular exception type. The exception will be passed up the call stack until it is handled or causes termination. | |
Re: The tutorial on using icons also has an example of using JLabels for this: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html[/url] | |
Re: There is a little red triangle icon in the upper righthand corner to report the private message. It's in the same frame as the title of the PM. | |
Re: That would depend on the details you haven't supplied - such as where this data is coming from. | |
Re: Just add placeholder columns on the smaller query, such as "null as code" or "0 as code". | |
Re: Just copy everything from lines 3-10 into your method and change the variables to use your method parameters. | |
Re: Your code is loading the EmbeddedDriver class, but using the ClientDriver network url for your connection string. The EmbeddedDriver uses the database name instead of the //servername url. | |
Re: You proceed by reading the documentation provided and asking specific questions when you are confused about something: [url]http://dev.mysql.com/doc/refman/5.0/en/connector-j.html[/url] | |
Re: [QUOTE=vyshak;997281]Hi, i'm vyshak. I'm at final year and am thinking of doing a project on Java. Can you please name some websites where can i get java projects with source code. Kindly, help me![/QUOTE] Doing a project and downloading the source code of a completed one are not the same. … | |
Re: I didn't look through all of it very carefully, but perhaps you want to define "notblack" to be a color other than black? [code]Color notblack = new Color(0,0,0);[/code] | |
Re: mseck, it sounds as if you are working with Java[I]script[/I], which is not the same as Java and there is a separate forum for that here: [url]http://www.daniweb.com/forums/forum117.html[/url] | |
Re: You need to retain the Process returned by the start() method. The Process objects has a destroy() method that you can use to kill it. You should change your "proc" array to be a Process array instead of ProcessBuilder. You don't need to keep the ProcessBuilder around for anything after … | |
Re: I'm not sure you are the best judge of what is or is not creepy. | |
Re: In the IE File menu, choose "Import and Export..." and follow the little wizard through to export your Favorites to an htm file. | |
Re: Or why not read the "Starting Java" read-me thread that is stickied at the top of this forum? That is why it's there after all. | |
Re: Threads started by you: [url]http://www.daniweb.com/forums/search.php?do=finduser&u=267883&starteronly=1[/url] There is a "Views" column. | |
Re: Well, have you bothered to Google "N-Tier Applications"? That certainly yielded a lot of results for you to read through. | |
Re: What are you expecting it to do? That command isn't going to produce any noticeable output. | |
Re: There is no difference in the JTree between the two. You need to be more specific in describing the difficulties that you are having. [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html"]How To Use Trees[/URL] | |
Re: If apple_y reaches getSize().height then you need to reset it to the top of the screen. You could randomize apple_x if you wanted to or just reset apple_y to 0. | |
Re: What do you think? Clock is ticking on your homework/test. | |
Re: You can find a small example of using a controller, such as JamesCherrill mentions above, here: [url]http://www.daniweb.com/forums/post482753.html#post482753[/url] | |
Re: Alright, let's just keep it at "dating site" before this exceeds the bounds. Any other specifics are not necessary to the discussion. I have not yet reviewed the example link that you posted above because I am uncertain of it's "safe for work" status. If I find that it contains … | |
Re: Sure, just use [code]!str.equals(otherStr);[/code] | |
Re: Learn about classes and objects. [url]http://java.sun.com/docs/books/tutorial/java/concepts/[/url] | |
Re: If you would specify which particular "windows 2007" software you are using, it would help. | |
Re: It would help if you specified which programming language you are working in, so I could move this into the correct forum. | |
Re: Syntax and logic look fine to me. Have you verified the query against inputs that you know should return true? | |
Re: And at least mark the thread solved. | |
Re: Perhaps you should start by asking an actual question. | |
Re: If you move your for() loop down a few lines, you can keep calling nextInt() on the Random that you have created. If you move the declaration and initialization of 'cash' above the beginning of that loop, the result of the rolls will add/subtract from the starting value without resetting … | |
Re: Ok!! You just need to [URL="http://www.exampledepot.com/egs/java.net/ReadFromURL.html"]open an input stream from the URL[/URL], [URL="http://java.sun.com/javase/6/docs/api/java/util/regex/package-summary.html"]parse that for what you want[/URL], and [URL="http://www.exampledepot.com/egs/java.io/WriteToFile.html"]write it to a text file[/URL]!! !!!!! (All those exclamation points just look silly, don't they?... ) | |
Re: I guess you missed the "specific" part of Peter's post. You load two image just like you load one, but you do it more than once. See how that "specific" part comes into play? | |
Re: Also note that it's a compiler [U]warning[/U], not an error. You can still run the program just fine. | |
Re: For your reading: [url]http://www.daniweb.com/forums/announcement9-2.html[/url] | |
Re: And have you contacted ubi.com? What do you expect anyone here to be able to do to "rectify it"? |
The End.