Resources from Python workshop from the Midwest Big Data Summer School in May, 2019.
The zip file below is a complete Eclipse project that can be imported.
- swingexamples.zip (introductory examples)
The three introductory examples are at the top level:
graphics package - simple examples of drawing on a component, loading images, and using a timer callback for simple animation, requires the file sample.jpg
layouts package - some examples of using layout managers
vendingmachine package - more involved layout example, also see Startup.java for a demo of using a FileChooser, requires the file drinks.txt.
listdemo package - using a drop-down list, illustrates the model-view pattern
swingworker package - illustrates using a SwingWorker to safely perform a time-consuming background task