GLabeledBox, take 1

Here’s the code for my first version of the GLabeledBox class.  This is what I mean by starting with a simple version and building up.  This just provides the necessary GObject overrides, and trows a fixed size box and a fixed text message up on the screen at a fixed location.

Very unusable for my intended purpose, but it works- I have the basic infrastructure up in very little time.  If inheriting from GObject as opposed to GLabel or GRect was not a feasible strategy, there’s a good chance that even in this minimal version of GLabeledBox, this would be apparent. I could change strategy without having too much invested in the current design.  Code itself behind a cut.

This code requires the acm library, information on the library and a download are found here:
http://cs.stanford.edu/people/eroberts/jtf/

Read more of this post

Advertisements

So I’m learning Java

Properly, this time, as opposed to little bits I pick up from working through Android tutorials.

Specifically, I’m taking the Stanford CS106A Programming Methodology course through iTunes U- lecture videos and all the class handouts are included.

Should be fun.  Early assignments use a robot simulation called Karel.  I might post my code for one of the assignments, showing how I went from start to finish.  Still working on how to write that post up.