Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java Specialists Part2 (009 Depth-first Polymorphism (Polymorphism (depth…
Java Specialists Part2
009 Depth-first Polymorphism
Polymorphism
depth first
Looks at toop of Super Class for method mathces
solution
check with instance of
use reflection
010 Writing GUI Layout managers
011 Hooking into shutdown call
Calling system.exit(0)
program doesn't exit
requires task manager
012 Setting focus to second component of modal dialog
login dialog
advanced tip
login not bound to parrent
solution
create a frame
position -1000, -1000
owner of dialog
problem
set focus
before dialog
solution 1
catch focus event
transferFocus()
remove listener after focus lost
solution 2
method changeFocus
target.dispatchEvent(source, FocusEvent.FOCUS_GAINED);