View RSS Feed

Recent Blogs Posts

  1. Adding a Table to a Container

    by , 04-26-2012 at 09:43 PM
    Scroll pane creation has a typical code which servers to be a container, for a table.

    Java Code:
    JScrollPane scrollPane = new JScrollPane(table);
    table.setFillsViewportHeight(true);
    In this snippet, 2 lines would be doing the given:

    Along with an argument, constructor JScrollPane would be invoked which will be referring to the table objects. A scroll pane would be created as a container for sake of table; automatically addition of the table ...
    Categories
    JTable