3,927 Posted Topics

Member Avatar for Nemuksis
Member Avatar for jingda
0
162
Member Avatar for dharma117

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.

Member Avatar for Ezzaral
0
104
Member Avatar for Jessurider

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?

Member Avatar for NormR1
0
170
Member Avatar for sirlink99

You can use [URL="http://download.oracle.com/javase/tutorial/uiswing/components/filechooser.html"]JFileChooser[/URL] for those things.

Member Avatar for Ezzaral
0
182
Member Avatar for Thigina

[B]>Data can not be edited in a Jtable.[/B] It certainly can be edited and saved back to the database. Ignore this nonsense.

Member Avatar for Thigina
0
2K
Member Avatar for pori044

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].

Member Avatar for jingda
0
15
Member Avatar for sirlink99

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.

Member Avatar for sirlink99
0
102
Member Avatar for sirlink99

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().

Member Avatar for mKorbel
0
2K
Member Avatar for Majestics

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.

Member Avatar for mKorbel
0
116
Member Avatar for sagngh8
Member Avatar for steven woodman

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 …

Member Avatar for Ezzaral
1
160
Member Avatar for yancouto

The code works just fine here. Check the size and positions you're painting the icons, because I think you're just overlapping them.

Member Avatar for Ezzaral
0
543
Member Avatar for Jessurider

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.

Member Avatar for teo236
0
141
Member Avatar for gertails
Member Avatar for NeilWoodman

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 …

Member Avatar for bretwt91
-2
103
Member Avatar for mrnutty
Member Avatar for happygeek
0
132
Member Avatar for dmelgray

[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.

Member Avatar for diafol
0
208
Member Avatar for divin757

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 …

Member Avatar for Ezzaral
-2
204
Member Avatar for stevanity

Spelling counts in service provider look-ups. Try [CODE]ScriptEngine engine=manager.getEngineByName("JavaScript");[/CODE]

Member Avatar for stevanity
0
2K
Member Avatar for new_developer

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.

Member Avatar for JamesCherrill
0
48K
Member Avatar for tt13
Member Avatar for tom543

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].

Member Avatar for tom543
0
194
Member Avatar for Majestics

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 …

Member Avatar for Ezzaral
0
145
Member Avatar for hszforu

Why not mark it solved yourself? Click the link at the bottom of the thread that says "Mark This Thread As Solved".

Member Avatar for hszforu
0
194
Member Avatar for didi00
Member Avatar for dannny_00

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.

Member Avatar for jon.kiparsky
0
136
Member Avatar for trivax
Member Avatar for Ezzaral
0
898
Member Avatar for Vern247
Member Avatar for steve_Student

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 …

Member Avatar for NormR1
0
290
Member Avatar for steve_Student

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.

Member Avatar for Ezzaral
0
312
Member Avatar for bluehangook629

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.

Member Avatar for Ezzaral
0
998
Member Avatar for rakibtg

Merging this with your other thread for the same question. Please do not scatter the discussion over multiple threads.

Member Avatar for matricol
0
1K
Member Avatar for newbie14
Member Avatar for newbie14
0
85
Member Avatar for sane83
Member Avatar for mrnutty

[B]> you will see...that this is only LOGICAL.[/B] No, there is very little actual logic in either of your posts.

Member Avatar for iamthwee
2
1K
Member Avatar for sardana1

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]

Member Avatar for diafol
-2
129
Member Avatar for ptara1

You can just echo the result of the function. [url]http://www.php.net/manual/en/function.mysql-affected-rows.php[/url]

Member Avatar for klemme
0
176
Member Avatar for judithSampathwa

As already stated above: ask your admin. You asked for more specific information and it was given to you. If you don't have the permissions to do what you need to do, you obviously have to ask the person who can grant them.

Member Avatar for crishlay
0
220
Member Avatar for PBoucher

Note that you are calling [iCODE]super.paintComponents(g);[/iCODE], not [ICODE]super.paintComponent(g);[/ICODE]. That "s" makes a difference.

Member Avatar for PBoucher
0
364
Member Avatar for amalwit
Member Avatar for wolfrain62

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. …

Member Avatar for wolfrain62
0
109
Member Avatar for Sorcher

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 …

Member Avatar for Ezzaral
0
126
Member Avatar for solvesak

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.

Member Avatar for Ezzaral
0
135
Member Avatar for winecoding

Use [ICODE]String.valueOf(int)[/ICODE] to convert your int to a string for the writer.

Member Avatar for hfx642
0
120
Member Avatar for warlord902

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.

Member Avatar for warlord902
0
172
Member Avatar for rajandass65
Member Avatar for Jollyyy100

Is this not simply a variation on your other question [URL="http://www.daniweb.com/web-development/php/threads/367451/1577682#post1577682"]here[/URL]?

Member Avatar for Jollyyy100
0
174
Member Avatar for s.w.a
Member Avatar for s.w.a
-1
221
Member Avatar for chetanbasuray

I guess in all your research you never bothered with this? [url]http://lmgtfy.com/?q=java+speech+api[/url]

Member Avatar for techstu123
0
202
Member Avatar for winecoding

Yes, the first two are adding default parameters and forwarding to the next more complex method signature.

Member Avatar for JamesCherrill
0
148

The End.