implement double buffering by using BufferStrategy and added auto
resize.
adjust the layout of property dialog.