How to remove table header

my system need to display data, i will apply to display in JTable(one field is checkbox, one is the detail info.), but i don't hope user feel their data was displayed in a table.so i do following:
private static final String colName[] = {
tblMain.setShowHorizontalLines(false);
tblMain.setShowVerticalLines(false);
tblMain.setSelectionBackground(Color.white);
but i still meet a problem on how to hide the table header. anyone,please help guide.
thanks in advance.
Susan

so great ,camickr ,it's realized, thanks a lot

Similar Messages

  • How to remove the header in Report from SQVI

    Folks,
    I created a report by joining 4 tables in SQVI, the output data is around 200 pages. I need to remove the header from the report so I can down load to a excel.
    Can some tell me how to switch of the header in SQVI ( Layout Mode). I did this before using Legend on/off but I quite didn't remember how I exactly did it.
    Thanks,
    Kumar

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • How to hide table header?

    I can hide the table header in metal look and feel.
    but not in solaris cde look and feel.
    How to do this.
    Thanks a lot!

    I haven't tried but: The table header is displayed in the column header of the enclosing scrollpane. When adding the table to the scrollpane it calls scrollPane.setColumnHeaderView(getTableHeader()). I guess you can remove it by calling scrollPane.remove( mytable.getTableHeader() ).

  • How to remove JTable header from JScrollPane?

    Hi!
    Does anyone know how to remove the JTable header from the JScrollPane the table is placed in? I tried calling
    scrollpane.setColumnHeader( null ) and
    scrollpane.setColumnHeaderView( null )
    but none of the above worked...
    Thanks!
    Fil

    Hi,
    The easiest way to do this is to put an extra layer between the table and the scrollpane as follows:-
    JPanel p = new JPanel(new BorderLayout());
    // Add it to the north rather than center so that the table background color
    // won't cover the empty part of the view port.
    p.add(table, BorderLayout.NORTH);
    JViewport v = tableScroll.getViewport();
    v.setView(p);
    where table is your JTable and tableScroll is your JScrollPane.
    Hope this helps,
    Ian

  • How to remove the header tag in the XML data ?

    Hi All,
    I am sending an XML data from SFTP to Proxy, in that I want to remove the header tag (first tag) from the xml, while loading the data. how to do that ?

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • How to remove item header on the last page

    Hi,
    We have an adobe form where, on the last page a BIG footer gets displayed.
    Now if the number of line items are not enough, they wont go till the last page, but the last would still be printed with no line items, just to accomodate the huge footer that we want to be displayed only on the last page.
    Now in doing this, we want that if there are no line items on the last page, the item header should not be displayed. We are not sure how do we do this.
    The same is accomplished in SAP Script, and there they are using WRITE_FORM with type DELETE. So anything that prints after that even on a new page, the item header wont get printed.
    Please suggest how do we do this in Adobe Forms.
    Thanks,
    Tirth

    Hi Mate,
    there is a contradiction then.
    in table header rows definition, we specify show header in subsequent pages, then the header appears only if there are items displayed on that page. in your case the table header shouldn't be displayed then please check why its comming out there...?
    well in any case if you want the script it would be like below on layout ready event of the header row.
    // run the below script in last page
    if(xfa.layout.page(this) == xfa.layout.pageCount()){
    var pageSFList = xfa.layout.pageContent(xfa.layout.page(this) - 1, "subform", false);
    var pageTotal = 0;
    // for each subform named <Item>, which is the data row of the table
    for (var i = 0; i < pageSFList.length; i++)
         var sf = pageSFList.item(i);
            if(sf.name == "headerrow"){ // if header row is found then chec is data row is visible and set its presence accordingly
               if(sf.parent.item.presence == "hidden"){
                   sf.presence = "hidden";
         if (sf.name == "Item") // if data row itself is found set its presence accordingly
           sf.parent.headerrow.presence = "visible";
    you might need to tweak the code according to your element names.
    hope this helps,
    Cheers,
    Sai

  • How to hide table header for empty table

    Hi,
    I wanna to hide table header for all tables which doesn't contain any data in my Adobe form. How can I do this? Helpful answers will be rewarded .

    HI Aliaksandr,
    You can use javascript to do this dynamically.
    For example, i used Adobe Designer 7.1 to add a table to a subform.
    Now, i have the object hierchy as:
    Level 1 - form1
    Level 2 - form2
    Level 3 - Table1
               -->HeaderRow
                    --> Cell1
                    --> Cell2
               -->Row1
                    --> Cell1
                    --> Cell2
    Now, i sleect the Table1 element, and write the javascript which is executed on Initialization, as
    if(this.Row1.Cell1.rawValue == "")
    this.HeaderRow.presence = "hidden" ;
    This will check that if the first row is empty, it will hide the header from the layout.
    You can use something similar for your requirement.
    Hope this helps,
    Siddhartha Jain

  • How to Fix Table Header of Analysis Web Item in BEx Web Template

    Hi,
    I am using an Analysis Web Item to display line item report in BEx Web Template. Is there any way to fix the table header of the like in Excel for better navigation?
    Thanks in advance.
    Regards,
    Joon

    Thank you all for your quick responses (I will award points once this is sorted)
    On the information you have supplied this has opened up yet another new part of WAD that I have not experienced ...TAGs
    Shubhranshu - I have done what you said but as I have never used tags I have just had a look around and found that I can insert Any Tag but not sure if I should be doing that.  If it is inert any tag , I chose FONT from the drop down and cbmAttributes defaulted into the custom tab for the class name but not sure what it wants in the Attributes and CSS Style tab, it won't accept what I am putting which is leading me to believe that I shouldn't be doing it that way.
    Venkat - thanks for the links they will prove very useful.  I've had a look and although they talk alot about the XHTML code for tags they don't actually say how you do it in the editor - I would like to produce one that way first and then see the code it generates for it.  I'm a bit apprehensive with changing the code direct as I don't want to mess anything up.
    Thanks again for your help

  • How to remove the header name in KM navigation iview

    Hi,
            I have an KM iview with linklistexplorer as layout.
    It is displaying  "Name" as header  along with all the files.
    I want to remove this header "Name" from the iview.
    Can anyone help me on this.
    Raghu

    Hi Raghu,
    The layoutset you are referring to is using the collection renderer LinkListCollectionRenderer. This defines the properties to be rendered for each resource, which in the standard are
    "rnd:image,rnd:displayname(contentLink)"
    Change this to
    "rnd:image,rnd:displayname(contentLink/noTitle)".
    See http://help.sap.com/saphelp_nw70/helpdata/en/79/a1d23e6b2c3d67e10000000a114084/frameset.htm for an overview over these modifiers.
    Hope it helps
    Detlev

  • How to remove "Select" header in a ADFMultiselection Table.

    Hi All,
    Can anyone help me in removing the "select" header in a ADF MultiSelection table.
    I have searched the forum, but I didnot find a convincing answer.
    Jst let me know if anyone has a solution for this.
    Thanks,

    Hi,
    you can't change it in your code. I think the only option is to create a custom skin and then replace the resource bundle. Creating a custom skin for this is more work than the effect may justify. So to hide the string you can use CSS like the following
    .x2z{color:#D2D8B0}
    which turns the font color into the background color
    Frank

  • How to see table header

    hi,
    i have my jtable populated and filled, with my string[] to populate the header, but i can see the header!
    how to do it?
    thanx

    Add the table to a JScrollPane. The JScrollPane will display the header.

  • How to repeat table header on each page of PDF using Coldfusion

    Hi all,
    Can anybody help me in resolving this issue. The details are mentioned below.
    I am generating PDF using <cfdocument> tag of Cold Fusion.
    I have a header and footer to be displayed on each page. I am rendering data in a table.
    If rows in the table exceed a page , and continue on the next page , I want the table headers to be repeated on each of the page.
    Example :
    Currently this is happening:
    Page Header
    Sr No
    Name
    Occupation
    1
    A
    A
    2
    B
    B
    3
    C
    C
    Page Footer : Page No 1
    Page Header
    4
    A
    A
    5
    B
    B
    6
    C
    C
    Page Footer : Page No 2
    What I want is :
    Page Header
    Sr No
    Name
    Occupation
    1
    A
    A
    2
    B
    B
    3
    C
    C
    Page Footer : Page No 1
    Page header
    Sr No
    Name
    Occupation
    4
    A
    A
    5
    B
    B
    6
    C
    C
    Page Footer : Page No 2

    Hi Dan ,
    Thanks for your inputs.
    This way wont work beacause , am displaying other text and table both, and the table will be diplayed based on some conditions. If the conditions are true , table will be diplayed , else not.
    I missed to illustrate text in the example. The scenario is something like this :
    Page Header
    Text .........
    Table [Displayed conditionaly]
    Page Footer
    Please suggest me some way to do this.

  • How to remove category header link in a content area

    Hi,
    I have a content area with two categories X and Y with some items in each.
    When I add this content area on a page as portlet, the category heading is displayed with a hyperlink to X.
    I do not want that category heading, I should only items in the content area and not the headers atleast remove hyperlinks to the category headings.
    Please help.
    Murthy

    Hi,
    you can't change it in your code. I think the only option is to create a custom skin and then replace the resource bundle. Creating a custom skin for this is more work than the effect may justify. So to hide the string you can use CSS like the following
    .x2z{color:#D2D8B0}
    which turns the font color into the background color
    Frank

  • How To Display Table Header in JTable

    Hi,
    I have a tree node that is a JTable. It displays the cells, but not the header or the left hand side of the table.
    Here is my code ...
    Anyone got any ideas?
    public SimpleTree() {
    super("Creating a Simple JTree");
    WindowUtilities.setNativeLookAndFeel();
    addWindowListener(new ExitListener());
    Container content = getContentPane();
    JTable table;
         String columnNames[] = { "OrderID", "CustomerID", "EmployeeID", "Order Date", "Shipped Date" };
         String dataValues[][] =
              { "34", "234", "67","12/02/2002", "16/04/2002" },
              { "-123", "43", "853","12/02/2002", "16/04/2002" },
              { "93", "89.2", "109","12/02/2002", "16/04/2002" },
              { "279", "9033", "3092","12/02/2002", "16/04/2002" }
         table = new JTable( dataValues, columnNames );
         table.setEnabled(true);
         table.isCellEditable(4,4);
         table.setShowHorizontalLines(true);
         table.setShowVerticalLines(true);     
         table.getTableHeader().setForeground(Color.black);
         table.getTableHeader().setBackground(Color.lightGray);
         table.getTableHeader().setReorderingAllowed(true);
         table.getTableHeader().resizeAndRepaint();
         JTableHeader header = table.getTableHeader();
    header.setUpdateTableInRealTime(true);
    header.setReorderingAllowed(true);
         Object[] hierarchy =
    { "Orders",
    new Object[] { "Orders",
                                  table},
    new Object[] { "Prodcuts",
    new Object[] { "",
    table },
    "Employees",
    "Suppliers" };
         DefaultMutableTreeNode root = processHierarchy(hierarchy);
         JTree tree = new JTree(root);
         tree.putClientProperty("JTree.lineStyle", "Angled");
         tree.setCellRenderer(new MyTreeCellRenderer(table));
         tree.setCellEditor(new SimpleTreeCellEditor(table));
         tree.repaint();
         table.repaint();
         tree.setRowHeight(-2);      
         tree.setEditable(true);
         content.add(new JScrollPane(tree), BorderLayout.CENTER);
         setSize(275, 300);
    setVisible(true);

    The column header is a different component of the table component. You can get this component directly and place it wherever you want in a container, just get them from the JTable:JPanel aPanel = new JPanel( new BorderLayout() );
    JTable myTable = xxx;
    aPanel.add( myTable.getTableHeader() , BorderLayout.NORTH );
    aPanel.add( myTable, BorderLayout.CENTER );

  • How to remove repeated header and print "No records" in report

    Hi,
    I have a problem with my output report it is repeating the header when no records was found. And does anyone knows how i can put "No records found" (when no record is found) in the output without the Total amount and Grand Total? Please refer to the attachent file for reference.
    Thanks a lot! Hope someone can help me.
    Cheers,
    Jen
    Report ID: CRMR2W26 PARTIAL LOAN PREPAYMENTT MONTHLY SUMMARY REPORT Report Date: 08/04/2008
    For the month of March
    SR Creator SR No. Sales Opty Id Cash Amount($) CPF Amount ($) CIF No. Customer Name Salesperson Name Domicile Branch SR Status
    Domicile Description
    Branch
    Code
    Total amount
    Grand Amount
    Page 1
    Report ID: CRMR2W26 PARTIAL LOAN PREPAYMENTT MONTHLY SUMMARY REPORT Report Date: 08/04/2008
    For the month of March
    SR Creator SR No. Sales Opty Id Cash Amount($) CPF Amount ($) CIF No. Customer Name Salesperson Name Domicile Branch SR Status
    Domicile Description
    Branch
    Code
    No records extracted
    Page 1
    Message was edited by:
    user618088

    This sounds like a Reports issue.
    Perhaps you would be better asking in the Reports rather than the SQL and PL/SQL forum.
    ;)

Maybe you are looking for

  • What can I use to see sports on itv? Is there a substitute to Adobe Flash player?

    I am unable to watch ITV Sports because it will not allow Adobe Flash player. Is there an alternative player?

  • Can two user can logon into sap b1 8.8 as like sab b1 2005

    Hi All Expert,        As we know that as like SAP B1 2005 we two user can logon into sap from a user id , My question is can we do the same on sap 8.8 also.. Regards, Inder.

  • Difference in sizes, how to fix?

    I have two panels and I use a CardPanel layout to navigate from one panel to the other. Now when my first panel is on the screen, it is in it's natural size, meaning that i didn't tinker with the size and it just displays in its default size. Now whe

  • Find out List of Unapproved PO.

    Hi Friends, Could you please help me; how to find out the unapproved purchased orders for a fiscal year? Is there any Tcode or report for this? Regards, Pradeep.

  • Travel advance multiply by first save

    Hi expert.. I have question on travel advance, while make travel request. when I save it for the 1st time, the number of amount in advance will appear like it is multiply by 100. but, it only for the first save. if I saved travel request first, then