Hi, everyone i am still could able to use Nested sub-header though i have found a link. Will anyone please come come forward and provide me some valuable suggestion. I have found the link but i could not able to use database values.

http://www.swebb99.f2s.com/GroupableHeader/

How to include database values here....

 DefaultTableModel dm = new DefaultTableModel();
        dm.setDataVector(new Object[][]{
            {"119","Finbar", "John","Saunders","ja","ko","zh"},
            {"911","Roger", "Peter","Melly","en","fr","pt"}},
            new Object[]{"SNo.","First", "1","2","Native","2","3"});

I don't want hardcoded values. Please help me to get out of this. Any help from you will highly be appreciated. I am in a great need. Thanks in advance.

there are 3.links about those http://download.oracle.com/javase/tutorial/index.html

or (more confortable is goinin throught tons of examples) at http://www.java2s.com/Code/Java/Database-SQL-JDBC/CatalogDatabase-SQL-JDBC.htm


Edit: GroupableTableHeader

check on java2s (tons of examples for JTable, TableHeader, DefaultTableModel)if isn't there better example for that, and your topic nothings to do with header

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.