17 Ağustos 2008 Pazar

Intellij Knows Swing

As I use Intellij more and more, I get more and more suprised, more and more excited.

Yesterday, I was trying to change the cursor in a swing project, using setCursor() method. I expected Cursor.W_RESIZE_CURSOR would return a java.awt.Cursor object and coded as below. But something was wrong with my code:












...And immediately, Intellij told me what was wrong with my code:). I should have called Cursor.getPreferredCursor(). I applied Intellij's suggestion, and the error was corrected. My intelligent IDE again saved me to search for example codes on the internet:

Hiç yorum yok: