3,927 Posted Topics
Re: Those requirements are certainly not trivial. I'd recommend assessing currently available commercial solutions for this: [url]http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=home+inspection+reporting+software[/url] If those don't meet your needs, then you could start getting some bids on a custom solution. Generally, if an existing product would meet 80% of your needs, you're better off taking a hard … | |
Re: > Isn't it generally a bad idea to keep calling repaint()? No, that is generally what animation loops do: update component states and call repaint() to refresh them on the screen. If by "keep calling" you mean without any pause, then no, you usually want to sleep for some period … | |
Re: You basically need a main application context that all necessary components have access to and can call upon for access to the various sub-systems in your app. The reference to that context can be supplied via the constructors. | |
Re: Heh, they don't have this one: [url]http://en.wikipedia.org/wiki/Journey_(video_game[/url]) (I wouldn't say it's missed though... :P ) | |
Re: ++ to both of the above posts. If you're writing a lot of code that depends on knowing that list well, no one will want to work with you (including yourself when you are trying to track down your own bugs 3 months later). | |
Re: >I would like you guys to give me some advice on best practices when it comes to programming, planning and design. Here's a really good place to start: [URL="http://cc2e.com/"]Code Complete 2nd Edition[/URL] No, it's not free. Buy it and read it. If you want free, then you're going to have … | |
Re: Here are two more good references for "build-your-own" systems: [url]http://www.tomshardware.com/reviews/How-To,4/Build-Your-Own,16/[/url] [url]http://forums.anandtech.com/messageview.aspx?catid=27&threadid=2194271&enterthread=y[/url] | |
Re: You might take a look at these two articles: [url]http://today.java.net/pub/a/today/2007/02/22/how-to-write-custom-swing-component.html[/url] [url]http://www.onjava.com/pub/a/onjava/2004/08/11/desktop.html[/url] | |
Re: Well, you certainly don't want to use "==" for string equality. You could check for any of them with a regular expression. | |
Re: Haven't used it myself, but you might take a look at this article on using the Acrobat Viewer bean: [url]http://today.java.net/pub/a/today/2005/10/20/accessing-pdf-with-acrobat-viewer-javabean.html[/url] | |
Re: Mostly likely he'll need to use Scanner or some regex parsing, because getting the numbers from the string is only the smallest part of writing an expression parser. Edit: As far as trying the cast to Integer, it wouldn't work - you can't cast a char to an Integer object … | |
Re: You're probably going to need to: A) Post more specific questions indicating that you've given the least bit of thought to the problem. B) Post the code that you have started with. C) All of the above. | |
Re: These questions make absolutely no sense in the limited context of code that you have posted. You would need to post the relevant code from those other classes if you expect anyone to be able to make a suggestion. | |
Re: Certainly. It's just a matter of using that url when you obtain the connection through DriverManager. There are examples of that with most JDBC drivers. | |
Re: If you define them to be in [ICODE]package Test;[/ICODE], you'll need to run it from the directory above Test with the command [ICODE]java Test.TestApp[/ICODE] | |
Re: That's completely absurd. They should have just told her that she certainly wasn't required to attend. Even as an atheist, I find it pathetic that some people get so worked up when anyone at all says the word "Christmas" within earshot. These people just need to get over themselves. | |
Re: [QUOTE=niek_e;698018]Nah, I think he meant MP3-player :)[/QUOTE] I think his output would be rather garbled. | |
Re: Check your semicolons prior to that else statement. | |
Re: You would have to listen for edits, parse the expressions, and update the cells with the results. | |
Re: [quote=TheNNS;388922]> thats cuz they're retarded I'm not a jehova's witness, but please don't insult them.[/quote] pity them, perhaps... | |
Re: No, actually it's expecting a ")". Count them on that line. (Also, you need to use [noparse][/code][/noparse] as the end tag after your code. Note the slash.) | |
Re: [QUOTE=The Dude;759710]In god we still trust: [/QUOTE] Here let me fix that for you: [QUOTE=The Dude;759710]In god [I][B]I[/B][/I] still trust: [/QUOTE] Many here in [I]our country[/I] have no believe in your god. | |
Re: Not based on what you posted, no. What user interface? You didn't post any code that indicates how you're calling those methods and the code that you did post wouldn't compile anyway because you have unterminated strings and blocks (and you need to indent consistently instead of just scattering lines … | |
Re: That would seem to go against this poster's nature, given their current post history. | |
Re: Take a look through this tutorial on key bindings: [url]http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html[/url] | |
Re: You just need to specify the 1/3 so that it uses floating point division instead of int division, so change it to [icode]1.0/3.0[/icode] or [icode]1/3d[/icode][code=java]1/3d * Math.PI * height * Math.pow(radius, 2);[/code] You were getting zero because 1/3 as an int is zero, causing the entire expression to yield zero. … | |
Re: Someone in the VB forum possibly could. Perhaps you should post your question there. | |
Re: You just need to open a scanner on each file in your file list and process it, i.e.[code=java]String[] fileList = {"file1.txt","file2.txt","file3.txt"}; for (String filename : fileList){ Scanner scanner = new Scanner(new File(filename)); while (scanner.hasNext()){ // blah blah } scanner.close(); }[/code] Edit: Used wrong constructor on the Scanner. | |
Re: It's just one single calc to determine the number of comparisons and you have the formula right there in your code - you just aren't using the correct value in it. I'll give you a hint: n is the number of elements in your values array. | |
Re: I also started with a C-64 and local bulletin boards, somewhere in the mid-to-early 80s. | |
Re: Please edit the post and place [noparse][code] [/code][/noparse] tags around the code so that the formatting is preserved and it is readable. | |
Re: You need to be a little more specific on your expectation for this "generic" base class. What do you believe is lacking or wrong? | |
Re: AlbertPi, please use [noparse][code] [/code][/noparse] tags if you are going to post code examples. | |
Re: He probably handed this in six months ago. If not, I doubt he is going to get credit for it at this point. | |
Re: [QUOTE=adbvardan;756615]Carefully explain you answers![/QUOTE] Carefully explain why you believe someone should solve your math problems for you when you have shown absolutely no effort or thought on the matter yourself? | |
Re: You need to examine the "World" class to see if there is a public method to add a traveler to that world. Since each world contains a private List of travellers, there must be some method to add one to the collection. You'd then just call [icode]home.addTraveller(t);[/icode] To find a … | |
Re: I'd also recommend timing your game animation on a desired fps instead of a static timer. Here's an article that covers that: [url]http://www.javaworld.com/javaworld/jw-03-1996/jw-03-animation.html[/url]. Here is another on sprite animation: [url]http://www.developer.com/java/article.php/893471[/url] And this is a good 2D game tutorial in general (though it uses the GAGE timer instead of a "home-rolled" … | |
Re: You'll save yourself a lot of relative path pain if you use getResource() to load your images: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getresource[/url] | |
Re: If you also have a .jar file of the classes in that download, you can just add it as a library to your project (from Project Properties window). The same would work for the folder containing the class files themselves. | |
Re: The power supply is the only issue I would wonder about. The card specs say it requires a 450W or higher power supply and that Gateway model has a 400W. You may be just fine though. | |
Re: The errors are pretty clear. You're trying to use constructor signatures that don't exist for those classes. You need to examine the parameters for those constructors and use correct form. | |
Re: Yes, this post may help you out: [url]http://www.daniweb.com/forums/post748240-23.html[/url] | |
Anyone who finds themselves frequently posting some text fragments frequently (code tag admonitions, anyone?) may find this add-on for Firefox very useful: [URL="https://addons.mozilla.org/en-US/firefox/addon/1347"]Clippings[/URL]. | |
Re: Make determineGrade() a function that takes the test score as a parameter and returns the letter for the grade. Honestly, if this is a "final" you really should already know how to write a function. | |
Re: It is another dog. They didn't show him actually getting off the highway though. I think he was trying to get dinner :twisted: | |
Re: At it's most basic, a linearly interpreted gradient just calculates the new RGB values by applying the target value percent of the linear range to the each RGB component range. Here's a Java function illustrating that:[code=java]/** returns a color between start and end colors based upon percent of the range … | |
Re: >So what do you think, was it right for the officer to shoot him? Definitely. | |
Re: [QUOTE=MosaicFuneral;752507]Here's some good rules: 1). Don't be retarted.[/QUOTE] I realize it's a typo, but this made me chuckle :) |
The End.