SCJP
Visit my download page
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
I always use one ActionLister for each button.
object orientation is not an easy thing.
SCJP
Visit my download page
Randall Twede wrote:i think most people will say choose composition over inheritance, but perhaps they are just parroting what others say. i have done it both ways.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
SCJP
Visit my download page
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
SCJP
Visit my download page
Mohamed Sanaulla wrote:...and the hierarchy should be designed such that it doesn't violate the Liskov Substitution Principle...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
SCJP
Visit my download page
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
SCJP
Visit my download page
SCJP
Visit my download page
SCJP
Visit my download page
SCJP
Visit my download page
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCJP
Visit my download page
and i now don't think it actually should be a sub-class of JFrame because i don't override any methods.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
The thing is, your ImageViewer represents a window.
SCJP
Visit my download page