Space in table cell content

Hi,
I want to add some space before and after the table cell content. I am using setIntercellSpacing() method to achieve that and I could get the required functionality. But its adding space in the Table Header also which looks odd. Is there any way to set the spacing only for the cell and not for the table header.
Let me know if anyone has solution for this.
Thanks and Regards,
R.Vishnu Varadhan.

I find this behaviour of setIntercellSpacing() very annoying, too. Why the hell did the Swing developers implement it that way?
Nevertheless, you can create the desired effect by writing a custom cell renderer, but that is if course more work than that single method call.

Similar Messages

  • Adjusting Space between table - cell border and cell content ?

    Hi all,
    Need a quick help.
    I am using a static table. By default, I have some space between the cell content and the text (yes, the cell margins).
    I wanted to reduce this space to '0'.
    Is there any option to adjust the cell margins? Thanks in advance !!
    1 more Q:-
    There are no options to merge 2 cells, are there ?
    Thanks,
    Navin.
    Edited by: 890074 on Mar 4, 2012 10:17 PM

    Hi Naveen,
    Until Documaker 11.5, there are no options to reduce the cell margin and no options to merge cells as well.
    Thanks.

  • SAP Portal development-Table Controls having link to table cell content

    Hello all,
    I am creating the SAP portal in which i am using Table controls to display the data. I want the function should be called whenever user clicks the table cell content. i.e. i want to create the function link to table cell.
    Please reply soon.
    Regards,
    Prashant

    Hi Prashant,
    You haven't mentioned if you are using Webdynpro or HTMLB JSPDynPages.
    If its the webdynpro, you can declare then and there itself that the content to the table column is a row my changing the property.
    If it is a HTMLB component TableVIew that you are trying to use, you can include a TableCellRenderer Class which renders the cells of the table at the runtime as links or buttons or whatever you want to put.
    So let me know, what exactly you are trying to use, then finding a solution will be more clear.
    regards,
    Sujana

  • Wrapping table cell contents

    Hi
    I have a requirement where i need to wrap my table cell contents.I have chekced all the properties of table but none serves my purpose.Kindly help in this direction.
    NWDS version : 7.3
    Server version : 7.3 SP02
    Thanks
    Monika

    Hi Monika
    Wrapping property is not available at table level.
    The individual columns header and content in the text views only you can wrap.
    If the table column cell editor is a Text View , then you can see the Wrapping property and you can change it to true for wrapping.. For column headers also you can set the property.
    Regards
    Venkata KALYAN

  • Grep style to remove space in table cells?

    CS5.5
    I am working on an annual report - lots of tables, and for some reason a space appears before the content of everty text cell. (Left-over from Excel).
    I have tried to define a Grep style to remove the space at first in every cell.
    Can you help me define a Grep style to prevent I am having pains in my arm?
    BR Nina Storm

    You can't use a GREP style to remove anything, but you could do this with a GREP search.
    If it's just one space, use this:
    Find ^
    (in the formula above, type a space after the ^)
    replace with nothing
    This will find any single space at the beginning of a paragraph and remove it.

  • Autofit column width to table cell content in Pages

    Hello,
    Would anyone know how to autofit the column width of a table cell in Pages '09?
    I have searched Pages Help to no avail.
    Thank you very much in advance.

    There is a checkbox in the table inspector to auto-resize to fit content. Unfortunately, that only seems to work with rows, not columns.

  • Images as table cell content

    Hi,
    we are using thumbnail images for representing some employee status in a table. Images are displayed successfully.
    Problem is the white space between two cells, we want to eliminate the space between two cells. I have tried cell width property but it doesn't help.
    Any other suggestions to achieve this.
    Thanks a lot.
    Rgds

    Hi Sharanya,
    I could not find property cell spacing and cell padding property for cell.
    I am on Nw04.
    Is there other way we can achieve this.
    Rgds

  • Eliminate extra space in table cell

    I cannot figure out what is causing the appearance of extra
    space beneath the thumbnail images on the following webpage (this
    space is in between the image and the cellborder):
    http://www.canchair.com/new_web_product_detail.asp?ProductID=499&ProductFamily=5&ProductFa milySub=
    OR THE RELEVANT CODE CAN BE VIEWED AS FOLLOWS:
    HTML CODE FOR THE TABLE CELL CONTAINING THE EXTRA SPACE:
    <a href= "javascript:;" class="small_img" >
    <td class="small_img" onmouseover="showBigImage(
    'imagescript.asp?path=<%= images("url_img")
    %>&width=250','<%= images("url_img") %>','<%=
    images("alt_img") %>' )"> <img
    src="imagescript.asp?path=<%= images("url_img")
    %>&amp;width=36" border="0" /> </td>
    </a>
    small_img STYLE SHEET CODE:
    .small_img {
    margin: 0;
    border: 1px solid #A5ACB2;
    cursor: hand;
    padding: 0;
    .small_img:hover td{
    margin: 0;
    border: 1px solid #000000;
    cursor: hand
    .small_img:hover{
    color: red; /* Dummy definition to overcome IE bug */
    }

    View the page in Firefox, view source, and Go To Line will do
    the trick (in
    Firefox).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "aonefun" <[email protected]> wrote in
    message
    news:gbp286$5vg$[email protected]..
    >I was asking how to know which line of my code the errors
    specified on
    >
    http://validator.w3.org/ are
    referring to. I assume the line numbering on
    > dw
    > would not correspond as a webpage strips the server side
    code.
    >

  • Space between table cells

    I created a form based on the reports region. Is there any way that I can make the space between form fields on different lines to close to each other - i.e. 0 width between form fields "vertically". I tried to put valign="top" in either reports region template and region html table cell attributes but nothing works. Any working solution?
    Thanks.
    Andy

    Andy,
    Are you using Firefox with the web developer toolbar? If so, there's a nifty feature that allows you to view the CSS that controls any part of the page by simply clicking on it. A new page will open in Firefox that shows you the CSS selectors/definitions that are relevant to the area you clicked. Most forms/report in ApEx are laid out with tables so it's likely to have something to do with padding or margins between rows.
    Earl

  • Expanding/Enhancing a table cell contents

    I have a search utility that shows my database query results in a read-only table.
    Say this table T has columns C1-C5 and rows R1-R5.
    Data returned in column C3 has a VARCHAR count between 2000-4000.
    Currently the table only displays somewhere in the region of 500 characters (on mouse hover) for this column, the page depends how far you can stretch the table column.
    My question is three part:
    - is there an ADF component that will allow me to copy the contents of a cell, for example, column C3 row R1.
    - is there an ADF component that will allow me to expand the cell(C3/R1) in a popup window? (And enable other cells in the C3 column to do the same)
    - is there an ADF component that will allow me to open the cell contents in a new window? or .txt (And enable other cells in the C3 column to do the same)
    Jdev Version (11.1.2.4)

    User, which jdev version do you use?
    All this can be done.
    1) Yes, but this depends on the use case (e.g. per drag & drop or copy & paste using the keyboard)
    2) Yes a popup which you e.g. show on hoover which shows all text or you click on the cell and open a popup
    3) Yes, if your table is in click to edit mode or you show a form with all attributes of the selected row in a new window (which allows you to layout the components better).
    Timo

  • Table Cell Contents Disappears Please HELP!!!!

    PROBLEM: I have a different tables within different table cells in the Master table. One table per Master cell. Once I click on a table cell (0,0) and click on another table cell (1,1) the cell (0,0) blanks out. Likewise with other cells so that if I've click on all the cells in the Master Table and then clicked somewhere else all cell contents have disappeared.
    QUESTION: Do I need to call some UI refresh procedure????? I have a cell renderer which returns the table for each Master's Cell.
    I don't if this is clear but please help!
    Thanks

    Hi,
    the problem is that the DefaultCellEditor can't handle tables.
    So you have to write your CellEditor, which returns another table as Editor.
    class YourTableCellRenderer implements  TableCellRenderer{
        private  JTable table = new JTable();
        public Component getTableCellRendererComponent(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row,
                                                       int column){
             // set Data and Layout
             return table;
    }then set the Editor to your MasterTable (master) with.
    master.setCellEditor(TableCellEditor anEditor) or
    master.setDefaultEditor(Class columnClass,
                                 TableCellEditor editor);Hope this Helps.
    Michael

  • Link to Table cell content...

    Hi,
    I am Prashant.i am developing SDAP Portal.In that,I am populating data to the .NET SAP NwtWieaver Table control dynamically.I am also adding LinkToAction control to the table cell.I want some action should be carried out on clicking on that link.For that i am using LeadSelect event.
    Actually it works fine when i am putting data at design time by editing rows.But it does not work when i gather data from at run time.When i gather data at run time and when i click on some link,all the table data disappears.
    I can not understand why this is happened?. What properties should i set for the same.If any one knows, Please help me.
    Regards,
    Prashant J.

    Soory it is not SDAP.It is SAP....

  • Can you double space a table of contents page?

    Sorry for this newbie question. I have searched help and the forum and I can't find an answer that helps me. I have a document that I'm working with and the table of contents if functional. However, I would like to doublespace the table of contents lines and I can't figure out how to do that. Would anyone have any suggestions? Thank You for your time!

    Select the TOC then Inspector > T tab > Text > Line , there is a small button to the right >Double
    Or in the Format bar > Line spacing button

  • Centering table cell content in panel grid

    How can I center the content of the cells in a table grid so it would end up something like this:
    <table>
    <tr>
    <td align="center">

    You can do that using stylesheet. You can look at the
    repeater demo example for ideas. The corresponding
    stylesheet class is components/web/stylesheet.css .
    Hope this helps.
    -JayashriI think we need more powerfull layout oriented components.
    XAML, XUL, ADF all of them have powerfull layout components library.
    Maybe it's time start working in this direction.
    I'm sure that JSF must provide in near future more powerfull layout related components library, no doubt here!
    After that it will be possible to remove from styles classes and jsp code everything that was used for layout.
    Layout components will take care about align components, preferred size and etc.
    We need minimize number of style classes.
    That possible if you will make them more universal.
    But no way to make universal style classes with layout related attributes inside them.
    Take a look on simple layout case:
    <s:row align="opposite" styleClass="footerPage">
         <h:outputText value="#{bundle.copyright}"/>
         <h:outputText value="#{bundle.terms}"/>
    </s:row>
    public class RowRenderer extends HtmlBasicRenderer {
    public RowRenderer() {
    super();
    public boolean getRendersChildren() {
    return true;
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("div", component);
    writeIdAttributeIfNecessary(context, writer, component);
    String styleClass = (String) component.getAttributes().get("styleClass");
    if (styleClass != null) {
    writer.writeAttribute("class", styleClass, "styleClass");
    Util.renderPassThruAttributes(writer, component);
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
    if (!component.isRendered())
    return;
    Iterator kids = null;
    String style = null;
    int i = 0;
    String align = (String) component.getAttributes().get("align");
    if (align == null) align = "start";
    if (null != (kids = getChildren(component))) {
    while (kids.hasNext()) {
    UIComponent child = (UIComponent) kids.next();
    if (!child.isRendered())continue;
    style = (String) child.getAttributes().get("style");
    style = (style != null) ? style + ";" : "";
    if ( (align == "start") || (align == "left"))
    style += "float: left;";
    else
    if ( (align == "end") || (align == "right"))
    style += "float: right;";
    else
    if (align == "opposite") {
    if ((i % 2) == 0)
    style += "float: left;";
    else
    style += "float: right;";
    child.getAttributes().put("style", style);
    encodeRecursive(context, child);
    i++;
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    if (context == null || component == null) {
    throw new NullPointerException(Util.getExceptionMessageString(
    Util.NULL_PARAMETERS_ERROR_MESSAGE_ID));
    if (!component.isRendered())
    return;
    ResponseWriter writer = context.getResponseWriter();
    writer.endElement("div");
    It's good idea in many layout situations to use tableless layout.
    Row component just simple demonstration how it work.
    There are some problems with implementation and using tableless layout
    but at least in some cases it's good choise.
    I'm ready to provide plenty suggestions in area of creating and using layout components.
    Just don't know if you have interest to discuss that matter.
    Vladimir

  • Table cell contents won't show

    I've added a simple sum formula but the result doesn't show. In fact the cell appears totally blank. This has happened in a couple of other cells where the number (single digit) won't show unless I double click and then don't move the cursor. I've checked formatting, altered the size and generally fiddled with all the format settings but can't get the formula result to show. Really appreciate some help.

    Thanks, I realise that. The problem was in a table in Pages but I know what you mean. I have since solved it though. The cell was too small to fit the result and therefore showed nothing. Enlarging the cell/table did the trick.

Maybe you are looking for

  • Retrofit between ECC 6.0 System and R/3 4.7?

    Is this possible? If I have ECC 6.0 as my Maintenance Landscape and 4.7 as my Implementation landscape? I thought it was however I am getting this error: The function is not available for this support package in target system Message no. /TMWFLOW/TRA

  • Coding in transformation routine

    Hi, As per the design there will be two DSO in the data transformtion layer. One is right optimized DSO (for correct data) and another with a ERROR DSO which will contain the erronious records. In the transformation routine if the check fails the rec

  • How do i see what is using space on startup disc

    I am trying to see how much space is being used on my computer in the different areas; documents, photos, videos, etc.  To see what i can delete to free space.  Is there some way to check this?

  • Group by field while selecting only highest rownum

    Need code to group by F1 but grab only the rownums with the greatest value. row number is not an actual field. sample table below and required query results below. RowNum     F1     F2 1     1     1 2     1     2 3     1     3 4     1     4 5     1  

  • Is My ExpressCard Slot Broken?

    Hi, I just purchased a Macbook Pro a week ago and also a V640 Verizon Data Card. I had never had a reason to use my ExpressCard slot in previous Powerbooks but I found that it's pretty simple. Push it in and it locks with a reassuring click, push aga