Java Basic Problems

Java:How to make your JTable appear in the whole JFrame Window

If you want your JTable need to appear in the full page i.e JTable will cover the full JFrame window then just add the below line in your code.

 panel.setLayout(new BorderLayout());

Here panel is the JPanel where you will add your JTable

Also you can see “How to add data in JTable  using TableModel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s