FF table row spacing and footer margins

Two things happen in FF only. 1) My table rows 1,3 & 5
are larger than they should be.
http://www.wholesalebingosupplies.com/family-gatherings.html
2) My footer margins are completely reduced.
I tried adding lines and paragraphs (which I don't like
doing) which worked but of course made IE6 and IE7 look awful
because of the additional spaces. I also tried different options
with my div tag but was not able to come up with a solution.
I eventually want to use .css and get rid of the tables but
for now, I don't have the confidence with my css skills.
Any advice is greatly appreciated.

andrewpndavies wrote:
Anyone know how to add a page break to a long table which spans several pages ?
No such a feature in Pages but it is the standard behaviour in Numbers so it may be a good soluce to move your document from Pages to Numbers as I often wrote (and often do).
Yvan KOENIG (from FRANCE mercredi 22 avril 2009 14:10:17)

Similar Messages

  • Read the table row data and dispaly it in the ME21n transaction

    Hi All,
    i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data  should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
    thanks,
    Rajeev.

    Hi rajeev bikkani ,
    you can use the events 'Double_click' in alv. below given the code, try out.
    class lcl_list_event_handler definition.
    PUBLIC SECTION.
    methods on_double_click
          for event double_click of cl_gui_alv_grid
            importing e_row .
    endclass.
    class lcl_list_event_handler implementation.
    method on_double_click.
    call transaction 'ME21N'.
    ENDMETHOD.
    ENDCLASS.
    before executing the method SALV.
    write code    
      set handler obj2(reference for lcl_list_event_handler) ->on_double_click
                    for obj1(referenece for cl_gui_alv_grid).

  • Header and Footer Margins...

    I don't think anybody has gotten headers and footers 'right' yet. They're painful.
    Anyway, I've got a document with a footer: it's got some text and page numbers. I can see in the Inspector>Document that the margins for Headers and Footers are limited to the space from the top of the page (Header) and the space from the bottom of the page (footer).
    The width of my document is 8.5" standard. Yet, my body text is sort of in the middle and is 6" wide. My document margin is at 1" from the right, so the text hits the 7.5" mark of the right-side of the page. I'm wondering how to get the footer over to the right past the 7.5" mark to the 8" mark. The reason I want to nudge it half an inch over to the right is that I've got some graphics that push out to the 8" mark. In my document, the widest graphics are still half an inch from either side. Thus, I've got half an inch padding on either side.
    Doesn't seem to be anyway to format the margin of a footer/header in terms of the space of the text from the right side of the document.
    I know there's 2 things I could do, but wondering about margins here for footers and headers.
    Solution 1:
    Shrink graphics down to not go past the 7.5" mark.
    Solution 2:
    Use text boxes for the footers and place exactly where I want. I can make 1 textbox and place it exactly on the page... where I want it. Then, I can copy that, and, paste it onto each page... it'll paste it in the exact spot where it was on the page that I copied it from, thereby negating the need to position each one.

    Set your document margins in the Document Inspector to what you want for your header and footer, then set your text margins in the ruler by dragging the blue triangle.
    Walt

  • Word Header and footer margin is reset to 0 when exported from SSRS 2008 R2

    Hi,
    I am using SSRS 2008 R2 to create reports. While exporting to Word format, the Header and the Footer margins are getting reset to Zero  and the user has to manually adjust the margins to get the right print. (While Printing, some portion of the
    Header is getting chopped off.). Export to PDF and Excel is fine.
    Please help and let me know if there is a solution to this ? or any service packa availalbe for SSRS 2008 R2 , that can fix this issue.
    Thanks,Poonam

    Hi Poonam,
    Word and SQL Server Reporting Services (SSRS) treat page headers and footers differently. Word actually positions them inside the page margins, whereas SSRS positions them inside the area that the margins surround. As a result, in Word, the page margins
    do not control the distance between the top edge of the page and that of the page header.
    So when exporting report to word, the page header begin from the top edge. However, in Word there are white spaces preserved from the top edge by default. So some portion of the Header is getting chopped off when printing.
    In this case, one way to avoid this issue is using the “From edge” property in Word. Click “Page Setup” in the Print window and then click “Layout” tab, then set the “From edge” property value. The screenshot below is for your reference:
    Another way to avoid this issue is keep some white spaces from the top edge in SSRS. The screenshot below is for your reference:
    If you have any questions, please feel free to ask.. We appreciate your comprehension.
    Regards,
    Charlie Liao

  • Page breaks in a table and table row spacing

    Hello -
    Anyone know how to add a page break to a long table which spans several pages ?
    Also - there seems to be padding added to my text both before and after - how do I get rid of this ?
    Any help much appreciated.
    Andrew

    andrewpndavies wrote:
    Anyone know how to add a page break to a long table which spans several pages ?
    No such a feature in Pages but it is the standard behaviour in Numbers so it may be a good soluce to move your document from Pages to Numbers as I often wrote (and often do).
    Yvan KOENIG (from FRANCE mercredi 22 avril 2009 14:10:17)

  • Using java to get table rows (jsp and html)?

    I was wondering if there is any way to count rows from a html-table?
    I want to know the number of rows created, just after it has been made. So that I can use this number 'for' creating my next table.
    Have got this to work by using javascript code:
              function test2()
                   if (!document.getElementsByTagName || !document.createTextNode) return;
              rows = document.getElementById('spesifikasjonsTabell').getElementsByTagName('tbody')[0].getElementsByTagName('tr');
              antallRader = rows.length;               
                   document.test.hoyde.value = antallRader;
                   return antallRader;
    , but this only generates on the clientside; which is not what I want.
    I got a webpage, that uses html and jsp. After the generation of a table - which has an unknown numbers of rows, because of several underlying tests - I'd like to retrive how many rows that was generated before I proceed with my next table.
    Is there a good workaround to this problem?
    P�l
    Message was edited by:
    paulOlsen

    Hey there, and thanks for fast response.
    Allready tried that code earlier. Works great on displaying the var 'row'-s inside, for instance, a <input type="text" or as a pup-up on a alert();
    The javascript works on the client-side, so I have no way of using that code for further testing in codes for my viewing; at least I can't think of any.
    The thing is that:
    1) I can't use an 'onClick', since the next table should be generated without any human interference.
    2) I used the same code to get the number of rows when I sat the table inside a form. But then, when calling the javascript function, I have no way to retrieve the linenumbers for use to test ON the next table.
    Since I'd have to use, say a field name <input type hidden="rows".., a method to call this very "rows" in jsp:
    <table>
    <!-- lots of rows -->
    </table>
    <%
    int numberOfRows = request.Parameter("rowcount") or what ever; here is where I need the 'number of rows'
    // let's just say int here though a String
    if(numberOfRows < 35)
    %>
    <table>
    <!-- Im including this table if the test above occurs -->
    </table>
    <%
    else
    %>
    <!-- if this occurs, then I'd like to do something else -->
    <%
    %>
    Any ideas?
    P�l
    Message was edited by:
    paulOlsen
    null

  • Quikly table row update and freeze ui

    Hello forum,
    I'm trying update tableview by observablelist with 500 ms frequency. Using this interval the UI freeze.
    Can u help me pls?

    Sorry for late...
    this is the code I'm using:
    public class AlarmTableFactory {
        private final TableView<Alarm> table;
        class DataTableCell<T> extends TableCell<Alarm, T> {
            @Override
            protected void updateItem(T t, boolean empty) {
                super.updateItem(t, empty);
                if (!empty && getTableRow() != null) {
                    int row = this.getTableRow().getIndex();
                    Alarm alarm = getTableView().getItems().get(row);
                    setStyle(alarm.getlevel().getColor());
                    setTextFill(alarm.getlevel().getTextFillColor());
                    setText(String.valueOf(t));
        public AlarmTableFactory() {
            table = new TableView<Alarm>();
        public TableView<Alarm> createTable() {
            final Field[] fields = Alarm.class.getDeclaredFields();
            for (int i = 0; i < fields.length; i++) {
                final int count = i;
                final TableColumn<Alarm, String> col = new TableColumn(fields.getName().toUpperCase());
    col.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Alarm, String>, ObservableValue<String>>() {
    private ReadOnlyObjectWrapper ro;
    @Override
    public ObservableValue<String> call(TableColumn.CellDataFeatures<Alarm, String> cellDataFeature) {
    try {
    Alarm alarm = cellDataFeature.getValue();
    Method method = alarm.getClass().getMethod("get" + fields[count].getName(), null);
    try {
    ro = new ReadOnlyObjectWrapper((String) method.invoke(alarm, new Object[0]));
    } catch (ClassCastException ex) {
    // col.setVisible(false);
    catch (IllegalAccessException ex) {
    Logger.getLogger(AlarmTableFactory.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IllegalArgumentException ex) {
    Logger.getLogger(AlarmTableFactory.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InvocationTargetException ex) {
    Logger.getLogger(AlarmTableFactory.class.getName()).log(Level.SEVERE, null, ex);
    } catch (NoSuchMethodException ex) {
    Logger.getLogger(AlarmTableFactory.class.getName()).log(Level.SEVERE, null, ex);
    } catch (SecurityException ex) {
    Logger.getLogger(AlarmTableFactory.class.getName()).log(Level.SEVERE, null, ex);
    return ro;
    col.setCellFactory(new Callback<TableColumn<Alarm, String>, TableCell<Alarm, String>>() {
    @Override
    public TableCell<Alarm, String> call(TableColumn<Alarm, String> arg0) {
    return new DataTableCell();
    table.getColumns().add(col);
    table.setCache(false);
    return table;
    And this other code for update table with listenerpublic class AlarmTableController implements MapMarkerAlarmListener {
    private final TableView<Alarm> table;
    public AlarmTableController(TableView<Alarm> table) {
    this.table = table;
    @Override
    public void mapMarkerAlarmed(ALARM_LEVEL alarmLevel, MapMarker marker) {
    final ObservableList<Alarm> row = FXCollections.observableArrayList();
    Alarm alarm = new Alarm("", "---", "", "");
    row.addAll(alarm);
    table.getItems().addAll(row);
    alarm = null;
    Thanks in advanced,
    palban                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Display the background of table row alternatively and hiding cell border

    Hi all,
    I am trying to display the background of the table using different color alternative and at same time I need to hide the border of all cells.
    What I found in <af:table> is using bandingInterval="1" banding="row", but how can I set the background color? And how to hide the cell border?
    Or if there is a thing like row index so that I can mod it like rowIndex%2==0 in every column to determine the inlineStyle?
    Thanks.
    Shawn

    <af:table value="..." var="row" varStatus="status">
      <af:column inlineStyle="#{status.index % 2 > 0.5 ? 'border:none;' : ''}">
      </af:column>
    </af:table>For some reason, EL operation always seems to return a double, so the condition has to be defined with that in mind.
    Regards,
    ~ Simon

  • How to retrieve table rows data and add into DB

    Hi All,
    I'm a beginner in JAVAFX, I have developed a table and adding the data into the table in multiple rows. on button click I would like these rows to be added into DB.
    Please could anyone help on this. I'm copy the code for reference.
    CODE:
    import javafx.ext.swing.SwingComponent;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    package class TableColumn{
    public var text: String;
    package class TableCell{
    public var text: String;
    public var id;
    public var str:String;
    public var str1:String[];
    public var num:Number;
    package class TableRow{
    public var cells: TableCell[];
    package class SwingTable extends SwingComponent{
    var table: JTable;
    var model:DefaultTableModel;
    public var selection: Integer;
    public var columns: TableColumn[] on replace{
    model = new DefaultTableModel(for(column in columns) column.text, 0);
    table.setModel(model);
    public var rows: TableRow[] on replace oldvalue[lo..hi] = newVals{
    for(index in [hi..lo step -1]){
    model.removeRow(index);
    for(row in newVals){
    model.addRow(for(cell in row.cells) cell.text);
    public override function createJComponent(){
    table = new JTable();
    model = table.getModel() as DefaultTableModel;
    var selectionModel = table.getSelectionModel();
    selectionModel.addListSelectionListener(
    ListSelectionListener{
    public override function valueChanged(e: ListSelectionEvent ) {
    selection = table.getSelectedRow();
    return new JScrollPane(table);
    }

    Instead of using a combo box, using a text ring makes it much easier to disable items in the list. Here is a vi that will do what you want. Also you can delete the last element in the table and make it enabled in the text ring for selecting again.
    - tbob
    Inventor of the WORM Global
    Attachments:
    test_table[1].vi ‏75 KB

  • InDesign CS6 ePub Export : Tables with header and footer in HTML

    Hey there,
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    Or is it only possible to steer this via the CSS-Classnames which can be given in the tableformats?
    Generally I think it would be better if the user had the chance to map other exporttags to its elements than just p, em, strong, h1-h6.
    it would be useful to also put in other elements by hand.
    Best regrads.

    Magnolee2 wrote:
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    By "also", do you mean the behavior is changed with respect to CS5/CS5.5? In those, thead and tfoot are created correctly. (Although, quite disconcerting, in the order "thead / tfoot / tbody". ePub renderers based on Webkit display them correctly nevertheless, but others do not. An extremely annoying free interpretation of the W3C rules.)

  • 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

  • Header and Footer in Table

    Hi,
    Invoice Smartforms:
    I create main window with an table with header and footer.
    In this table they are a loop to the different billing item.
    When they are lot of billing item, the table continue in the next page.
    The Header of the table is displaying very well. But the Footer don't want display in each next page. He display the Footer just in the last page or i need have footer in each next page (for the total price of Billing item in each page ).$
    I have test each evens option and condition in footer but i don't found why he don't want display in each page.
    I have insert a logic program (breakpoint) to view if he pass, and yes he pass in each page in the footer.
    Thanks.

    Hi,
    Create a folder within the main window as footer .
    So only after the details of main window body area is displayed it will show the footer making it appear only in the last page
    Regards,
    Nisrin.

  • Header and Footer Print Margins

    Is it possible to increase header and footer margins slightly in Safari 4.0.4? My printer cuts off about half of the header type at the default margin values for US Letter.
    Custom page sizes with larger margins and scaling down do affect the printed contents of a page, but not the headers and footers.
    Pages opened in Preview from the Print dialog and then printed from there, all at default US Letter, are resized and do not cut off the header type. But only by doubling the size of the default margins, reducing the pages, and requiring two steps to simply print.
    Any suggestions sure are appreciated.

    Im having the exact same issue. The **** headers and footer are always getting cut off. Anyone with more practical advice would be much appreciated. This is driving me nuts.........

  • Framemaker10: can't cut and paste tables, rows, or columns

    When I select a table row, copy, and then try to paste it as a new row, only text pastes in. When I Edit>Paste Special, the only options provided are Text and Unicode Text.
    I used to be able to cut and paste rows but that is no longer an option. Has anyone experienced this? Know a fix?
    Editing my maker.ini files does not fix it.

    Exactly how are you attempting to copy/paste?
    For a whole table, I select the marker, copy, paste wherever.
    For a row, I'm able to position my cursor in a row, highlight the row, then paste either at the end of that table or separately.
    Haven't tried columns, but they probably work the same way.

  • Header and Footer in eText outbount Template

    Output generated with etext template needs Header and Footer margins fixed in Oracle Payments of R12 which has multiple invoices with more than 1 page.
    The template was designed with 60 lines per page, when generating the output say for example 100 invoices payment, the header(7 lines) and
    footer(3 lines) margins must be fixed and remaining 50 lines must print the
    invoices details and continue printing in next page leaving the header and
    footer margins which were fixed. That is between the header and footer margins
    the invoice details has to be printed.
    My query is how to fix the Header and Footer margins in etext outbound template?
    If anyone has solution pls. send me that.
    Appreciate your help in advance.

    hi..
    chk this presentation...
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt#352,3,Why NW 2004s?
    http://www.sap-hefte.de/download/dateien/1090/086_leseprobe.pdf'
    hope this helps...

Maybe you are looking for

  • How do I Change email on iCloud account?

    How do I change the email on my iCloud account?

  • Creating mdf file from a database project in Visual Studio for Web

    I am very new to database programming in Visual Studio and SQL Server Express LocalDB. I went through a walk through of setting up a database project (using visual studio express 2013 for web and SQL Server Express LocalDB), adding tables and enterin

  • Uploading iphoto book

    G4   Mac OS X (10.3.9)   I tried today to upload my first ibook. It contained 48 pages of photos most of them 3-5 MB. As it loaded it said it was loading a 7.8 MB total. I canceled the order because it means there is not enough resoluction. What am I

  • Whre does oracle cache and temp files are located?

    Hi thank you for reading my post Please do not shoot me if i have misconception. I come from netbeans world and for netbeans there was some folder that we could delete to make netbeans cache fresh (so more speed). for Jdeveloper i can not find such f

  • Has anyone installed CM SDK into 9iAS rel2 90201 middle tier?

    Hi all, I have to install CM SDK into 9iAS rel2 90201 on solaris. We have a functioning environment (middle tier and infrastructure on the same machine). Has anyone done this? Any problems? Gotchas? Thanks in advance! Tracie