Fix boardTable updating. Add automatic resizing.

+ Fix boardTable updating.
+ Add automatic resizing to SwingView.
+ Polish SwingView layout.
+ Optimize imports.