Table cell selection border

hi,
how can you find out the default color of the table cell renderer border?
when you select a cell in a JTable, there's (by default) a thin border drawn around it. since i use my own renderer for some columns, i need to find out the color of this border (it is differnt for different look & feels).
thanksout the default

you were right. thank you.
just one more thing: where can i find the names of all those properties that the UIManager uses? like the one you used "Table.focusCellHighlightBorder"...

Similar Messages

  • Remove Cell Selection Border in JTable

    Hi
    I have multiple columns in JTable populated with data. When the row is selected, the row changes colour. It also places a border around the cell that is selected within the row.
    Is there some way to remove this border?
    Any help would be appreciated.
    Thanks
    Gregg

    Hi,
    you need a different tableCellRenderer. Read:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#custom
    There are also code examples.
    Phil

  • Right click table cell selection

    I'm making a GUI interface including a table. What I'd like to implement is ability to right click on the cell and open the options selection, similar as to when right click the icon on the desktop. Any ideas ?

    You will need to create the component that will show your options and then add a MouseListener to your table that detects the mouse event and shows your options.
    A good place to start would be to have a look at this link: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    And here: http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html

  • Large Table Cell Selection (CS6)

    Hi
    I've a table 37 rows x 10 columns (no header or footer rows). Even without any formatting or content there seems a random limit on how many cells I can select at any one time. I seem to be able to select the top third of the rows. Below this it's very random what it will allow me to select.
    It won't allow me to merge rows together that straddle this two thirds point either.
    Is the table simply too big for Indesign?
    Thank you.
    Additional information: If I attempt to add rows (in the dialoue in the toolbar) it adds tham at the same point where it limits me to either selecting the cells above only... or below only.

    I don't do a lot of work with tables, but I've very successfully selected large tables over multiple pages in the past. One problem you might be encountering is that ID will not split a row across a frame or column break, so if there is a lot of data in a cell that might be a factor in your merge problem.

  • What is the trick to selecting table cells?

    I have a table whose construction and styling is underway; it is very hit or miss to select all or part of that table. Can anyone suggest a trick to make table cel selection more certain?
    Sometimes I get the little fat arrow and sometimes I don't..
    thank you!

    If on windows, use the "esc" button to select the cell or the text. If you select a cell, use the arrow keys to select more cells. Whole table, select one cell then "Ctrl A" to select all the table. The fat arrow is the same as the one in Word, it's sometimes driving me crazy too.

  • How to restrict the cell selection in JTable based on cell contents...

    Hi all,
    I have some problem related to table cell selection.
    I have a table that represets the calendar of some month and year.
    I have the restriction that at one time only one cell could be selected.
    Now i want the cell seletion like this,
    I want only those dates to be selected if that date is after 'today'.
    that is I want to restrict the selection of previous dates.
    how can i do this.
    I have overridden the table methods like this, still no use.
    table = new JTable(model) {
    setOpaque(false);
    setSurrendersFocusOnKeystroke(false);
    setRowHeight(20);
    JTableHeader header = getTableHeader();
    header.setOpaque(false);
    getTableHeader().setReorderingAllowed(false);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    getTableHeader().setResizingAllowed(false);
    setCellSelectionEnabled(true);
    setFocusable(true);
    setBackground(new Color(247, 251, 255));
    setFont(newFont);
    public boolean isCellEditable(int row, int col) {
    return false;
    public boolean isCellSelected(int row, int col) {
    int r = getSelectedRow();
    int c = getSelectedColumn();
    String val = (String)getValueAt(r,c);
    Calendar cal = Calendar.getInstance();
    cal.set(currentYear+1900, month,Integer.parseInt(val));
    Date d = cal.getTime();
    Date currentDate = new Date();
    if (d.before(currentDate)) {
         return false;
    } else {
         return true;
    Someone please help...
    -Soni

    Try overriding the changeSelection(....) method of JTable.
    public void changeSelection(int row, int column, boolean toggle, boolean extend)
         if (d.after(currentDate)
              super.changeSelection(row, column, toggle, extend);
    }

  • How to paste tabbed data directly into FM7 table cells?

    <<<<on edit.... changed FM8 to FM7... I have FM7, not FM8>>>
    Hello
    I'm working on a documentation job that requires a pasting external data into existing table cells in FM7.
    I have tried several things but I can't find a way to paste the data directly into the table cells.  The source data can be delimited text, or spreadsheet cells. Neither can be pasted into an existing table.   The only way I can make this work is to first paste it into FM as text, then convert it to another table, and then copy/paste from that table into the existing one.  This is a lot of extra work and it seems there should be a way to paste external data directly across table cells.   I also tried "paste special" but that is not an option when I have table cells selected.
    Any ideas???
    It would be much appreciated!
    Thanks
    Gary Beckwith

    Gary, just had a thought -- I've worked on several projects where I used variables in tables that might work better for you.
    Basically the idea is to pre-populate the tables in your chapter with variables in the cells, and then import a minimalist MIF file that only contains the variable definitions for the pre-existing variables.  The minimalist MIF file can be made quite easily from a database or from an Excel CSV or TSV export by using various scripting utilities to convert comma-delimited text into the MIF syntax.
    I've created chapters that had hundreds of thousands of cells with variables in them, and updating the variables is incredibly quick.
    The best way to approach the variable naming is to come up with a convention that is easy to apply, I found .r1c1 etc to be a good starting point (the period so that the variables all sort in the same place in FM, the lower-case letters to make the variable's name as horizontally short as possible.

  • Can't select table cell with big css table border

    Hi
    When I create a table with a border in css, bigger than 6px,
    I can't select a cell or even put text in it, other than in the
    code window. Can you explain or help ?

    Yeah? Sure .. I will .. thanks!
    Nancy
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:ea56v5$3gc$[email protected]..
    > Try it Nancy. The OP is correct. It's a bug.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Nancy *Adobe Community Expert*"
    <[email protected]> wrote in message
    > news:ea56t5$3d3$[email protected]..
    >> Have you tried clicking within the area and then
    selecting the tag you
    >> want in the tag selector at the bottom of the
    document window?
    >>
    >>
    >> --
    >> Nancy Gill
    >> Adobe Community Expert
    >> BLOG:
    http://www.dmxwishes.com/blog.asp
    >> Author: Dreamweaver 8 e-book for the DMX Zone
    >> Co-Author: Dreamweaver MX: Instant Troubleshooter
    (August, 2003)
    >> Technical Editor: DMX 2004: The Complete Reference,
    DMX 2004: A
    >> Beginner's
    >> Guide, Mastering Macromedia Contribute
    >> Technical Reviewer: Dynamic Dreamweaver MX/DMX:
    Advanced PHP Web
    >> Development
    >>
    >>
    >> "mchb" <[email protected]> wrote
    in message
    >> news:ea56dd$2q2$[email protected]..
    >>> Hi
    >>>
    >>> When I create a table with a border in css,
    bigger than 6px, I can't
    >>> select a cell or even put text in it, other than
    in the code window. Can
    >>> you explain or help ?
    >>
    >>
    >
    >

  • Table cell with invisible border?

    Hi,
    I am trying to get table-cells with e.g. the right
    border missing (invisible). I am using the
    following XSL-FO to get this:
    <fo:table-cell border="solid black 1px" border-right-width="0px" border-collapse="collapse" number-columns-spanned="1">
    This works fine with four different
    XSL-FO engines, but XMLP shows
    the right border. Is there a work around
    or different approach to get invisible
    borders?
    Thank you,
    Heinz

    Hi Tim,
    I am using an RTF template, but was not able to get
    what I need with the standard functionality available
    in the RTF template. To work around this, I have
    imported a stylesheet to create the FO for the table
    directly. I try to append to this mail:
    - code in the RTF template
    - XML sample data
    - stylesheet imported from RTF template
    - the generated FO (small table, 4 colums, 7 rows, plus headers)
    I could also provide a stylesheet to create a complete,
    self containing FO and a correct PDF output, but may
    direct mail would be better for this.
    Thank you,
    Heinz
    TemplateBuilder.RTF:
    <?start:body?>
    <?import: file:///F:/OracleForum/create_a_table.xsl?>
    <?for-each:/Sample_Data/Measured_Values?>
    <?call@inlines: parameterGroupIndividual?><?end call?>
    <?end for-each?>
    <?end body?>
    XML Data:
    <?xml version="1.0" encoding="UTF-8"?>
    <Sample_Data>
         <Measured_Values>
              <Param_Group>GENERAL PARAMGROUP<Parameter Unit="umol/l">BILIU<Item Measured="6.8">1</Item>
                        <Item Measured="8.2">2</Item>
                        <Item Measured="-">3<Value_Note>
                                  <number>*</number>
                                  <text>A sample footnote</text>
                             </Value_Note>
                        </Item>
                        <Item Measured="62.1">4</Item>
                        <Item Measured="215.9">5</Item>
                        <Item Measured="12.7">6<Item_Note>
                                  <number>a</number>
                                  <text>An Item footnote</text>
                             </Item_Note>
                        </Item>
                        <Item Measured="3.6">7</Item>
                   </Parameter>
                   <Parameter Unit="per ul">ERYU<Item Measured="7.210">1</Item>
                        <Item Measured="45.000">2<Value_Note>
                                  <number>**</number>
                                  <text>Another sample footnote</text>
                             </Value_Note>
                        </Item>
                        <Item Measured="-">3</Item>
                        <Item Measured="1234.000">4</Item>
                        <Item Measured="326.580">5</Item>
                        <Item Measured="3.658">6</Item>
                        <Item Measured="123.540">7</Item>
                   </Parameter>
                   <Parameter Unit="per ul">LEUU<Item Measured="3.00">1</Item>
                        <Item Measured="3.00">2</Item>
                        <Item Measured="-">3</Item>
                        <Item Measured="354.39">4</Item>
                        <Item Measured="3254.24">5</Item>
                        <Item Measured="1256.32">6</Item>
                        <Item Measured="326.54">7</Item>
                   </Parameter>
              </Param_Group>
              <Param_Group>CRYSTALS<Parameter Unit="umol/l">GLUHI<Item Measured="22.00">1</Item>
                        <Item Measured="5.12">2</Item>
                        <Item Measured="-">3</Item>
                        <Item Measured="23.14">4<Value_Note>
                                  <number>***</number>
                                  <text>A last footnote</text>
                             </Value_Note>
                        </Item>
                        <Item Measured="576.26">5</Item>
                        <Item Measured="3621.00">6</Item>
                        <Item Measured="0.37">7</Item>
                   </Parameter>
              </Param_Group>
         </Measured_Values>
    </Sample_Data>
    create_a_table.xsl:
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
         <xsl:output method="xml" version="1.0" indent="no" encoding="ISO-8859-1"/>
         <!-- -->
         <xsl:template name="parameterGroupIndividual">
              <xsl:call-template name="doParameterGroupTables">
                   <xsl:with-param name="currentNodeSet" select="*"/>
                   <xsl:with-param name="currentNodeChilds" select="*[1]/Parameter"/>
              </xsl:call-template>
         </xsl:template>
         <!-- -->
         <xsl:template name="doParameterGroupTables">
              <xsl:param name="currentNodeSet"/>
              <xsl:param name="currentNodeChilds"/>
              <fo:table border="solid black 1px" table-layout="fixed">
                   <!-- The "Item" column -->
                   <fo:table-column column-width="2.5cm"/>
                   <!-- Create required columns 80% space for values, 20% space for footnotes -->
                   <xsl:call-template name="defineColumnsForNode">
                        <xsl:with-param name="nodeSet" select="$currentNodeSet"/>
                        <xsl:with-param name="nodeSetChilds" select="$currentNodeChilds"/>
                        <xsl:with-param name="colWidth" select="2.4"/>
                   </xsl:call-template>
                   <fo:table-header>
                        <fo:table-row>
                             <fo:table-cell border="solid black 0px" border-collapse="collapse" number-columns-spanned="1">
                                  <fo:block> </fo:block>
                             </fo:table-cell>
                             <xsl:call-template name="doParameterGroupHeaders">
                                  <xsl:with-param name="nodeSet" select="$currentNodeSet"/>
                             </xsl:call-template>
                        </fo:table-row>
                        <fo:table-row>
                             <fo:table-cell>
                                  <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">Item</fo:block>
                             </fo:table-cell>
                             <xsl:call-template name="defineSecondRowOfHeaders">
                                  <xsl:with-param name="nodeSet" select="$currentNodeSet"/>
                                  <xsl:with-param name="nodeSetChilds" select="$currentNodeChilds"/>
                             </xsl:call-template>
                        </fo:table-row>
                   </fo:table-header>
                   <fo:table-body>
                        <xsl:for-each-group select="*/Parameter/Item" group-by="normalize-space(text())">
                             <fo:table-row>
                                  <fo:table-cell border="solid black 2px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">
                                            <xsl:value-of select="./text()"/>
                                       </fo:block>
                                  </fo:table-cell>
                                  <xsl:for-each select="current-group()">
                                       <fo:table-cell border="solid black 2px" border-left-width="1px" border-collapse="collapse" number-columns-spanned="1">
                                            <fo:block font-family="sans-serif" font-size="9pt" text-align="right">
                                                 <xsl:value-of select="./@Measured"/>
                                            </fo:block>
                                       </fo:table-cell>
                                       <fo:table-cell border="solid black 2px" border-right-width="1px" border-collapse="collapse" number-columns-spanned="1">
                                            <fo:block font-family="sans-serif" font-size="9pt" text-align="left">
                                                 <xsl:value-of select="./Value_Note/number/text()"/>
                                            </fo:block>
                                       </fo:table-cell>
                                  </xsl:for-each>
                             </fo:table-row>
                        </xsl:for-each-group>
                   </fo:table-body>
              </fo:table>
         </xsl:template>
         <!-- -->
         <xsl:template name="doParameterGroupHeaders">
              <xsl:param name="nodeSet"/>
              <xsl:if test="$nodeSet[1]">
                   <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="{count($nodeSet[1]/Parameter)*2}">
                        <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
                             <xsl:value-of select="$nodeSet[1]/text()"/>
                        </fo:block>
                   </fo:table-cell>
                   <xsl:call-template name="doParameterGroupHeaders">
                        <xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
                   </xsl:call-template>
              </xsl:if>
         </xsl:template>
         <!-- -->
         <xsl:template name="defineSecondRowOfHeaders">
              <xsl:param name="nodeSet"/>
              <xsl:param name="nodeSetChilds"/>
              <xsl:choose>
                   <xsl:when test="$nodeSetChilds[1]">
                        <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                             <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
                                  <xsl:value-of select="$nodeSetChilds[1]/text()"/>
                             </fo:block>
                             <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">
                                  <xsl:value-of select="$nodeSetChilds[1]/@Unit"/>
                             </fo:block>
                        </fo:table-cell>
                        <xsl:call-template name="defineSecondRowOfHeaders">
                             <xsl:with-param name="nodeSet" select="$nodeSet"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:when test="$nodeSet[1]/following-sibling::*">
                        <xsl:call-template name="defineSecondRowOfHeaders">
                             <xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <!-- -->
         <xsl:template name="setValuesPGroupChilds">
              <xsl:param name="nodeSet"/>
              <xsl:param name="nodeSetChilds"/>
              <xsl:param name="ItemNumber"/>
              <xsl:choose>
                   <xsl:when test="$nodeSetChilds[1]/Item[text()=$ItemNumber]">
                        <fo:table-cell border="solid black 1px" border-right-width="0px" border-collapse="collapse" number-columns-spanned="1">
                             <fo:block font-family="sans-serif" font-size="9pt" text-align="right">
                                  <xsl:value-of select="$nodeSetChilds[1]/Item[text()=$ItemNumber]/@Measured"/>
                             </fo:block>
                        </fo:table-cell>
                        <fo:table-cell border="solid black 1px" border-left-width="0px" border-collapse="collapse" number-columns-spanned="1">
                             <fo:block font-family="sans-serif" font-size="9pt" text-align="left">
                                  <xsl:value-of select="$nodeSetChilds[1]/Item[text()=$ItemNumber]/Value_Note/number/text()"/>
                             </fo:block>
                        </fo:table-cell>
                        <xsl:call-template name="setValuesPGroupChilds">
                             <xsl:with-param name="nodeSet" select="$nodeSet"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
                             <xsl:with-param name="ItemNumber" select="$ItemNumber"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:when test="$nodeSet[1]/following-sibling::*">
                        <xsl:call-template name="setValuesPGroupChilds">
                             <xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
                             <xsl:with-param name="ItemNumber" select="$ItemNumber"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <!-- -->
         <xsl:template name="defineColumnsForNode">
              <xsl:param name="nodeSet"/>
              <xsl:param name="nodeSetChilds"/>
              <xsl:param name="colWidth"/>
              <xsl:choose>
                   <xsl:when test="$nodeSetChilds[1]">
                        <fo:table-column column-width="{$colWidth*0.8}cm"/>
                        <fo:table-column column-width="{$colWidth*0.2}cm"/>
                        <xsl:call-template name="defineColumnsForNode">
                             <xsl:with-param name="nodeSet" select="$nodeSet"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSetChilds[1]/following-sibling::*"/>
                             <xsl:with-param name="colWidth" select="$colWidth"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:when test="$nodeSet[1]/following-sibling::*">
                        <xsl:call-template name="defineColumnsForNode">
                             <xsl:with-param name="nodeSet" select="$nodeSet[1]/following-sibling::*"/>
                             <xsl:with-param name="nodeSetChilds" select="$nodeSet[1]/following-sibling::*[1]/Parameter"/>
                             <xsl:with-param name="colWidth" select="$colWidth"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <!-- -->
         <!-- create $noOfCols empty table-cells -->
         <!-- -->
         <xsl:template name="fillColumns">
              <xsl:param name="noOfCols"/>
              <xsl:if test="$noOfCols > 0">
                   <fo:table-cell border-right-style="dashed" border-left-style="dashed" border-width="1px">
                        <fo:block/>
                   </fo:table-cell>
                   <xsl:variable name="rest" select="$noOfCols - 1"/>
                   <xsl:call-template name="fillColumns">
                        <xsl:with-param name="noOfCols" select="$rest"/>
                   </xsl:call-template>
              </xsl:if>
         </xsl:template>
    </xsl:stylesheet>
                   <fo:table border="solid black 1px" table-layout="fixed">
                        <fo:table-column column-width="2.5cm"/>
                        <fo:table-column column-width="1.92cm"/>
                        <fo:table-column column-width="0.48cm"/>
                        <fo:table-column column-width="1.92cm"/>
                        <fo:table-column column-width="0.48cm"/>
                        <fo:table-column column-width="1.92cm"/>
                        <fo:table-column column-width="0.48cm"/>
                        <fo:table-column column-width="1.92cm"/>
                        <fo:table-column column-width="0.48cm"/>
                        <fo:table-header>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 0px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block> </fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="6">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">GENERAL PARAMGROUP</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">CRYSTALS</fo:block>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell>
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">Item</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">BILIU</fo:block>
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">umol/l</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">ERYU</fo:block>
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">per ul</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">LEUU</fo:block>
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">per ul</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="2">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">GLUHI</fo:block>
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center" font-weight="bold">umol/l</fo:block>
                                  </fo:table-cell>
                             </fo:table-row>
                        </fo:table-header>
                        <fo:table-body>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">1</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">6.8</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">7.210</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.00</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">22.00</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">2</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">8.2</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">45.000</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left">**</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.00</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">5.12</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">3</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left">*</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">-</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">4</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">62.1</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">1234.000</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">354.39</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">23.14</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left">***</fo:block>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">5</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">215.9</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">326.580</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3254.24</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">576.26</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">6</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">12.7</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.658</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">1256.32</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3621.00</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                             <fo:table-row>
                                  <fo:table-cell border="solid black 1px" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="center">7</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">3.6</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">123.540</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">326.54</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-end-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="right">0.37</fo:block>
                                  </fo:table-cell>
                                  <fo:table-cell border="solid black 1px" border-start-style="none" border-collapse="collapse" number-columns-spanned="1">
                                       <fo:block font-family="sans-serif" font-size="9pt" text-align="left"/>
                                  </fo:table-cell>
                             </fo:table-row>
                        </fo:table-body>
                   </fo:table>

  • Cell selectable in table

    Hi everybody,
    is it possible to make a single cell selectable in a  table in Web Dynpro for ABAP?
    In simple ABAP it is possible and you can catch the coordinate while raising an event (button).
    In Web Dynpro when I am using "input fields" instead of "text view" for the cell editor I can go into a cell, but it isn't selected.
    By the way the table should not be editable ...
    Thanks for all answers ...

    Problem is solved.
    Solution:
    As described I have a context attribute "marked_cell" typed WDR_EXT_ATTRIBUTE_POINTER.
    After selecting a cell my method behind the button could read the coordinates with the following code.
      DATA lo_el_context    TYPE REF TO if_wd_context_element.
      DATA ls_context       TYPE wd_this->element_context.
      DATA lo_marked_cell   LIKE ls_context-marked_cell.
      DATA lv_marked_column TYPE string.
      DATA lv_marked_row    TYPE string.
    * get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `MARKED_CELL`
        IMPORTING
          value = lo_marked_cell ).
    * lo_marked_cell contains direkt the column
      lv_marked_column = lo_marked_cell-attribute_name.
    * Additionaly we need the row number the user selected
      lv_marked_row = lo_marked_cell-element->get_index( ).

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Possible to hit enter on table cell & retrieve data without selecting line?

    Hi All,
    We're using ECC6.  I  I have a situation where the user wants to be able to hit a cell in a table which will then fire a report and pass the contents of that cell to the report. 
    So far I have been only able to get this working when the row is highlighted, I can easily pick up the values from the lead selection.  But the user does not want to have to highlight a row every time to run the report.  The user just wants to hit return a cell and for the report to be updated with the value in that cell.
    So, I'm just wondering if it is possible to hit enter in any table cell and retrive the data without highlighting the row?
    Many thanks in advance,
    Liz.

    Hi,
    You want complete row data or perticular cell data??
    Basic q's, without selecting a row how can we get data? without selecting means you get complete data on table,
    In that case which data you have to pass to report?
    Or if you dont want to select data means, create one more field of type button. so in thins button action get that row data
    and call report from here itself.
    Cheers,
    Kris.

  • Fine solid black border for table-cell

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

  • Select from multiple entries in table cell.

    Hi All,
    I'm having issues when trying to do a simple select from an access database:
    <CFQUERY NAME="GetAllByMonth" DATASOURCE="dsn">
    SELECT * FROM table WHERE  strMonth = '#url.strMonth#' AND strDisplay = Yes
    order by strOrder_id
    </CFQUERY>
    Table cells in rows contain coma separated values:
    January, February, March, April, May, June, October, November, December
    Unfortunately the query returns no values. I've tried changing the "=" with "like", "contains" but with no results.
    Difficult to know what to search for so any help gratefully recieved.
    Ta
    Trevor

    Here is an absolutely crazy "hack" that I once used when dealing with a database like that.  It had hundreds of thousands of rows with comma separated values that for various legacy could not be changed.
    So one day I did this ...  SELECT DISTINCT column_from_purgatory FROM table_from_hell.
    Much to my surprise, there were less than a hundred DISTINCT values in that column.  (They were, fortunately, reasonably-sized VARCHARs.)
    So I built a table of those values, then created a separate table into which I could put each of the comma-separated parts, and then wrote a small (Perl) script to populate the two.  For example, a row containing "January, March, April" would be linked to three rows containing one month-name each.
    Now, as long as I had a way to be sure that this pair of lookup-tables was always complete (which was slightly problematic), I had something that I could actually JOIN to.  It wasn't pretty ... in fact, it was butt-ugly ... but it saved a tremendous amount of processing time for this application.

  • Coloring of selected table cells: Ideas wanted

    Hi there,
    for a WD ABAP component to be re-used in various scenarios my customer seek the most comfortable and fency way to color table cells which have been selected first.
    I am almost sure that there is no UI Control in ABAP WD which allows the selction of cells in a grid, pane, table whatever, right?
    Most suitable would be if the cell itself can be selected and then some image within is beeing displayed or even a background color is set.
    I looked into placing a button and image in UI Pane or table/ALV cells but not 100% statisfied with it.
    Is there a better way in order to "simulate" the described requirement?
    As always, the best idea will get the point
    Regards
    Carsten

    Thanks for the tips. Both helped very much.
    I implemented the simple  Table UI because which was sufficient for us but the ALV example is very useful also.
    But related to this I have another question:
    My first the coding didn't work because my Table UI already had a (static) value assigned to it's design property.
    In this case, although I have assigned a dynamic WD_UI_CELL_DESIGN context attribute to the cellDesign property of it didn't show the color.
    Only after the Table design property was set to 'standard' the cell displayed the color.
    Does anyone know what the reason for this is?
    In my opinion any design value applied to the cellDesign property should overrie the inherited table design property. My release already is NW 7.01 so it not seems to be fixed via EhP.
    Regards
    Carsten

Maybe you are looking for