Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JTable;

public class Main {
    public static void main(String[] argv) {
        // Create a table with 10 rows and 5 columns
        JTable table = new JTable(10, 5);

        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    }
}