Friday, December 6, 2019

Bucky &Me

Browsing through Youtube programming tutorial, I came
across TheNew Boston whose presentation of Java Gui really
re-inforced what I have come to realize about the particuliarities of
Java Swing. Essentially, the main program doesn't just call functions.
It calls an instance of a class, and adds it as well ... a very modular approach.

Below,  creating a new rectangle color with RGB.

The title is passed when the JFrame is created.


The subsequent tutorial calls on a pre-defined color chooser


Layout on the panel is geographical.




http://web.mit.edu/6.005/www/sp14/psets/ps4/java-6-tutorial/components.html

No comments: