Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Daniweb certainly doesn't show up as high in Google results for Java help as before. It used to be within the top 5 for many technically-specific searches, ie "jtable cell renderer background color" and now it is page 2 or more.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Really Dani? Did you not notice this sock-puppet failure didn't even bother to log in to a different account to answer his own question to promote his service?

This is just spam failure.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you simply search on "i_m_rude" you will have all the posts to peruse at your leisure.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the forum rules:
- Do provide evidence of having done some work yourself if posting questions from assignments.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Later I will not need forums to learn.

Cheating != learning

Learning is encouraged here.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you tried adding an extra pair of quotes around the string.format result?

In Date('" + string.Format("yyyy,mm,dd", txtStart.Text) + "') 

I mostly work in Java, so I'm not as familiar with C# nuances, but it looks to me like your constructed string might not have sufficient quotes for the construrctor signature of Date()

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You haven't imported any of those classes.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And you showing the slightest bit of effort towards your own assignments would also be appreciated.

Please read the forum rules about effort on homework assignments.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Start checking braces. You have an unclosed block above your keyReleased() function declaration.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I think you are looking for SSCCE?

FALL3N commented: answered question +2
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I've heard rumors of such t-shirts, though I don't know anyone who has seen one.. but hey, I'm new here. Things like that are proabably for some ad vendor.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You should not have a repaint() call in your paint() method. Also, you should really be overridding paintComponent() on a JPanel or something instead of paint() on a JFrame. If you really must override paint, make sure you call super.paint() first or other components in the frame won't render correctly.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the rules about showing effort on homework.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

First, read the rules about showing effort on homework assignments. Then post what you have so far and specific questions about what you are having trouble with.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please read the forum rules:

Do not ask anyone (member or moderator) for help by email or private message

Keep it on the forums and show that you have made some effort if you are seeking homework help.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sure, you can connect to MySQL with JDBC. MySQL has info on their site: http://dev.mysql.com/usingmysql/java/

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Since you've moved the origin to the middle of where you want the rectangle, draw the rectangle centered about the new origin.

Old rect:

g2d.drawRect(100,100,10,10);

translating to center of rect and drawing the same shape:

g2d.translate(105,105);
g2d.drawRect(-5,-5,10,10);
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you translate your origin to where you want the center of the rectangle to be, are you drawing the rectangle relative to the new origin location?

If you have a rectangle centered at say (2,2) and you translate to that point and draw the rectangle with the same (x,y) values, you will now have a rectangle centered at (4,4) because you have shifted the entire coordinate system to a new location.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You are basically undoing your translation on line 7 by restoring the original transform. You are rotating the original context.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

TonyG, as a former two-pack-a-day smoker for 23 years, I can definitely relate to the difficulty of quitting.

Alan Carr's "Easy Way To Quit Smoking" got me off of them and I haven't touched a cigarrette in four years. I certainly can't say it will help everyone, but it did work for me. I started smoking at 15 and put them down at 38. I'd smoked my entire adult life and really couldn't imagine not smoking, but it really wasn't too awful once I got it straight in my head. You've got to get past all of your own reasons to keep on smoking. No patch, pill, gum, or anything else will do that for you.

Good luck with it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It works just like any other Java library. Perhaps you can install a player bean in Netbeans, I don't know, but really it's just an API. Use it like any other API.

Read the extensive docs if you're unsure of how to work with it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Try the Java Media Framework

There is one example of using it with Swing here in the code samples section.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Call the dispose() method on the frame you want to close.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Also, read the forum rules regarding homework:
Do provide evidence of having done some work yourself if posting questions from school or work assignments.

You need to show a little effort here if you want help. Post what you have so far, your thoughts on how to proceed, parts that are giving you trouble, etc.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Someone may be able to (note: I am not that person), though you will have to adhere to the forum policy of showing some effort yourself when asking about homework.

Post what you have so far and specific questions about which parts are giving you trouble.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Unless you want to deal with a fixed span for the second dimension, use an ArrayList of ArrayLists.

Also, don't ever use 'aa', 'bb', 'aaa' for names of anything. Name your classes and variables with descriptive, meaningful names and it will be much easier for you and anyone else reading the code to follow your logic.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use H2 for your database. Problem solved.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could look into this: http://gdcm.sourceforge.net/
It has Java bindings.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you do find you need an installer, take a look at IzPack.

tux4life commented: Sounds interesting. +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Because you seem unable to make your point without including intentionally offensive language.

If you could act like an adult, perhaps your feedback would be taken seriously by others.

Nick Evan commented: Bam! +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can edit a post within thirty minutes of submission. Only moderators and admins can delete posts.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And... ?
You haven't posted a question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Step one is Google.
Step two is trying on your own.
Step three is asking specific questions about the things you are having trouble with.

tux4life commented: IllegalStateException :D +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That's not how things work around here. Post your code and specific questions. Do not ask for help via email.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You asked... bumping your own question a day later.

Did you not want an answer?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would assume your main file could simply check the availabilty of the dependencies and instantiate the correct version as needed.

Import statements are fixed at compile time, but fully qualified class names are not. You can control concrete class references at run time.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Beacuse that method signature does not exist. Check the API.

You could use an Integer[] array and it would work.

Edit: Bizarre crosspost with James. Thread had no reply when I posted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, I can. Solved is solved and you stated it to be so.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If Im going to make code unclear with the second method, I just make it 100% sloppy instead of 50%.

I suppose the guys who wrote the JDK preferred sloppy code as well. Most, if not all, of it is written in the second style.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ask specific questions about the parts you don't understand. All you posted was a constructor - not much going on there.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just put the alias after the table name in your FROM clause and use those in place of the table name:
select a.f_name, a.l_name, b.f_name, b.l_name from user a, user b where a.id = '1' and b.id = '12'

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can't define methods within methods. Check your braces and code block organization.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i think guide of w3school.com are nice for beginning :)

Well, except for the fact that w3schools does not have a Java section. Don't conflate Javascript with Java.

@Delnith: Please refer to the sticky thread at the top of the Java forum listing: Starting Java

deben.salemme commented: yep, sorry :) +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I think you mean 'here' instead of hear (hear is to receive sounds through the ears) and 'spammer' instead of 'SEO worker'.

SEO workers often don't know the difference on the spam part and don't realize why no one wants them around.

Don't be one of those SEO workers.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

A private company email will have its own STMP propeties and accounts. You need to use those.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I have no idea. That would depend on Yahoo's settings, but if it's a free account it doesn't matter anyway.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Is it a free Yahoo email account or a paid Yahoo Mail Plus account? Free accounts can't use SMTP.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

STMP is your outgoing mail server. If you don't know what it is, you will need to ask your network administrators about accessing it. Once you have that, you can follow the examples in the documentation.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You're here because you can't use a search engine?