Unit 8: Graphics, Images, JFrames, Mouse and Key Events
Home
Units
Hardware, Software, History, Memory, Linux, Conversion
Printing, Format, Compiling, Documentation, Design
IO, Math, Testing
Methods & Classes
If-Else & Inheritance
Ethics, Loops, Recursion
Final Exam Review - Semester 1
Objects & Strings
1-D Arrays & File I/O
Graphics, Images, Frames, Mouse, Focus, and Key Events
Components, Layouts, User Interface Design
Game Design
Final Exam Review - Semesters 1 & 2
References
Linux Primer
Eck Java Textbook
Java SE 5.0 API
Internal
External
Intro to Linux
Java Methods A & AB
Course
Java "Greensheet"
Java Lab Rubric
Home Setup
PC Users
Mac Users
Unit 8: Graphics, Images, Frames, Mouse, Focus and Key Events
Reading Questions: Intro GUI, Frames, and Graphics
Reading location is described in this document.
Frame Examples:
Create A Garden Of Flowers
Some Trivia Questions
Do Some Simple Painting
Some Trig Functions
Draw Some Symmetric Curves
An Application That Controls An Arc
A Frame That Allows Color Choices
Place An Image With A Mouse Press
The Game Of HighLow In A Frame
Draw Shapes In A Frame
Some Help With Sticks2
Launch A JFrame From A JApplet
Launch A JFrame From A JFrame
Close A JFrame With A Menu Or Button Choice
Graphics Examples (not necessarily in JFrames):
Draws A Box And Some Words
Draws A Box and Some Words (Revised for Swing JApplet)
Draws Some Shapes
Draws A Histogram
Draws A Target
Draws A Pie Chart
Draws A Colored Wheel
A Colorful Sine Curve
A Handsome Swirl
Illustrates A Bubble Sort
Illustrates A Selection Sort
Bonus Content: A Button With A Dialog Box When Pressed
Images Reading Questions
See this document for location of reading.
Prints An Image Where The Mouse Is Clicked
Prints An Image Where The Mouse Is Clicked (Better!)
Print And Resize With Mouse Press And Drag
Prints Part Of An Image In Separate Panels With A Mouse Press
A High-Low Card Game
Prints An Image Where The Mouse Is Clicked
A Grid Of Images, Taken As Portions Of One Image
A FlowLayout That Displays An Image, Two Buttons
Mouse Reading Questions
See this document for location of reading.
A Simple MouseListener
Push A Button
Shoot A Random Arrow At A Target
Draw Some Ovals And Rectangles With A Press
Draw Some Ovals and Rectangles With A Press (Version 2)
A Simple MouseMotionListener
Chase A Ball Around With The Mouse
Using An Array With MouseMotionListener
Using Both MouseListener And MouseMotionListener
Play The Game Of Match
Key & Focus Reading Questions
See this document for location of reading.
Move A Circle Using KeyListener
Find A Hidden Circle Using KeyListener
MouseListener, KeyListener, And FocusListener
Choose A Color Using KeyListener
Move A Compass Arrow Using KeyListener
View And Control A Game Piece
Navigate A Field Of Mines
Masterpiece Directions
Pajamas Directions
Five Old Graphics Quizzes
GardenGrows Directions
Mouse, Key, Graphics Exam A
Mouse, Key, Graphics Exam B
Mouse, Key, Graphics Exam C
2015 Frame and Image Quiz
2014 Image Quiz
2009 Frame Thread Quiz
Monta Vista SchoolLoop Site