Share your knowledge at the LQ Wiki.
Go Back > Blogs > CoderMan
User Name


Rate this Entry

First Java Applet: Logician

Posted 01-19-2010 at 04:57 AM by CoderMan

I wrote a little applet called Logician, which is similar to the game Master Mind. Hardly a unique applet, of course, but it was a good way for me to "warm up" and learn a lot of the API. It is available here:

One thing which took me by surprise, as far as Java programming goes, is that drawing to the graphics buffer, and then calling repaint(), is not the same thing as using double buffering. I had just assumed, having worked with ClanLib graphics in the past, that all graphics APIs would be set up this way by default. But in my Java applet I actually had to learn how to create a temporary buffer, draw to that buffer, and then transfer the temporary buffer to the real buffer.
Posted in Uncategorized
Views 2582 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 12:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration