6776095: Code improvement and warnings removing from swing packages

Reviewed-by: malenkov
9 files changed