Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

:)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Quoted from the Snow Leopard EULA

"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 enable others to do so."

Sorry, but discussions involving the deliberate violation of the EULA are not permitted on DaniWeb.

Thread closed.

jingda commented: I thought i reported the thread and it will get deleted. Seems i am wrong. lol +9
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

He would be "exceeding authorized access" quite clearly.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, but the docs on using that service are very thin. I chose to point out the spelling difference because String-keyed locators like that do not provide much feedback for minor errors such as a key misspelling.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Spelling counts in service provider look-ups. Try

ScriptEngine engine=manager.getEngineByName("JavaScript");
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you can begin by reading "Starting Python", prominently stickied at the the top of the forum, rather than hijacking someone's code snippet with off-topic questions.

Gribouillis commented: Good idea ! +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the doc on nextInt(). You need to catch the InputMismatchException that will be thrown if they don't enter an int.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to Javascript.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'll move this to the ASP.NET forums then and perhaps some of the resident gurus can help you out.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Mentioning ASP in your first post or posting it in the correct forum would have been more helpful in getting an answer. Are you using classic ASP or ASP.NET?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It would really depend on how you created the renders and assigned them to the column. If you did it the same way as the first then I don't see any reason why it would not work fine.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Try using this for your cell renderer. You can pass it the combo box that you are using for the cell editor.

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 value, boolean isSelected, boolean hasFocus, int row, int column) {
            combo.setSelectedItem(value);
            return combo;
        }
    }

On your table column, column.setCellRenderer(new CheckBoxCellRenderer(comboBox));

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Did you Google it?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Or change the table column to allow null if that is appropriate for your data.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Here is a good place to start:
http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_organized

Post the code that you have started and ask specific questions about the parts you are struggling with.

This is not a homework completion service.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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 they aren't even visible to search bots at all.

He is just wasting his time and ours and making a mess of the place. Personally I do not welcome him here.

(RoseMary3 may want to consider the info about sig spam as well.)

happygeek commented: well said, he might get bored eventually but I think he's too stupid to realise he has been rumbled +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, I tried to guide you towards that conclusion in the very first post 6 days ago.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Continued here: http://www.daniweb.com/software-development/java/threads/369494/1587942#post1587942

Closing this so we don't get this spread over multiple threads.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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?
http://www.daniweb.com/software-development/java/threads/369295

Spreading a single question over multiple threads just creates confusion and duplication for those who might offer assistance. Please keep to one thread per issue. Closing the other one.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It is still basically the same question. Spreading that across many threads just creates a cluttered mess and people may waste their time typing duplicate suggestions that have already been given in another thread.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Merging this with your other thread for the same question.

Please do not scatter the discussion over multiple threads.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Judas Priest - Hellion / Electric Eye

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

75.49810 miles = 121.502 km

Use 6367 in your formula instead of 3958.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Check how you are creating your output label.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I wouldn't think so. Perhaps it was just an incompatible file or it was corrupted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you tried a different wav file?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Eclipse is obviously not happy that you are directly accessing sun classes. Those are just warnings though and won't prevent you from using them.

Did you change your catch block to print the stack trace of the IOException?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> i have a bunch of warning signs on a bunch of my lines in the program. is it possibly because of my settings in eclipse?
Well, reading them seems to be a good place to start?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use error.printStackTrace() instead of just printing "file not found".

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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 here and here

diafol commented: good spot +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would imagine a Client and ClientContact table arrangement would work just fine.

The difference between the residential or business clients can be address by a ClientTypeId or BillingCode identifier or similar mechanism, depending on what other info may need to be associated with that disctinction.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to Javascript.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Insensus already posted a good solution for this in the very first reply. All of the looping is completely unnecessary.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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. To do that, perhaps you should make a variable to hold the search results you want to display. If you find a match, set the variable to that information.

After you have completed the search loop, print out your result.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Are you kidding? I can't possibly explain what floor() does in any clearer terms.

If you want to scold people that try to explain things for you, just forget it. RTFM. I won't trouble you with any further attempts to help.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please do not create multiple threads for your question.
Further discussion should be directed to the current thread here:
http://www.daniweb.com/web-development/php/threads/367875/1579675#post1579675

Closing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The description of floor() is pretty straightforward:

Returns the next lowest integer value by rounding down value if necessary.

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 result compares to the values that you have hard-coded in that block of if statements.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

They are initialized once, but can be re-assigned. "Final" variables cannot be re-assigned after they are initialized.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It will change B every time an instance of A is created. Static is not the same as final.

Static merely means that all instances of a class share that reference instead of each having their own instance variable for it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why do you think they need to be static?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Post the error instead of making people guess.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to JS.