Formatting table cells

I would like to how to know how to set eg. the background of a cell in table or to set the cell non-editting. I tried to solve this problem like this:
for (int i = 0;
i < zinsstrukturVec.size();
i++)
((JTextField)((DefaultCellEditor) jTableZinsstruktur.getCellEditor(i,4)).getComponent()).
setHorizontalAlignment(SwingConstants.RIGHT);
but it do not work.
thank you!
Tri D.

Look at the tutorials for Table Cell Renderers

Similar Messages

  • Applescript InDesign to Merge and Format Table Cells

    The subject line says it all:
    I have a document with a table that covers about 100 pages. The table has five or six columns, 25 to 35 rows. I want to be put my curser in a cell on a row, merge the cells in the row, then apply a paragraph format and a cell format.
    And I have no idea how to do that.
    Is anyone willing to give me a hand?
    Thanks!
    Jon.

    @Jon – See the following blog post:
    Marc Autret
    Improve the Way you Merge Cells in InDesign
    http://www.indiscripts.com/post/2012/04/improve-the-way-you-merge-cells-in-indesign
    Uwe

  • Mail.app: text in table cells in incoming formatted mail - problems replying

    MacOS 10.9.2
    mail.app  7.2, threading enabled
    Sometimes I receive a formatted email that is really difficult to reply to, when I want to intersperse my reply text among the incoming paragraphs.
    The trouble occurs when multiple incoming paragraphs are grouped. I can’t open up vertical space for my reply  text inside the groups. 
    If I click anywhere in the group, mail.app marks the group with a surrounding rounded-corner grey rectangle, with a X-in-a-circle “close icon” at the upper left corner. 
    When I look at the raw source of the incoming message, I see that the groups correspond to table cells, that is, the sending mail client enclosed the paragraphs within a <td> … </td> pair.
    The sending email client is sending me a table, for no clear reason — the group doesn’t correspond to anything obvious in the message thread.
    I’m guessing we won’t ever know why some email clients group paragraphs like this, but I’d like to do my best to adapt, so I can keep up with my incoming email. 
    Yeah, I can ask my correspondents to use a different email client, or perhaps different settings in the same client, but except for the few tekkies among my correspondents, this isn’t really practical.  I can also ask my clients to use unformatted messages, but THAT is a whole different issue, and frequently isn’t practical, either.
    My questions:
    Q1:  What’s the point of the grey rectangle and the  “close icon”?    (Is this mail.app’s way of saying, “I received this crazy formatting, almost impossible to process, so I’m making it easy for you to just delete the whole mess”?  Or what?)
    Q2:  Is there any SIMPLE way to untangle (modify or remove) these groupings within mail.app?  (I guess I can access the raw html, copy-and-paste it into another app, modify it, and paste the results back into my reply.  Yuck!)
    Q3: Am I missing a really obvious work-around or fix?
    TIA

    In your question, you indicated that you are running Firefox 8. Is that correct? It might be difficult to diagnose issues with that version because most people have moved on to Firefox 12 (plus or minus 1 version). Can you upgrade?
    It's hard to think of a reason that ordinary text or links in ordinary text would not display. For embedded images or videos, one possibility is a difference in the protocol, i.e., HTTP (not secure) versus HTTPS (secure).
    Hopefully someone else will have a better guess (or actual knowledge!).
    Regarding the blue lines in a message, that usually indicates the earlier message was forwarded a few times. I don't know whether Gmail will let you reformat that area or whether you have to clean it in another application (e.g., for plain text, in Notepad) and paste it back in.

  • How to format a cell in a second table to show m3 as m³

    I can make an "own format" but I need it too often.
    So it will be much work.
    After I change the first cell to other text, the "own format" wil be shown a wrong Text in this second table-cell.
    So, how else?

    To get the number in to superscript you can use the keys Ctrl + Cmd + plus sign. Press the keys just before writing the number and then gain just after to get the coming text in normal format
    I am not sure I understood all of your post. If there is another hidden question please repeat it.

  • Table cell formatting : please allow 'Horizontal autosizing' with 'at least' option like the vertical. Or is it in the pipeline already ?

    I suspect it has been asked by others, but can't find it in the archives. I need it for table cells with diagonals, and they need to fit like a glove.

    Hi,
    if the content is in a table cell (<td>), simply use valign="top" in the Region HTML table cell attributes.
    "Vertical align" is not intended to align text in a block, but an in-line component in another in-line component (for example a picture next to text).
    Maybe you have to play with margins.
    PS : more information here for example : http://evolt.org/article/rdf/17/60369/
    Yann.

  • Multi line issue in Table Cell Editor

    Hi,
    I am developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1. In one of the view, I have a table which display items information from the data source. In one of the column I need to display item description so I used TextEdit in the Cell Editor to display the information in multi line format and also wrapping is enabled.
    But during testing of the application the TextEdit control does not wraps the text and as well as only first line of TextEdit control is visible inside the table and rest of the rows are not visible because of table's row height is not adjusted to the TextEdit control. I couldn't find any option to vary the size of the row height of the table.
    Please suggest a solution to bring multi line display with in the table.
    Also, check out my other issue posted here.
    [Issue in wrapping of text in TextEdit control|Issue in wrapping of text in TextEdit control]
    Thanks in advance.
    Regards,
    DVR.
    Edited by: Vinodh Raj D on May 28, 2009 8:18 AM

    Hi Vinodh,
                   Mutliline text in a text view/edit control inside a table cell is not supported.
    You can view multiline text in a text view/edit as a seperate control inside a view. I think in case you want to see the whole address you can create a detail(s) view which can be navigated from the list (table) view.
    Regards,
    Nipun

  • Carriage return in a WD table cell

    Hi,
    I have data in a table cell which I would like to present better by adding a carriage returns so that it appears on more than one line for example as bullet points.
    I can format it using HTML but can’t seem to be able to find out how to set encode to true for that cell.
    Has anyone come across this problem before, or even have a simpler solution.
    Cheers
    Phil

    Hi Phil,
    Check this Multiple Text lines in ONE row of a Table . On what SP level are you?
    Best regards, Maksim Rashchynski.

  • Can't enter a date into a table cell the way I want to

    I am trying to put "Jul 2008" in a table cell but every time I remove focus from it, it changes to "Jul 1, 2008". This is very annoying, how can I turn this off?

    I solved this by making the "Cell Format" "Text" using the Inspector.

  • Text field spry validation over 2 table cells?

    Hello,
    This might be a real simple thing, but I can't figure it out. Can anyone  please help?
    I'm using DW CS3 and I'm building a contact form. I'm using DW's Spry  validation for my text field. It's an email field. I'd like to put the  label in one table cell and the input box in the adjacent cell. But I  can't figure out how. I'm using the attach label using 'for' attribute.
    Here is how DW writes the code:
                   <tr>
                        <td>
                             <span id="sprytextfield5">
                             <label for="email">Email</label>
                             <input type="text" name="emaill" id="emaill" />
                             <span class="textfieldInvalidFormatMsg">Invalid  format.</span></span>
                        </td>
                    </tr>
    As you can see, it's all in one cell.
    I've tried massaging the code every which way but then the widget doesn't  work.
    Please help!
    Thank you in advance!
    Claudia

    Hello,
    This might be a real simple thing, but I can't figure it out. Can anyone  please help?
    I'm using DW CS3 and I'm building a contact form. I'm using DW's Spry  validation for my text field. It's an email field. I'd like to put the  label in one table cell and the input box in the adjacent cell. But I  can't figure out how. I'm using the attach label using 'for' attribute.
    Here is how DW writes the code:
                   <tr>
                        <td>
                             <span id="sprytextfield5">
                             <label for="email">Email</label>
                             <input type="text" name="emaill" id="emaill" />
                             <span class="textfieldInvalidFormatMsg">Invalid  format.</span></span>
                        </td>
                    </tr>
    As you can see, it's all in one cell.
    I've tried massaging the code every which way but then the widget doesn't  work.
    Please help!
    Thank you in advance!
    Claudia

  • InDesign CS6 Font doesn't work in table cells

    Hi all!
    I'm working in InDesign CS6 on Mac OS 10.6 Leopard.  I have character and paragraph styles defined using a certain font, and they work just fine except when using them in table cells.  I have the character style nested in the paragraph style, which is then used in the cell style.  But it doesn't work.  It inherits everything correctly except for the font.  If I select the text, the font menu tells me it is the correct font, but it displays in a different font.  I've tried exporting to IDML and resaving, but that didn't work.  I'm stumped

    Hi Jeffrey-
    Indeed it should, and I see why using a formatted table would cause conflicts, but I am importing it as an unformatted table already.  Built all styles in InDesign first, then imported as unformatted table.  A few times it did work as expected, but most of the time it steadfastly refused to apply the correct font.
    But in any case, that wasn't my only issue with the tables.  My understanding of importing Excel spreadsheets is that applied table and cell styles will be maintained when the linked file is updated, but local formatting/overrides will be wiped out, which is why I was trying to get the styles working in the first place.  However, after testing, I found that even when I didn't use local formatting/overrides, updating the linked file still broke my InDesign layout.
    In my test, the only thing I did to the imported (unformatted) table was to apply the table/cell styles and adjust column width (which is unavoidable as far as I know - didn't see anywhere I could set column width as part of a style).  But even then an update to the linked file removed all the styles and column widths I had set (and was also highly annoying as it gave me a separate error message about the formatting loss for each and every instance of the spreadsheet).
    Could be a fluke, or could be I'm missing something, but for whatever reason, I just couldn't get it to work

  • Superscripts in table cells

    Hi,
    I want to enter a superscript in a table cell e.g. ⁻128, but using the superscript command on the MINUS SIGN character rather than SUPERSCRPT MINUS character I used above. When I try and enter this, it works within the cell until I move away and then all the characters become superscript.
    Is there anything I can do differently to resolve this?
    Thanks in advance,
    Triskaideka.

    I think you need to change the cell format to TEXT.
    http://discussions.apple.com/thread.jspa?messageID=8945324&#8945324

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • How can I save semi opaque background fill in a pages table cells?

    I am trying to add background colour fill to some cells of a table.  Solid, 100% fill is easy, but when I slide the opacity slider in the colours window and add to a cell, the new colour can be added to the table cell, but only saves as the full 100% colour in the saved document.  I save the Pages document as a Word document.  Thanks for any help.
    George

    How does it work if you save the document as the native .pages format? A lot of Pages features doesn't convert well to Word, or vice versa. Don't expect Pages to be a cheap Word substitute.
    I can't check out what you are describing as I don't have Word.
    Tip: Always save first as .pages, then you can EXPORT to another format. PDF is better format to retain what you have acheived in Pages.

  • Robohelp HTML 9 hyperlinks in table cells help

    Hi,
    I'm creating a table in robohelp html 9 and adding hyperlinks in the table cells. If the hyperlink is the first word in that cell robohelp is adding styling code to the link eg <td><a href="#" style="color: #0000ff; text-decoration: underline; ">test</a></td>.
    If I add a link to the second word in a table cell the styling does not appear or even if I add a space before the link the code does not appear eg <td>&#160;<a href="#">test</a> </td>.
    The code appears when I flick between design and HTML views but it does not make any difference in which view I create the link.
    No matter how many times I delete this code is keeps coming back. Can  anyone please help me? Is there some default that gives this the styling  code?Does anyone else get this issue?
    A table with the different examples is below. It was created in design view by clicking table>insert table>OK. Links added by clicking the insert hyperlink button.
    <table style="border-collapse: separate; border-collapse: separate;" cellspacing="0"
             width="33.333%" border="1">
        <col style="width: 100%;" />
        <tr>
            <td><a href="#" style="color: #0000ff; text-decoration: underline; ">test
             that has the added code</a></td>
        </tr>
        <tr>
            <td>&#160;<a href="#">test with space in front of link</a> </td>
        </tr>
        <tr>
            <td><a href="#" style="color: #0000ff; text-decoration: underline; ">test</a></td>
        </tr>
        <tr>
            <td>A <a href="#">test</a> </td>
        </tr>
    </table>
    Thanks in advanced

    I have the same problem with those stupid links in tables - I've been working on this for HOURS and HOURS...... Based on previous experience, I assumed it must only be me and an ill-formed stylesheet. The table/link issue just came to my attention because I am in the process of changing styles/formats to a new company standard (new link color) and thought I really screwed my CSS up as I was changing things!
    My only workaround thusfar has been to rewrite some data in the tables so that text will precede the link (yes, I did).  And where I just couldn't do that, I resigned myself to the problem and forced a different color on the links (changing the #0000ff).  One plus was that RH didn't rewrite the color code once it was changed manually..... but then I realized later that I didn't consider the hover color when I did this, so I now have to go back and correct them. 
    So glad to find your post...........
    I played with the idea of adding hidden text, but was worried that the problem was really a result of an issue with my CSS and doing that wasn't the proper way to fix it.   So, without guilt, I took Rick's suggestion and added an invisible dot/period at the beginning of every link in a table, when that link is the first or only content in the td.  Did the trick!  Now the links assume my declared css style! 
    I submitted a bug report.......
    Thank you!!!

  • Multiple tabs in table cell (FM 7)

    Hey gang,
    I've got a table that requires multiple tab stops in one table cell.  They're easy enough to place--I use the Tab Stops segment in Paragraph Designer--but I cannot move back and forth between the tabs. Each tab stop must be numbered.  For example, I inserted seven tab stops in the cell.  Is there a way to step through the tab stops without leaving the cell? 
    Thanks in advance!
    -terry-

    I need to add that the above may not work, depending on your platform and FM release.
    On FM7.1/Unix, Find randomly fails to find things in tables, and tabs are no exception. The hack above did not work.
    On FM9/Win7, Find of \t did navigate between tabs in a table.
    The real parent problem here may be: who gets to see the keycode from the [Tab] key? It appears that the OS GUI gets first crack at it, and what's passed to the app may not be an 09h character but some window nav event (that has to be converted back to an \x09 when the intent is to type a tab into the text, but when the focus is in an FM table, FM thinks you want nav).
    An FM-specific sub-problem is that FM doesn't support tables within tables (actually, it does, but you have to create a new text frame inside an anchored frame inside the table cell). Tables within tables would eliminate the temptation to tab.
    Tabs, of course, have been a CS problem forever, as there was never an agreed industry standard for what they meant (move 8 spaces, or move to next multiple of 8 space from left, or move to next tab stop, and what if none are defined, etc.). In FM, users who use tabs are generally doing so from habit from other word processors, and are grabbing the margin tab tool, rather than defining stops in Paragraph Designer. A later author updates the para format, resetting all overrides, and bye bye tabs.
    I usually use borderless tables these days for body text layouts that might historically have been done as tabs.
    If I need column-control inside table cells, I'll often use as many columns as needed, and straddle them in the cells that don't use the extra columns).

Maybe you are looking for