3,927 Posted Topics
Re: You need to check equality with "==". "=" is for assignment. | |
Re: You should make a Fibonacci series generator. It will definitely get you noticed. | |
Re: ardav, it seems to me there are only a couple of people complaining about it. The majority haven't said one way or the other, so you really can't assume to know their feelings on it based upon one or two vocal opponents. | |
Re: You don't necessarily need to create a new InputMap, you could use the existing for the component. Either way, you need to map the actions for those events now. That is what the action map is for. So for your "UP" action mapping you would have something like the following[CODE]board.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke((KeyEvent.VK_UP), … | |
Re: Is it possible that 'lstEvent' is null? That is where you should start with any NullPointerException. ![]() | |
Re: You didn't provide CollegeMember with a zero-argument constructor, which your Lecturer constructors are trying to call implicitly. | |
Re: Netbeans, Eclipse, and IntelliJ IDEA are all widely used tools. | |
Re: Assert that the absolute value of the difference is less than your threshold. | |
Re: Are you asking what the regex would be or do you already have an expression that you are trying to tune? Have you thought about trying one of the many HTML parsing packages like [url]http://mozillaparser.sourceforge.net/[/url], [url]http://jtidy.sourceforge.net/[/url], [url]http://htmlparser.sourceforge.net/[/url] ? | |
Re: Are you going to ask an actual question or just hope someone wants to read all your code and try to figure out what it does and does not do? | |
Re: [QUOTE=Narue;506444]I can't believe you took the time to reply to a lame thread. How lame. :icon_rolleyes:[/QUOTE] ++ | |
Re: Don't define your class to be in java.lang package. | |
Re: Why this on line 120?[CODE]if (!rs.next()) {[/CODE]You don't want that block to execute if the query has results? | |
Re: You can read some explanation about the R class in [URL="http://developer.android.com/resources/tutorials/hello-world.html"]this tutorial for Hello World on Android[/URL]. | |
Re: You're trying to access the third element of array[] and it doesn't have that many elements. Don't do that. | |
Re: [QUOTE=mike2828;1677086]i just don't know how to use color constructor[/QUOTE] Just remove this line [CODE]public void Color(int r,int g,int b);[/CODE]and this line[CODE]c = Color.magenta;[/CODE]Your initial declaration is just fine. | |
Re: @jQuery: The forums aren't here for you to promote your blog posts. Thread closed. | |
Re: And you can always start with the basic tutorial: [url]http://download.oracle.com/javase/tutorial/java/concepts/index.html[/url] | |
Re: [B]> Any suggestions?[/B] Sure, start reading their tutorials on the site. | |
Re: See what you can come up with and ask specific questions about what you are having trouble with. What you posted above is a direct copy of code you found elsewhere, so that's not going to cut it. | |
Re: @hfx642: No, the situation you describe would not compile. The variable would have no scope outside the method in which it was declared. It would complain "Cannot find symbol" ![]() | |
| |
Re: Just below the text "Has this thread been answered?" there is a link to "Mark this Thread as Solved". | |
Re: This thread was just sock-puppet promotion for a particular product by Jones_nash and Shamrocks. Those posts have been deleted, but I will leave the rest of the replies up for the benefit of others. Closed. | |
Re: Post the code that you do have and ask specific questions. From our forum rules: [B]Keep It Organized - Do provide evidence of having done some work yourself if posting questions from assignments.[/B] | |
Re: This was already answered in the OP's other thread for the same question but he chose to ignore the answers: [url]http://www.daniweb.com/software-development/java/threads/384210/1654757#post1654757[/url] | |
Re: I tried your code with one of the demo plots and it worked just fine. Are you setting the series paint colors [U]after[/U] you have added all of the series to your dataset? | |
Re: So where is your code? What have you tried? | |
Re: Take a closer look at line 56 and note which method you are calling. It may not be the one you want. | |
Re: I don't see where you have initialized "stkBean" prior to that line. | |
Re: You don't want to create a new Date to compare to "d". You want to use the current instance value. | |
Re: If you have separate panels for each group of controls, you can simply swap those in and out of a target panel that remains in a fixed place in your UI. To swap them, remove the old panel, add the new, and call targetPanel.revalidate() and targetPanel.repaint(). | |
Re: Well, given the number of new threads posted daily, most don't seem to have any difficulty figuring it out. | |
Re: That's not a question. Ask something comprehensible or stop wasting peoples' time. | |
Re: [ICODE]localhost/aldo/index.php[/ICODE] should suffice. | |
Re: From the "redbook": [url]http://glprogramming.com/red/chapter02.html#name13[/url] | |
Re: You could use [URL="http://izpack.org/"]IzPack[/URL] to create an installer for your program. | |
Re: Would you like to rephrase that to something comprehensible? | |
Re: Who knows? You didn't post the tester class. | |
Re: The rest of the error stack trace would tell you which line the error is occurring on. Read it carefully and you won't have to "think it's got something to do with" anything - you'll know. | |
Re: [QUOTE=esy928;631298]can anyone give me another solution?[/QUOTE] Why would they? You haven't explained what you have tried, what problems you encountered, your thoughts on potential solutions, or anything demonstrating any effort on your part. Programming involves thinking for yourself and "give me another solution" certainly doesn't imply that you have done … | |
Re: Post your code and specific questions or errors here and perhaps someone can help. Requesting email help is against our forum rules. | |
Re: > do I have to install Access on my mac You need the ODBC driver for Access. There are third-party vendors that sell them, though I'm not sure if there are any free options available to you. Maybe you could switch to JavaDB or H2 instead? | |
Re: > Am believing that He'll certainly speak through DANIWEB You'll find a lot of speaking if you use the search feature. There are thousands of "final year project" threads. After you have read them, post back if you have a [I]specific question[/I]. | |
Re: You will need to collect and remit sales tax on sales made in your own state. |
The End.