Expand window size by table size (Make a table fill the entire window)

I want to expand window to fullfill the table entire content any help?