Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JScrollPane;
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);

        // Make the table vertically scrollable
        JScrollPane scrollPane = new JScrollPane(table);

    }
}