Desktop Programming

Desktop programming related articles not related to .NET (Java, Python, Ruby etc)

Inheriting From A Control in Java

I am sure we all love Java Swing. It is not quite as thrilling as the swings we use to play on at the park, but it sure makes our Java applications come alive with a nice rich GUI. We are familiar with the JButton to make buttons, JTextFields to make textboxes and perhaps you have even ventured into using JTables. But maybe some of these controls have not gone ...

Simple Multiplication Table in C++

The board has its ebbs and flows when it comes to programming topics. One day it could be a flood of Java questions regarding an inventory system and the next it could be how to write to a file in C#. A recent question on the board has been popping up over the last couple days with regard to creating a multiplication table in C++. So lets talk a little ...

Book Recommendations For A Variety of Languages

We have a lot of newbies on the forum these days. Again and again we are asked "What are some good books for language _______?" We all have our favorites and some books lean towards a certain learning style. So one programmer is going to like a particular book more than another programmer might. But besides that little glitch in perspective, there are some books that are generally accepted as ...

Spewing JavaScript JSON with PHP

There may be a time in the not so distant future where your employer may ask you do develop a web application which will hook up with a JSON data source. Perhaps you will be like "Uhhhhhh" and have a dumb look on your face. Have no worries, the underground is here to help! Lets use some PHP to generate some JSON code which we will fetch via AJAX and ...

Making a Simple Test Harness

Again and again we get people on the Dream.In.Code board saying something along the lines of "I have this problem with my project, I think it is this function giving me the trouble, but can someone help me figure out what is going on?" What is the first thing the pros do in such a situation? They create what is known as a test harness (aka driver program) to test ...

Read File Into Array or ArrayList in C++/Java

On this entry we cover a question that appears a lot on the boards in a variety of languages. Reading lines of a file into an array, vector or arraylist. I have several examples lined up for you to show you some of the ways you can accomplish this in C++ as well as Java. Keep in mind that these examples are very simplistic in nature and designed to be ...