Table Template Transformation Header/Footer Columns

Hello @all,
i'm new on this forum. i'm now starting to use Oracle SQL Data Modeler 3.1.0-700
i found the transformation "Table template". I'm thinking about to use this transformation for modeling my Header and Footer columns. How can i create the Columns for my header on the first position of my table? Is there another possibility to create a header or footer?
i hope you can understand my question.
thank you for help,
Max

You can use
table.moveToIndex(column,index);to move column you created to desired position - following will move the column to the beginning of list of columns:
table.moveToIndex(column,0);Philip

Similar Messages

  • Table template transformation

    I'm trying to add a few columns to all tables with table template transformation script. In Sue Harper's demo the columns were not added to the template table, but to all other tables. However when I do the same thing the columns are added also to the template table. It also adds the same columns to all tables every time I run the transformation script. Is it supposed to add the columns only to those tables that don't already have them?

    Hello,
    I created a custom tranformation with the code supplied for adding columns from the template table. I ran into a Script evaluation error:
    sun.org.mozilla.javascript.internal.EvaluatorException:
    Java class
    "[Loracle.dbtools.crest.model.design.relational.Column;" has no public instance field or method named "getObjectID". (<unknown Source>#13)
    Do I need to configure any environment variables on my computer, or install anything so that this script will find what it needs?
    Thanks,
    Beatriz.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Table.print(mode, header, footer) question

    hi...
    i want to print a table with title...
    filling header parameter in jtable.print(mode, header, footer) seems alright
    but it re-print the header on every page...
    what can i do to make the header printed only on the 1st page ?
    thank's

    Sorry, I cannot answer this question.
    I read your previous post about:
    "groupable + multiline table header paint problem"
    Did you solve this problem? I got the same issue ...
    Thanks,
    Tommy
    [email protected]

  • Header footer columns pages 5.0?

    Why the three columns in the new PAGES?
    and how can I get rid of them and go back to just 1?
    many thanks,

    It's just one of the many, many features that have been eliminated or changed. Leave feedback for the Pages team using the link in the Pages menu.

  • Is it possible to use a table in the sheet footer in Numbers '09?

    Hello there.
    I can't find a way to to that. In Pages '09 it is indeed possible and very simplie and intuitive. The very same approach doesn't work for me in Number. Is it possible at all?
    Thanks in advance.

    You can not place a table in the header/footer in Numbers

  • Dynamic table header/footer on multiple pages stay original

    hi experts,
    i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
    i did some scripting in the table's initialize section:
    loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
    everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at  page 1 to last -1).
    i tried to hide cells again in layout:ready section for the other instances of the headerrow.
    cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
    can anyone please give me a hint what i am missing here?
    does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
    thanks a lot!
    daapoo

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • How to setup a gridPane/Table with a customer header/footer

    Hello -
    I'm going crazy trying to figure this one out and any help would be greatly appreciated!
    I'd like to create a table with a custom 4 column header and footer, but with a single cell as the "main" section holding a child table(another gridPanel, I presume). I've been using the headerClass property on the gridPanel, but not sure what this actually DOES. Do I need to use the "facet" tags manually to set up a header row? Basically, I'd like the effect of using graphics to create a "framed" effect for another table. I hope I've explained this okay :) Any thoughts/help would be so appreciated!
    Thanks,
    Tom

    Hello -
    I'm going crazy trying to figure this one out and any
    help would be greatly appreciated!
    I'd like to create a table with a custom 4 column
    header and footer, but with a single cell as the
    "main" section holding a child table(another
    gridPanel, I presume). I've been using the
    headerClass property on the gridPanel, but not sure
    what this actually DOES. Do I need to use the
    "facet" tags manually to set up a header row?
    Basically, I'd like the effect of using graphics
    ics to create a "framed" effect for another table.
    I hope I've explained this okay :) Any
    ny thoughts/help would be so appreciated!
    Thanks,
    TomIn JSF terms, using a Panel Grid component, you can specify a header that goes across the top of the entire grid using a "header" facet. Likewise, the "footer" facet can set a footer that goes across the entire bottom of the grid. You might want something like this:
    <h:panelGrid ... columns="3">
      <f:facet name="header">
        <h:outputText value="This Is The Entire Header"/>
      </f:facet>
      <f:facet>
        <!-- An image across the bottom of the grid -->
        <h:graphicImage .../>
      </f:facet>
      <h:outputText value="Row 1 Column 1"/>
      <h:outputText value="Row 1 Column 2"/>
      <h:outputText value="Row 1 Column 3"/>
      <h:outputText value="Row 2 Column 1"/>
      <h:outputText value="Row 2 Column 2"/>
      <h:outputText value="Row 2 Column 3"/>
    </h:panelGrid>So, the "headerClass" attribute on a PanelGrid sets the CSS style class that will be used; it does not define the content of the header. Instead, you do that by embedding a component inside the facet.
    Creator doesn't currently have any GUI to help you set up the header and footer facets, but you can still add them in the JSP source mode.
    Craig

  • Multiple heading rows in a table template does not come across

    Hello,
       I've created a table with two heading rows with different content (please see attached file).
       When I import this table format into a new Frame doc, the first heading row gets repeated twice.
       Any ideas about how to fix this?
       I have even tried to make one heading and the other a footer row (at the bottom) but even that formating does not come across in the template.
       Any help would be greatly appreciated.
    Thanks,
    Anupam.
    Using : Framemaker 9 on Windows XP

    Anupam,
    The import into a new document has nothing to do with what you are seeing. If you look in the table designer, you will see that there is nothing there that specifies that the table must have two heading rows. When you insert a table and select the ids_register table format, the dialog box lets you specify the number of heading rows; it can even be one.
    Note that if you insert a second table in your original document and specify you want two heading rows, you get the same result: two heading rows that are both like the first one.
    Without know the real details, I am guessing that the table format is capable of remembering only one heading row format.
    I know this is not what you wanted to hear, but maybe someone else has a workaround to this.
    Good luck,
    Van

  • Placing Table in a Header or Footer

    I am working on XSL version 1.1 to generate word doc for some text.
    I need to place a table in the Header and Footer of this document but I'm not able to achieve this by placing <fo:table> inside
    <fo:static-content flow-name="xsl-region-after"> of the doc.
    As the table is always created in the body and not in the Header or footer of the table. If anyone has any idea please Help!

    It is not in the header.
    Highlight the floating image and then go Format > Advanced > Move Ojbects to Section Master.

  • Repeat header's column in a table with row height that greater then 200px

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I develop a website and encounter some problem about web page printing. I try to repeat header's column in a table with row's height that greater than or equal to 198px, but it doesn't work. Another size that lower than 198px works fine. If somebody has seen this issue before and know a solution, please help me. Thanks in advance.
    == This happened
    ==
    Every time Firefox opened
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
    == Plugins installed
    ==
    *-6.0.12.1739
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *PDF-XChange Viewer Netscape Gecko Plugin
    *Default Plug-in
    *Shockwave Flash 8.0 r22
    *Adobe Shockwave for Director Netscape plug-in, version 11.0
    *3.0.40624.0
    *Office Live Update v1.3
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • Print header/footer template bug?

    Using:
    Win 7 Ultimate
    Primavera P6 Professional R8.2
    Release: 8.2.0
    ID#:1926
    I cannot type an "s" in the print header/footer template, because it causes the cursor to exit the text editor and highlight the Show Section Divider Lines checkbox. Anyone else?
    Dario

    I use Win7 also, and had the same issue with non working 'S' key. It was driving me crazy.
    The solution mentioned above seems to work. You go into the HTML text (button) settings and then without changing any text settings you immediately go straight back out of the HTML settings. You then enter or paste in your text into teh footer.
    Note that I have also experienced this same issue in the header.
    However, has anyone heard of a permanent fix on this yet ?
    Edited by: Andrew Way on 16/10/2012 02:03
    Edited by: Andrew Way on 16/10/2012 02:05

  • Pages 5.5 Header/footer alignment

    How to align text to the left in Pages 5.5 in all 3 boxes in header or footer?

    I've just found another solution:
    1. create 3 columns table in Pages 4.3
    2. input text in those 3 columns, make alignment whatever you like
    3. copy text from each cell of Pages 4.3
    4. paste text into each box of Pages 5.5 header/footer
    5. voilà

  • Header footer

    I want to eliminate the header and footer form from the template so i can have that space for text.
    Is this possible..or is the header/footer template permanent?

    Yes, you can create your own default template. Set up your document with the margins, headers, etc. as you'd like. Redefine all of the paragraph & character styles to have your desired font.
    While you're at it, you might want to set default styles for all objects, text boxes, tables, paragraph styles, etc. Start with a blank document & insert an object. Change the color, wrap, etc. to your choosing & then go to Format > Advanced > Define Default Shape Style then delete the object. Repeat with an image/photo, a text box & a table.
    Now, save this as a template then, in Pages > Preferences, select this template as the default for new documents. All of your new documents will have these settings for inserted objects, images & tables. Unfortunately, the settings won't apply to any other templates or "foreign" documents you open with Pages.

  • Header, Footer in 0adhoc

    hi guys,
    what is the use of header, footer template
    in 0adhoc web template?
    due points will be assigned

    Change 0ADHOC_HEADER and 0ADHOC_FOOTER.
    Here is code for the header...(Essentially, we just show the logo via the link, be sure to upload your logo to the MIME repository. WE also show the last time the data was updated in the infoprovider in teh header at the top of the page!!!)
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DP"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DP
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="JD_HEADER_TPL"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/Streamline_BWReports_ie6.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <table border="0" cellpadding="0" cellspacing="0" width="760">
    <tr>
        <td width="31%">
            <IMG src="/sap/bw/Mime/Customer/Images/greenyellohorz.jpg">
        </td>
        <td> </td>
        <td   tabIndex="0" width="53%" align="middle"><font size=3><strong>
        <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="QueryName"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="REPTXTLG"/>
             <param name="ONLY_VALUES" value="X"/>
             <param name="ELEMENT_NAME" value="REPTXTLG"/>
             <param name="HELP_SERVICE" value="SAVE_VIEW"/>
             <param name="HELP_SERVICE_CLASS" value="CL_RSR_WWW_HWIND_SAVE_VIEW"/>
             ITEM:            QueryName
    </object> </strong>
        </font>
        </td>
        <td> </td>
        <td  tabIndex="0">
        <SAP_BW_TEXT program="SAPLRRSV" key="705"> <br>  
        <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="Actuality"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="ROLLUPTIME"/>
             <param name="ONLY_VALUES" value="X"/>
             <param name="ELEMENT_NAME" value="ROLLUPTIME"/>
             ITEM:            Actuality
    </object>
        </td></tr>
    </table>
    </BODY>
    </HTML>
    Here is code for Footer...
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="JD_FOOTER_TPL"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/Streamline_BWReports_ie6.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <TABLE cellSpacing=0 cellPadding=0 width=780 align=left bgColor=#ffffff
    border=0>
      <TR>
        <TD class=ten vAlign=center noWrap align=left>
          <br>Copyright © 1997-2005 MY Company. All Rights Reserved.
      </TD></TR></TABLE>
    </BODY>
    </HTML>

  • My final version of a table with row headers and column footers

    This version is superior to the one I posted yesterday
    as it is better designed and responds to changes in
    size correctly. You can also have a header/footer with
    multiple columns/rows.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumnModel;
    import java.awt.*;
    import java.awt.event.AdjustmentListener;
    import java.awt.event.AdjustmentEvent;
    import java.awt.event.ComponentListener;
    import java.awt.event.ComponentEvent;
    public class HeaderFooterTablePanel extends JPanel {
        static abstract class AbstractHeaderFooterTableModel extends AbstractTableModel {
            public abstract int getRowHeaderColumnCount();
            public abstract Object getRowHeaderValueAt(int rowIndex,
                                                       int columnIndex);
            public abstract int getFooterRowCount();
            public abstract Object getFooterValueAt(int rowIndex,
                                                    int columnIndex);
        static class RowHeaderTableModel extends AbstractTableModel {
            private AbstractHeaderFooterTableModel abstractHeaderFooterTableModel;
            public RowHeaderTableModel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
                super();
                this.abstractHeaderFooterTableModel = abstractHeaderFooterTableModel;
            public String getColumnName(int column) {
                return "";
            public int getColumnCount() {
                return abstractHeaderFooterTableModel.getRowHeaderColumnCount();
            public int getRowCount() {
                return abstractHeaderFooterTableModel.getRowCount();
            public Object getValueAt(int rowIndex, int columnIndex) {
                return abstractHeaderFooterTableModel.getRowHeaderValueAt(rowIndex, columnIndex);
        static class ColumnFooterTableModel extends AbstractTableModel {
            private AbstractHeaderFooterTableModel abstractHeaderFooterTableModel;
            public ColumnFooterTableModel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
                super();
                this.abstractHeaderFooterTableModel = abstractHeaderFooterTableModel;
            public String getColumnName(int column) {
                return "";
            public int getColumnCount() {
                return abstractHeaderFooterTableModel.getColumnCount();
            public int getRowCount() {
                return abstractHeaderFooterTableModel.getFooterRowCount();
            public Object getValueAt(int rowIndex, int columnIndex) {
                return abstractHeaderFooterTableModel.getFooterValueAt(rowIndex, columnIndex);
        static class SyncColumnWidths implements TableColumnModelListener {
            private final JTable centerTable;
            private final JTable footerTable;
            public SyncColumnWidths(JTable centerTable,
                                    JTable footerTable) {
                this.centerTable = centerTable;
                this.footerTable = footerTable;
            // Change the column widths of the footer table when the column widths
            // of the center table change.
            public void columnMarginChanged(ChangeEvent e) {
                TableColumnModel centerTableColumnModel = centerTable.getColumnModel();
                TableColumnModel footerTableColumnModel = footerTable.getColumnModel();
                for (int i = 0; i < centerTableColumnModel.getColumnCount(); i++) {
                    int width = centerTableColumnModel.getColumn(i).getPreferredWidth();
                    footerTableColumnModel.getColumn(i).setPreferredWidth(width);
            public void columnSelectionChanged(ListSelectionEvent e) {
            public void columnAdded(TableColumnModelEvent e) {
            public void columnMoved(TableColumnModelEvent e) {
            public void columnRemoved(TableColumnModelEvent e) {
        private JTable centerTable;
        private JTable rowHeaderTable;
        private JTable columnFooterTable;
        public HeaderFooterTablePanel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
            super();
            // Create the center, rowHeader and columnFooter tables
            centerTable = new JTable(abstractHeaderFooterTableModel);
            rowHeaderTable = new JTable(new RowHeaderTableModel(abstractHeaderFooterTableModel));
            columnFooterTable = new JTable(new ColumnFooterTableModel(abstractHeaderFooterTableModel));
            // Disabled column re-ordering
            centerTable.getTableHeader().setReorderingAllowed(false);
            columnFooterTable.getTableHeader().setReorderingAllowed(false);
            // We are using scroll panes, so no auto resizing of table.
            centerTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            columnFooterTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            // Only allow the user to change the column widths from the center table, not the
            // columnFooter.
            columnFooterTable.getTableHeader().setResizingAllowed(false);
            // When the center table column widths change, change those in the columnFooter table.
            SyncColumnWidths syncColumnWidths = new SyncColumnWidths(centerTable, columnFooterTable);
            centerTable.getColumnModel().addColumnModelListener(syncColumnWidths);
            // Set the width of the row header before adding it to the center scroll pane
            // as the row header.
            Dimension rowHeaderSize = rowHeaderTable.getPreferredScrollableViewportSize();
            rowHeaderSize.width = rowHeaderTable.getPreferredSize().width;
            rowHeaderTable.setPreferredScrollableViewportSize(rowHeaderSize);
            rowHeaderTable.setRowHeight(centerTable.getRowHeight());
            // Create the center scroll pane and set the row header table as the row header.
            final JScrollPane centerScrollPane = new JScrollPane(centerTable);
            centerScrollPane.setRowHeaderView(rowHeaderTable);
            // We will handle horizontal scrolling with our own scrollbar.
            centerScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            // Now we create the panel to hold the columnFooter table and the horizontal
            // scrollbar.
            final JPanel columnFooterPanel = new JPanel(new BorderLayout());
            // Keep the space below the row header empty.
            Component westGlue = Box.createHorizontalStrut(rowHeaderSize.width);
            // Set height of the columnFooterTable before adding it to the columnFooter scroll pane
            // as the view.
            Dimension columnFooterSize = columnFooterTable.getPreferredScrollableViewportSize();
            columnFooterSize.height = columnFooterTable.getPreferredSize().height;
            columnFooterTable.setPreferredScrollableViewportSize(columnFooterSize);
            columnFooterTable.setRowHeight(centerTable.getRowHeight());
            // The scroll pane which holds the columnFooterTable.
            final JScrollPane columnFooterScrollPane = new JScrollPane(columnFooterTable);
            // We do our own horizontal scrolling and the columnFooterScrollPane never scrolls vertically.
            columnFooterScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            columnFooterScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
            // The scrollbar we use to scroll horizontally.
            final JScrollBar horizontalScrollBar = new JScrollBar(JScrollBar.HORIZONTAL);
            // Sync up all the scrolling. See the method for details.
            syncScrolling(centerScrollPane, horizontalScrollBar, columnFooterScrollPane);
            // Keep the space below the vertical scrollbar empty.
            final JScrollBar verticalScrollBar = centerScrollPane.getVerticalScrollBar();
            int verticalScrollBarWidth = verticalScrollBar.getPreferredSize().width;
            final Component eastGlue = Box.createHorizontalStrut(verticalScrollBarWidth);
            // Set the center viewport size to match to table size
            Dimension centerTablePreferredsize = centerTable.getPreferredSize();
            centerTable.setPreferredScrollableViewportSize(centerTablePreferredsize);
            centerScrollPane.getViewport().setSize(centerTablePreferredsize);
            // The panel that holds the columnFooterTable and the horizontal scrollbar below it.
            final JPanel footerPanel = new JPanel(new BorderLayout());
            footerPanel.add("North", columnFooterScrollPane);
            footerPanel.add("South", horizontalScrollBar);
            footerPanel.setMinimumSize(footerPanel.getPreferredSize());
            // Assemble our columnFooterPanel.
            columnFooterPanel.add("West", westGlue);
            columnFooterPanel.add("Center", footerPanel);
            columnFooterPanel.add("East", eastGlue);
            // This keeps the columnFooterPanel at its minimum height
            JPanel northPanel = new JPanel(new BorderLayout());
            northPanel.add("North", columnFooterPanel);
            // Assemble the center scroll pane, below it the panel containing the column
            // footer panel, and then vertical glue to eat up any available vertical space.
            Box box = Box.createVerticalBox();
            box.add(centerScrollPane);
            box.add(northPanel);
            box.add(Box.createVerticalGlue());
            // Hide/show the eastGlue and the horizontalScrollBar, and recalculate the
            // minimum size of the footerPanel in response to size and visibility changes.
            syncScrollBarVisibility(centerScrollPane, eastGlue, horizontalScrollBar, footerPanel);
            setLayout(new BorderLayout());
            add("Center", box);
        private void syncScrollBarVisibility(final JScrollPane centerScrollPane,
                                             final Component eastGlue,
                                             final JScrollBar horizontalScrollBar,
                                             final JPanel footerPanel) {
            // Hide/show the eastGlue accoring to whether or not the vertical scrollbar
            // is visible.
            centerScrollPane.getVerticalScrollBar().addComponentListener(new ComponentListener() {
                private void checkVisibleStatus(boolean b) {
                    if (eastGlue.isVisible() != b) {
                        eastGlue.setVisible(b);
                public void componentHidden(ComponentEvent e) {
                    checkVisibleStatus(false);
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                    checkVisibleStatus(true);
            // Hide/show the horizontal scrollbar according to whether or not it's needed.
            centerScrollPane.getViewport().addComponentListener(new ComponentListener() {
                public void componentHidden(ComponentEvent e) {
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                    int centerScrollPaneWidth = centerScrollPane.getViewport().getSize().width;
                    int centerTablePreferredWidth = centerTable.getPreferredSize().width;
                    if (centerScrollPaneWidth >= centerTablePreferredWidth) {
                        horizontalScrollBar.setVisible(false);
                    } else {
                        horizontalScrollBar.setVisible(true);
                public void componentShown(ComponentEvent e) {
            // Set the minimum size of the footerPanel according to whether or not the
            // horizontalScrollBar is visible.
            horizontalScrollBar.addComponentListener(new ComponentListener() {
                public void componentHidden(ComponentEvent e) {
                    footerPanel.setMinimumSize(footerPanel.getPreferredSize());
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                    footerPanel.setMinimumSize(footerPanel.getPreferredSize());
        private void syncScrolling(final JScrollPane centerScrollPane,
                                   final JScrollBar columnFooterScrollBar,
                                   final JScrollPane columnFooterScrollPane) {
            // When the view of the center scroll pane changes position,
            // change the value of the columnFooterScrollBar to match.
            centerScrollPane.getViewport().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    int x = ((Component) e.getSource()).getLocation().x * -1;
                    JViewport viewport = (JViewport) e.getSource();
                    int extentWidth = viewport.getExtentSize().width;
                    int viewWidth = viewport.getViewSize().width;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().x, viewWidth - extentWidth));
                    columnFooterScrollBar.setValues(value, extentWidth, 0, viewWidth);
            // When the columnFooterScrollBar (horizontal scroll bar) value changes,
            // change the position of the view in the center scroll pane to match.
            columnFooterScrollBar.addAdjustmentListener(new AdjustmentListener() {
                public void adjustmentValueChanged(AdjustmentEvent e) {
                    JViewport viewport = centerScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
                    viewport = columnFooterScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
            // When the view of the row header changes position,
            // change the value of the vertical scrollbar of the center
            // scroll pane to match.
            centerScrollPane.getRowHeader().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    JViewport viewport = (JViewport) e.getSource();
                    int extentHeight = viewport.getExtentSize().height;
                    int viewHeight = viewport.getViewSize().height;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().y, viewHeight - extentHeight));
                    centerScrollPane.getVerticalScrollBar().setValues(value, extentHeight, 0, viewHeight);
        public JTable getCenterTable() {
            return centerTable;
        public JTable getRowHeaderTable() {
            return rowHeaderTable;
        private JTable getColumnFooterTable() {
            return columnFooterTable;
        public static void main(String[] args) {
            AbstractHeaderFooterTableModel tableModel = new AbstractHeaderFooterTableModel() {
                public int getRowCount() {
                    return 25;
                public int getColumnCount() {
                    return 10;
                public Object getValueAt(int rowIndex, int columnIndex) {
                    return "Cell " + rowIndex + ":" + columnIndex;
                public String getColumnName(int column) {
                    return "Column #" + column;
                public Object getRowHeaderValueAt(int rowIndex, int columnIndex) {
                    return "Header " + rowIndex + ":" + columnIndex;
                public int getRowHeaderColumnCount() {
                    return 2;
                public Object getFooterValueAt(int rowIndex, int columnIndex) {
                    return "Footer " + rowIndex + ":" + columnIndex;
                public int getFooterRowCount() {
                    return 3;
            JFrame frame = new JFrame();
            HeaderFooterTablePanel tablePanel = new HeaderFooterTablePanel(tableModel);
            // Render the cells in the row header and footer like the center table column headers.
            TableCellRenderer columnRenderer = tablePanel.getCenterTable().getTableHeader().getDefaultRenderer();
            tablePanel.getRowHeaderTable().setDefaultRenderer(Object.class, columnRenderer);
            tablePanel.getColumnFooterTable().setDefaultRenderer(Object.class, columnRenderer);
            frame.getContentPane().add("Center", tablePanel);
            frame.setSize(300, 300);
            frame.setLocation(300, 200);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

    i was wondering why this topic has NO replies! and then i realized that there is NO question??? so do you have a question, or are you just starting a new thread cuz you feel like it???
    just trying to work out why you didnt post this is the old thread???
    http://forum.java.sun.com/thread.jspa?threadID=5130131&messageID=9466400#9466400

Maybe you are looking for

  • Can you come out with iOS 7 for the IPod 4th gen

    If you can make iOS for I phone because iOS7 is set for The graphic area you can make it for the iPod 4 and under

  • KM Document iView for file download - filename

    Hello, we have a hyperlink on our portal logon page for downloading a word document. This link points to a KM document iView. The iView has the property "Path to Document" set to the document in the KM. By clicking the link, a file download pop-up ap

  • Vendor Quality Certificate - upload to R/3

    Dear Guys, Here is my Quick Question The scenario is like this, the client Receive the Quality certificate from the vendor , for the purchased materials as Hard copy The client wants to scan the Vendor Quality certificate and upload to sap shall i de

  • How to de-activate lightroom

    I have installed Lightroom in Windows 10 Technical Preview. It works very well but I will need to re-install  Lightroom in Windows 10 proper when it comes out and have no more activations. I therefore would like to know how to get an activation back

  • Final cut pro : Export failed - File too large

    Hello I'm trying to export a project in FCP 10.0.5. It seems to work but when it reaches 45% the export stops and here's the message : Export failed : file too large ... Can anyone help me please? Thank you, Fred