6727662: Code improvement and warnings removing from swing packages

Removed unnecessary castings and other warnings

Reviewed-by: malenkov
70 files changed