3,927 Posted Topics
Re: Here's a simple solution: he pays you, you hand him the laptop. | |
Re: Check it for what? You didn't implement the equals() method as Masijade already suggested. [URL="http://www.ibm.com/developerworks/java/library/j-jtp05273/index.html"]Read this[/URL] if you need a detailed explanation. | |
Re: If you can't even be bothered to post the exception, then why should anyone waste their time trying to figure out what's wrong with this for you? | |
Re: You can use [URL="http://download.oracle.com/javase/tutorial/uiswing/components/filechooser.html"]JFileChooser[/URL] for those things. | |
Re: [B]>Data can not be edited in a Jtable.[/B] It certainly can be edited and saved back to the database. Ignore this nonsense. | |
Re: Perhaps you can start [URL="http://www.daniweb.com/software-development/c/threads/50370"]here[/URL] and when you have specific questions, post them in the [URL="http://www.daniweb.com/software-development/c/118"]C forum[/URL]. | |
Re: No, that's really about it. You have to check against all four bounds for containment. If you're using [URL="http://download.oracle.com/javase/6/docs/api/java/awt/Rectangle.html"]Rectangle[/URL] to store the rectangles, you can use its [URL="http://download.oracle.com/javase/6/docs/api/java/awt/Rectangle.html#contains(int,%20int)"]contains()[/URL] method, but it does pretty much the same calcs you are doing there. | |
Re: Have you tried taking out the repaint() call? I can't see why you would need that in your constructor. You may also want to use requestFocusInWindow() instead of grabFocus(). | |
Re: Take a look at the [URL="http://download.oracle.com/javase/6/docs/api/java/sql/SQLException.html"]SQLException[/URL] api. There are methods to get SQL State and the Error Code, which will often provide the specific info you're wanting. | |
Re: Merged duplicate threads. Please do not post the same question multiple times. | |
Re: No pickup recycling where I live, but it's somewhat rural. We haul it to a center ourselves. The larger city nearby does have a curbside pickup service. We have a small compost bin the back yard for use in the garden, but I'm not sure about any local large-scale composting … | |
Re: The code works just fine here. Check the size and positions you're painting the icons, because I think you're just overlapping them. | |
Re: Changing from Choice (AWT component) to JComboBox (Swing component) cuts the time in half roughly. Using JTextfield makes it nearly instant and I can't see any benefit at all to using the combo boxes to choose a number 1-100. Seems like a JTable would be a preferable UI choice. | |
Re: Duplicate threads merged. Please excuse the minor discontinuity. | |
Re: Neil is actually lying to you. He is a spammer from Pakistan who only drops by to clutter up our forums with his signature link spam. What Neil(and all of his other user names) just completely fails to learn after all this time is that Daniweb signatures are NOFOLLOW and … | |
| |
Re: [B]>Sorry, thought responders would have enough experience to know code from explanation[/B] It's not about level of experience of the responders, it's about courtesy to those who might volunteer their own time to try help you out. Code tags make the code much easier to follow. ![]() | |
Re: Quoted from the [URL="http://images.apple.com/legal/sla/docs/macosx106.pdf"]Snow Leopard EULA[/URL] "[I]you are granted a limited non-exclusive license to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer at a time. You agree not to install, use or run the Apple Software on any non-Apple-branded computer, or to … | |
Re: Spelling counts in service provider look-ups. Try [CODE]ScriptEngine engine=manager.getEngineByName("JavaScript");[/CODE] | |
Re: Integers cannot be null, so I assume you mean you get null from your input method. Post your code and perhaps someone can advise you on how to deal with the issue. Edit: Sorry, post collision with James. | |
Re: Moving to Javascript. | |
Re: What Norm is trying to politely convey is that homework help is only offered to those who demonstrate effort. This is also found in our forum rules, which you can review [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_organized"]here[/URL]. | |
Re: Try using this for your cell renderer. You can pass it the combo box that you are using for the cell editor.[CODE] class CheckBoxCellRenderer implements TableCellRenderer { JComboBox combo; public CheckBoxCellRenderer(JComboBox comboBox) { this.combo = new JComboBox(); for (int i=0; i<comboBox.getItemCount(); i++){ combo.addItem(comboBox.getItemAt(i)); } } public Component getTableCellRendererComponent(JTable jtable, Object … | |
Re: Why not mark it solved yourself? Click the link at the bottom of the thread that says "Mark This Thread As Solved". | |
Re: Here is a good place to start: [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_organized[/url] Post the code that you have started and ask [U]specific[/U] questions about the parts you are struggling with. This is not a homework completion service. | |
Re: Or change the table column to allow null if that is appropriate for your data. | |
Re: Check how you are creating your output label. | |
Re: Please post your code (in code tags) when you have questions instead of expecting people to download and extract a zip file. Why did you not continue your existing thread for this? [url]http://www.daniweb.com/software-development/java/threads/369295[/url] Spreading a single question over multiple threads just creates confusion and duplication for those who might offer … | |
Re: Continued here: [url]http://www.daniweb.com/software-development/java/threads/369494/1587942#post1587942[/url] Closing this so we don't get this spread over multiple threads. | |
Re: At the bottom of the thread, above the quick reply box, there is a question "Has this thread been answered?" with a link "Mark this Thread as Solved". Click the link. | |
Re: Merging this with your other thread for the same question. Please do not scatter the discussion over multiple threads. | |
Re: 75.49810 miles = 121.502 km Use 6367 in your formula instead of 3958. | |
Re: [B]> you will see...that this is only LOGICAL.[/B] No, there is very little actual logic in either of your posts. ![]() | |
Re: No, your homework is really not urgent to anyone but you. Show what effort you have made to solve these yourself. Post your code and specific questions. Cross-posted [URL="http://www.codingforums.com/showthread.php?t=229515"]here[/URL] and [URL="http://forums.digitalpoint.com/showthread.php?t=2205400"]here[/URL] ![]() | |
Re: You can just echo the result of the function. [url]http://www.php.net/manual/en/function.mysql-affected-rows.php[/url] | |
Re: Note that you are calling [iCODE]super.paintComponents(g);[/iCODE], not [ICODE]super.paintComponent(g);[/ICODE]. That "s" makes a difference. | |
Re: Ok, you can see that your search is basically working because it does print out the days for the month that matches. The problem is that you are printing out something for every single iteration of the loop. You really only want to print out the result of your search. … | |
Re: The description of floor() is pretty straightforward: [QUOTE]Returns the next lowest integer value by rounding down value if necessary. [/QUOTE]It basically gives you integer portion of your number without any of the decimal portion. So think about that in the context of dividing your number by 10 and how the … | |
Re: Please do not create multiple threads for your question. Further discussion should be directed to the current thread here: [url]http://www.daniweb.com/web-development/php/threads/367875/1579675#post1579675[/url] Closing. | |
Re: Use [ICODE]String.valueOf(int)[/ICODE] to convert your int to a string for the writer. ![]() | |
Re: So simply provide instance methods on Main that return reference to A,B, and C. Let the instance of Main decide how to handle them internally. There isn't any need to make them static. | |
Re: Is this not simply a variation on your other question [URL="http://www.daniweb.com/web-development/php/threads/367451/1577682#post1577682"]here[/URL]? | |
Re: Moving to Networking, as I think this is outside the scope of HTML/CSS. | |
Re: I guess in all your research you never bothered with this? [url]http://lmgtfy.com/?q=java+speech+api[/url] | |
Re: Yes, the first two are adding default parameters and forwarding to the next more complex method signature. |
The End.