3,927 Posted Topics
Re: Posts can be edited within 30 minutes of submission by clicking the Edit button. After 30 minutes, only a moderator or administrator can edit it and will only do so for certain reasons. | |
Re: If you trace the function values through a small test node, you will see how the sum is automatically updated as the nested calls return back up the call stack. | |
Re: Just assign the elements your new instances[code]movies[0] = new Movie(...);[/code]or you can initialize them all at once[code]int[] movies = { new Movie(...), new Movie(...), ... };[/code] | |
Re: Help, perhaps - do your homework, no. Ask specific questions. Post the code you have started with and describe what you are having trouble with. | |
Re: You can use the [URL="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2691&lngWId=2"]JDBC-ODBC bridge driver to access an Access database[/URL] through the [URL="http://download.oracle.com/javase/tutorial/jdbc/index.html"]JBDC API[/URL]: | |
Re: I would throw in a vote for [URL="http://www.h2database.com/"]H2[/URL] for embedded use. Derby doesn't have a boolean data type, which is just irritating. Feature comparison: [url]http://www.h2database.com/html/features.html#comparison[/url] It's also slower: [url]http://www.h2database.com/html/performance.html[/url] | |
Re: Your users may need to run your program as administrator. | |
Re: The OP didn't ask for help - they asked for a project to be mailed to them. His response was entirely appropriate. | |
Re: What is the problem with those inputs? And why repeat the exact same code in the I,J,K,L blocks when you can reduce that to a single if() statement? | |
Re: Certainly you can have multiple conditions. In your example above though, you should have an outer set of parenthesis around the entire expression. The parens around each clause are optional.ie[code]while(yearsloop <= years && selection == JOptionPane.YES_OPTION)[/code] | |
Re: Career advice: Learn to communicate in a professional manner if you expect to be taken seriously. No company recruits individuals who believe "IM speak" is appropriate outside of a chat room or SMS message. | |
Re: Ok, I think this is covered well enough. More SEO-spam-not-quite-answers is not going to help. Thread closed. | |
Re: You mean to honestly say you Googled 'java graphics' and found nothing? Was your monitor turned on? | |
Re: You only have a partial expression after your OR operator[CODE]if (outsideTemperature < -58 || > 41) [/CODE]You aren't comparing anything to 41 in that statement. If you want to check it against 'outsideTemperature' then you must state that explicitly. The compiler just sees that you have nothing on the left … | |
Re: If those are just entries in your log files and the result was 404 or 403, you don't need to worry about anything. Those are just bots seeking vulnerable spots. If you don't even have such a /_vti_bin/ directory, they can't exploit anything in it. [B]>Despite the fact that they … | |
Re: I doubt he is still looking for help with this two years later. | |
Re: [B]> 5.God is not involved in the marriages.[/B] [B]> 7. Live Holy Lives[/B] Are you implying that atheists cannot sustain a healthy marriage? What kind of ignorant drivel is that? | |
Re: This is not a homework completion service. Show that you have put in some effort on this assignment. Ask specific questions regarding the areas that you do not understand. | |
Re: I have no idea about JXTable, never used it, but updating data is no problem in the JTable component. You simply update the underlying model and fire a dataChanged event. Some methods of the default table model fire that event for you automatically. Edit: I don't see where you actually … | |
Re: From the API doc for [URL="http://download.oracle.com/javase/6/docs/api/java/util/Scanner.html#nextInt()"]Scanner.nextInt()[/URL][QUOTE]Throws: InputMismatchException - if the next token does not match the Integer regular expression, or is out of range [/QUOTE] "11/11/2010" does not look much like an int. | |
Re: Define a JLabel at the class level and add that your panel. Create a [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/timer.html"]Swing Timer[/URL] that calls your function and sets the label text with that value. | |
Re: If you are trying to use the "quarter" enum value, you need to fully qualify it: [iCODE]SlotMachine.CoinSlot.quarter[/iCODE] "quarter" is not part of the TestSlotMachine class, so it cannot be used directly. | |
Re: That depends on how you wish to present the report. You can print it yourself with the AWT printing mechanisms or you can look into a reporting tool such as Jasper Reports of JFreeReport. | |
Re: BzzBee, this thread is not a PHP discussion and is therefore off-topic here. If you wish to post community feedback, [URL="http://www.daniweb.com/forums/forum26.html"]there is a forum to do so[/URL]. Also, as already mentioned above, everyone answering questions here is doing so voluntarily. Complaining that they are not solving your issues in a … | |
Re: Try [URL="http://download.oracle.com/javase/6/docs/api/java/lang/String.html"]String.split()[/URL]. | |
Re: Sure, with an embedded database it's no trouble. We do this with H2 for every new project when it's first created. You just run a script with your data definition code in it. Edit: H2 can also create an [URL="http://www.h2database.com/html/features.html#in_memory_databases"]in-memory database[/URL] that does not persist when closed. | |
Re: Java SE 6 API docs: [url]http://download.oracle.com/javase/6/docs/api/[/url] | |
Re: Well, line 12 is generating a random int from 0-5. So what effect do you think that has in line 13? | |
Re: Neither "Go to first new post" nor "Go to last post" links work for news stories. | |
Re: Add [iCODE]e.printStackTrace();[/iCODE] in your catch blocks to show the detailed stack trace for your exceptions. | |
Re: You haven't initialized any of your array variables in your Matrix_Mult class. | |
Re: Where are you putting the jar? It should treat the jar file location as the root and paths relative to that location should resolve just fine. | |
Re: So where are all of those classes? | |
Re: [B]> How do I move the image to the top (just below the title)?[/B] Change the drawImage() coordinates. Of course, then you will have to make some space for it at the top. So you would have to change your component layout. | |
| |
Re: I guess you could start here: [url]http://download.oracle.com/javase/tutorial/networking/index.html[/url] Anything more specific would require a more specific question. | |
Re: [QUOTE=Phaelax;519960]StringTokenizer has been deprecated for years now, you should use String.split()[/QUOTE] That post was from Feb 2004 :) Also, the one that nate tacked on to this little piece of history should probably use StringBuilder instead of += for constructing the string. | |
Re: Add "\n" for a line break. You can inline that with the text if you like. ie [iCODE]+"\nBall position: "[/iCODE] Edit: You can also look into the [URL="http://download.oracle.com/javase/7/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)"]String.format()[/URL] method if you like. | |
| |
Re: Then listen when he tells you that you CANNOT DO what you have been trying to do. You have been told this in many posts before in the many threads you have created on this same topic. Get it through your head - [B]You can't do this, so quit asking[/B] | |
Re: Calculate the center point (appW/2, appH/2) and then use those to figure where to place your upper left corner of the rect. | |
Re: Just a couple of minor things. The main trouble is that you don't reset y to zero, so it quickly goes right off the screen after the first call to paint. Here's your painting method revised. You should normally override paintComponent() instead of paint() unless you need to change other … | |
Re: Those will only return the min or max value of a collection, whereas you need to sort your collection based upon their points. You could create a [URL="http://download.oracle.com/javase/7/docs/api/java/util/Comparator.html"]Comparator[/URL] and use [URL="http://download.oracle.com/javase/tutorial/collections/algorithms/index.html#sorting"]Collections.sort()[/URL] if your assignment allows the use of those methods. | |
Re: You need to [URL="http://download.oracle.com/javase/tutorial/uiswing/components/menu.html#event"]add an ActionListener[/URL], just like you would for a JButton, or you can use [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/action.html"]Actions[/URL]. Here is the Sun tutorial on menus: [url]http://download.oracle.com/javase/tutorial/uiswing/components/menu.html[/url] | |
Re: [B]>> OK, well done, that looks like a decent start.[/B] It's a decent start copying this program: [url]http://www.engineeringserver.com/forum/java+paint+application-t2342.0.html[/url] Not much of a start showing any effort though. Perhaps the OP will post some more specific questions indicating that he understands the code he posted and what difficulties he is having … | |
Re: With a text editor, I imagine. Do you have a more specific question perhaps? Have any code as a starting point? | |
Re: Take the variable types out of your super() calls[CODE]super(int accountNumber, String accountOwner);[/CODE]You just pass the variables themselves.[CODE]super(accountNumber, accountOwner);[/CODE] | |
Re: You will need to decide upon a target minimum resolution and develop towards that. GridBagLayout and appropriate use of scroll panes, tabbed panes, etc. will get you the rest of the way towards supporting various resolutions. GridBagLayout offers a lot of flexibility through anchoring, filling, and setting component weights to … |
The End.