Last modified: Monday, January 10, 2022
Calculator adapted
from
https://github.com/junit-team/junit4/wiki/Getting-started
GameDie as of end of class GameDieGameDieexport CLASSPATH=$CLASSPATH:/opt/oracle/product/11.2.0/client_1/oui/jlib/ojdbc6.jar:.
ssh and
sftp - (in tagged PDF) Scanner class; then
started intro to JDBC (Java DataBase
Connectivity)
Scanner class to read a line
from a fileJScrollBar object
and the AdjustmentListener
added to it to make it sensitive to
AdjustmentEvent
events.JCheckBox,
ItemListener, and JRadioButton
ButtonTest.java, using a helper
method along with a lambda expression expressing its
buttons' listener to make setting up its color buttons
much more streamlinedJCheckBox,
ItemListener, and JRadioButton ImageIcon, to be modified
and added to as part of today's lab exercise
ThreadImage1 application, can be used as its
command-line argumentJPanel subclass ImageIcon ("built" from an image file
whose file name is a command-line argument)
across the screen - WITH
the added functionality that begin and end buttons
allow the user to start and stop the ImageIcon's
movement.
ThreadImage1 application, can be used as its
command-line argumentRunnable interface to create your own threads
Thread.stop,
Thread.suspend,
Thread.resume are deprecated: 8-)
Mult2
(and associated package-level
classes it uses), to be added to as part of today's lab exercise
jshell session
from class, demoing Swing borders
a little jshell demo during class into a small Java
application JTextField
example GameDiePreLabButtonTest
(and associated package-level
classes it uses), to be added to as part of today's lab exercise
JFrame,
JPanel, JLabel, JButton;
intro to the Java 1.1 event model, making buttons sensitive
to user clicks
JFrame example
adapted from
"Core Java", 11th Edition, C. Horstmann,
pp. 568-569 jshell session
from class, demoing JOptionPane class
a little JOptionPane examples as from
the jshell demo during class into a small Java
application JLabel
objects to
a JPanel on a JFrame
(kind of adapted from "Core Java" 9th edition's
example's structure
from pp. 354-355) ActionEvents on JButton
objectsGameDiePlottabletry-catch blocks, and just
starting a little on Java
lambda expressions
main method
uses try-catch blocks to
gracefully react if not given an expected integer
as a first command-line argument GameDiejshell session
from class
GameDie,
used in jshell session above (note that a copy
of it was IN the directory from which jshell
was run!) GameDie
GameDie - (did not have time in lab
to make this "parallel" to C++ version below)
javadoc GameDie.java :