Desktop Programming

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

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

Student Grades Using Ruby

A lot of people new to the programming game usually run across the grade book style of application at some point. The reason it is assigned as a beginner level project is that it is an easy way to show you how to use objects, how to use an array of objects, or more precisely how to use a collection. We here at DIC have seen variations of this project ...

Chain of Responsibility Pattern – C++

So you are alone in your cubicle at work, twiddling away on your computer when suddenly your supervisor comes by and yells at you for not handing in some kind of report. You tried to do it earlier but your supervisor was too busy playing fuse ball with the VPs to listen to you. After all, miracle workers like you are suppose to work miracles, not bother the management. So ...

For Java DB Beginners – MS Access

Ok so you have played around with Java for awhile, written some functions, created a class or two and now you want to get into connecting Java to an example database. How do you start? Well most enterprise applications typically use Java with a more robust and powerful relational database than MS Access. But if you are just learning, and want something simple to play with, MS Access can be ...

Tracking the Caret in a JTextArea with Java

A lot of people on the board right now are making their own little text editors. It is a great little project to start when you are breaking into a language like Java. They are not exactly original with the names though like "nText" and "pText" and "zText" and "wtfText". Usually their main focus is on highlighting or trying to mimic the functionality of some of the great text editors ...

Ordering Sets in C++

Now some of you may be thinking "a set" like some kind of gang terminology. While I do belong to a gang of some hard core programmers here at DIC, I can assure you that we are only talk programming terms here. So I don't want you to drive by my house or anyone to ask me to score some weed. However, if you want to know how to order ...