Text alignment question

Hi guys
Just wondering if there is a way to keep two sentences in one string on the same line, but one aligned left, the other right using html or TLF?
So...
left margin>FIRST SENTENCE             SECOND SENTENCE<right margin
The string is being injected into a textflow, so it would need to work with either TEXT_FIELD_HTML_FORMAT or TEXT_LAYOUT_FORMAT.
I've imported css via a formatResolver, and have a class that colors and aligns the font. The color works, but aligning it does nothing.
Thanks for taking a look.

Forgot to mention it's for an AIR desktop app.  Here's the guts of the code from AS3CSSSample.as - some of the tags don't seem to work...
[Embed(source="SimpleCSS.css",mimeType="application/octet-stream")]
        private var SimpleCSS : Class;
        //private var styleSheet:StyleSheet = new StyleSheet;
        private var styleSheet:StyleSheet = new TLFStyleSheet;
            // parse a styleSheet
        private var cssByteArray:ByteArray = new SimpleCSS();
        private var cssText:String = cssByteArray.readMultiByte(cssByteArray.length,"utf-8");
          flow = new TextFlow();
            flow.flowComposer = new StandardFlowComposer();           
            styleSheet.parseCSS(cssText);
            flow.formatResolver = new CSSFormatResolver(styleSheet);
var simpleText:String = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"
            + "<p styleName='center'><span>There are many </span><span styleName='italic'>such lime-kilns in that tract of country, for the purpose of burning the white marble which composes a large part of the substance of the hills. Some of them, built years ago, and long deserted, with weeds growing in the vacant round of the interior, which is open to the sky, and grass and wild-flowers rooting themselves into the chinks of the stones, look already like relics of antiquity, and may yet be overspread with the lichens of centuries to come. Others, where the lime-burner still feeds his daily and nightlong fire, afford points of interest to the wanderer among the hills, who seats himself on a log of wood or a fragment of marble, to hold a chat with the solitary man. It is a lonesome, and, when the character is inclined to thought, may be an intensely thoughtful occupation; as it proved in the case of Ethan Brand, who had mused to such strange purpose, in days gone by, while the fire in this very kiln was burning.</span></p>"
            + "<p><span>The man who now watched the </span><span id='bold'>fire</span><span> was of a </span><span typeName='foo'>different</span><span> order, and troubled himself with no thoughts save the very few that were requisite to his business. At frequent intervals, he flung back the clashing weight of the iron door, and, turning his face from the insufferable glare, thrust in huge logs of oak, or stirred the immense brands with a long pole. Within the furnace were seen the curling and riotous flames, and the burning marble, almost molten with the intensity of heat; while without, the reflection of the fire quivered on the dark intricacy of the surrounding forest, and showed in the foreground a bright and ruddy little picture of the hut, the spring beside its door, the athletic and coal-begrimed figure of the lime-burner, and the half-frightened child, shrinking into the protection of his father's shadow. And when again the iron door was closed, then reappeared the tender light of the half-full moon, which vainly strove to trace out the indistinct shapes of the neighboring mountains; and, in the upper sky, there was a flitting congregation of clouds, still faintly tinged with the rosy sunset, though thus far down into the valley the sunshine had vanished long and long ago.</span></p>"
            + "</TextFlow>";
var textFlow:TextFlow = TextConverter.importToFlow(simpleText, TextConverter.TEXT_LAYOUT_FORMAT);
            // wipe out the default inherits - format take precendence over CSS - this simplifies the example
            textFlow.format = null;
            // attach a format resolver
            textFlow.formatResolver = new CSSFormatResolver(styleSheet);
            // set it into the editor
            textFlow.flowComposer.addController(new ContainerController(this,500,500));
            textFlow.flowComposer.updateAllControllers();
            flow.styleSheet = styleSheet;
            // attach a format resolver
            flow.formatResolver = new formatResolver(styleSheet);
            // set it into the editor
            textFlow.flowComposer.addController(new ContainerController(this,500,500));
            textFlow.flowComposer.updateAllControllers();
    ADOBE SYSTEMS INCORPORATED
    Copyright 2008 Adobe Systems Incorporated
    All Rights Reserved.
    NOTICE:  Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the Adobe license agreement
    accompanying it.  If you have received this file from a source
    other than Adobe, then your use, modification, or distribution
    of it requires the prior written permission of Adobe.
span
    fontSize:        18;
TextFlow
    columnCount:            2;
    textIndent:             15;
    paragraphSpaceAfter:    15;
    paddingTop:             4;
    paddingLeft:            4;
foo
    fontSize:        18;
    color:            0xff00;
.italic
    #fontStyle:        italic;
    #color:            0xff;
    #fontFamily:    Helvetica;
.center
    textAlign:        center;
#bold
    fontWeight:        bold;

Similar Messages

  • JMenuItem icon, text alignment question

    hello,
    can some one help with my question:
    I got 5 JMenuItems in a JMenu, some JMenuItems have icon, some not, I want to align them with icon and text in a neat format, like those in Sun's Forte IDE's Menu:
    but I can only do it like this:
    icon1 open..
    save As..
    icon2 new..
    Exit..
    (above each line represent a JMenuItem, I need to make "save as" ,"Exit" to in line with "open" and "new" in verticle direction,NOT with the icon)
    sb suggest always set an icon for each JMenuItem, set an transparent Icon for alignment those without icons.
    but this sounds not so attractive, are there any other ways? thanks a lot.

    you can always take a mort drastic action by subclassing MenuItem and
    overriding the painting method.
    But I belive that the first suggestion is faster.

  • Hyphenation & text-align:justify in PDF's with CFDOCUMENT

    Hello everybody!
    We are using CF8.1 and are having problems of generating well designed PDF outputs with CFDOCUMENT. We would like to print out reports, which are hyphenated and have the text aligned. Example:
    This works fine:
    <html lang="en">
    <STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;  -hyphens: auto;text-align:justify}</STYLE>
    <P>Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer</P>
    </html>
    This won't:
    <CFDOCUMENT FORMAT="PDF">
    <html lang="en">
          <STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;  -hyphens: auto;text-align:justify}</STYLE>
          <P>Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer</P>
    </html>
    </CFDOCUMENT>
    Do you have any solutions on this topics? Are do I have to wait until CF11.
    Thanks in advance
    Matthias

    4tun8mom wrote:
    Now, the problem is that, while the client likes this, they don't like that the headers and footers are grayed out and the colors are not as vibrant in Word as the program part I created and saved as a PDF.
    They're being a bit impractical in their complaints, in fact they remind me of my Dad!  The final product is still fine.
    4tun8mom wrote:
    They also don't like that if we keep this as a Word document, all the text is editable.
    That's fair enough, the solution would be to make the text in the header and footer an image instead.
    4tun8mom wrote:
    So my question is, can I create a PDF that has the same features with the expandable text control boxes.  If I can, would you recommend InDesign to do this?
    No you can't.  I'm pretty sure you can't create a PDF with expandable boxes and I'm very sure that you can't create a PDF that will add pages with headers and footrs.  However you can create a PDF with basic fillable text boxes, they're called forms and you need Acrobat as well to do it, google it and you'll find plenty of info.

  • JDeveloper 10.1.3.4: text-align for table column has no effect

    Hi,
    I am using JDeveloper 10.1.3.4. In a tabe I have a column that displays numbers, which are left-aligned by default:
    Applied
    $50.00
    $2,160.00
    $50.00
    $2,260.00I want to have them aligned to the right to look neater:
    Applied
             $50.00
          $2,160.00
             $50.00
          $2,260.00Or better still, have the cell with the longest string aligned to the center, and all the other cells align to it by the decimal point:
        Applied
          $50.00
       $2,160.00
          $50.00
       $2,260.00I looked in the property inspector and the only thing that looks closest to the purpose is text-align. I set this attribute to right (text-align:right) for the column, and for the outputText, but neither has effect. Everything is still flush to the left. How to get it right?
    Thanks!
    Newman

    Hi, Branislav,
    Nice meeting you again.
    Last time the question was about formatting the total amount returned from the method, from String to Number, Re: JDeveloper does not handle expert SQL, cannot add query clause in view link, which can also format the number as currency.
    This time, your answer again solved my problem. I was looking in the inline styling section, and did not notice this property in the General section. Thank you so much for your help!
    Newman

  • Why won't my text align right in Live View or Browsers?

    I created a class called .reviewer so the the name of the reviewer would align right while the the review itself remains aligned to the left. I applied the class to the reviewer's name and in design view, it looks perfect. But in Live view and when I preview in a browser, the text remains aligned left. I put this class in two external style sheets, main.css and mainReviews.css.
    The page in question is: www.jillgrovemezzo.com/reviews.htm
    To be more specific, the text I want to align right under the first review is "Lawrence A. Johnson, Chicago Classical Review"
    Regina

    Add display: block; to your css class .reviewer (as shown below).
    .reviewer {
        text-align: right;
        display: block;

  • Table cell - text formatting question

    Can't seem to find how to do this. I changed the marging of
    the box to 5 pixels. That only seems to effect a sentence after a
    hard-break. It does not effect soft-breks/returns.
    I'd like every line in the cell to be 3 pixels from the left
    border.
    Thx!

    Not enough. Code from Main.css please.
    (Link to the actual page is always best. This is a
    user-to-user forum, No
    one is paid to be here. The easier you make it for us to see
    everything the
    more likely you are to get help.)
    Walt
    "JRStaf4ord" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here is the code for assistance -- thank you all!...
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > <link href="Main.css" rel="stylesheet"
    type="text/css" />
    > <style type="text/css">
    > <!--
    > .style1 {
    > font-family: Tahoma, Arial, "Lucida Console",
    sans-serif;
    > font-size: 14px;
    > line-height: 21px;
    > color: #000000;
    > background-position: center center;
    > margin: 5px;
    > text-indent: 5px;
    > white-space: normal;
    > vertical-align: text-top;
    > text-align: left;
    > visibility: visible;
    > display: inline;
    > background-color: #FFFFFF;
    > background-image: none;
    > background-repeat: no-repeat;
    > padding-left: 5px;
    > }
    > a:link {
    > color: #663300;
    > }
    > a:visited {
    > color: #999999;
    > }
    > a:hover {
    > color: #669900;
    > }
    > a:active {
    > color: #663300;
    > }
    > .style4 {
    > font-family: Tahoma, Arial, "Lucida Console",
    sans-serif;
    > font-size: 10px;
    > color: #9BB674;
    > }
    > body {
    > margin-left: 2px;
    > }
    > .style5 {color: #663300}
    > .style9 {color: #663300; font-size: 18px; }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <table width="700" border="1" align="center"
    cellpadding="1"
    > cellspacing="0"
    > bordercolor="#FFFFFF" bgcolor="#FFFFFF"
    class="style1">
    > <tr>
    > <td width="150" bgcolor="#FFFFFF"><script
    type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','150','height','140','title','Flash
    > Logo','src','Images and
    > Video/Pic3','quality','high','pluginspage','
    http://www.adobe.com/shockwave/downl
    >
    oad/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Images
    and
    > Video/Pic3' ); //end AC code
    > </script>
    > <noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="150" height="140" title="Flash
    Logo">
    > <param name="movie" value="Images and Video/Pic3.swf"
    />
    > <param name="quality" value="high" />
    > <embed src="Images and Video/Pic3.swf" quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="150"
    > height="140"></embed>
    > </object></noscript></td>
    > <td colspan="3"
    bordercolor="#FFFFFF"><p><img src="Images and
    > Video/Banner2.gif" alt="Stafford SBSG Small Business
    Consulting Banner"
    > width="738" height="122" /></p></td>
    > </tr>
    > <tr>
    > <td height="170" rowspan="3">Web
    Marketing</td>
    > <td colspan="3" align="left" valign="top"
    bgcolor="#CCDBB6"><h1
    > class="style5"><br />
    > <span class="style9">Business
    Plans</span></h1>
    > <p align="left">Entrepreneurship can be exciting
    and rewarding,
    > but
    > you must be prepared and
    > committed. Careful planning is fundamental to success. A
    well
    > written business plan is
    > essential in acquiring financing, managing growth, and
    beating the
    > competition. Like a
    > budget, it is a work in progress that should be
    maintained and
    > referred to on a regular
    > basis. From the Executive Summary to the Appendix and
    everything
    > in-between,
    > Stafford SBSG can help you create an integrated business
    plan
    > that
    > contains all the
    > essential elements to help you achieve success.
    > When developing your business plan, Stafford SBSG is
    very
    > ?hands-on?, asking
    > questions, challenging your assumptions and designing a
    plan
    > that is
    > customized
    > for
    > your business.</p> </td>
    > </tr>
    > <tr>
    > <td colspan="2" align="left" valign="top"
    bgcolor="#CCDBB6"><br />
    > A typical development process includes interviews of
    management,
    > strategic market research and analysis, mid-project
    status
    > check,
    > plan draft, client
    > feedback and revisions, and finalization.
    >
    > If you already have a basic plan, but need to include
    additional
    > elements to enhance
    > your ability to acquire financial backing, identify
    growth
    > opportunities, or communicate
    > with your employees, Stafford SBSG can assist you in the
    areas
    > of
    > Market Analysis,
    > Company Description, Organization and Management,
    Marketing and
    > Sales
    > Management, Product Description and Funding Request
    Presentation.</td>
    > <td align="left" valign="top"
    bgcolor="#CCDBB6"><img src="Images and
    > Video/BizPlan1.jpg" alt="Business Plan Development
    Strategy" width="327"
    > height="203" /></td>
    > </tr>
    > <tr>
    > <td colspan="3" align="left" valign="top"
    bgcolor="#CCDBB6"> <br />
    > If you have created a comprehensive plan and would like
    an
    > independent
    > analysis to
    > identify gaps or inconsistencies, Stafford SBSG can
    review your
    > plan
    > and provide you
    > with a written report ?that includes suggested changes,
    revisions or
    > additions.</td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td
    width="361"><p> </p></td>
    > <td width="113"> </td>
    > <td width="261"> </td>
    > </tr>
    > <tr>
    > <td bordercolor="#CCDBB6"> </td>
    > <td colspan="3" align="center" valign="top"><p
    align="center"
    > class="style4">Stafford SBSG: Annapolis MD,
    410.280.9618 and Wintergreen,
    > VA
    > 434.325.1439<br />
    > Web Marketing - Marketing Analytics - Marketing Plans -
    Business
    > Plans -
    > Compensation Plans - Financial Management - Human
    Resources</p> </td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >
    >

  • Inheriting -fx-text-alignment CSS Property

    Hello,
    I am referring to the Inheritance section in the following document:
    http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#typefont
    The document states that the three CSS properties are inherited by a node from its parent, by default:
    -fx-cursor
    -fx-text-alignment
    -fx-font
    The following program is to demonstrate the above CSS rule.
    package test;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Text;
    import javafx.stage.Stage;
    public class Test extends Application {
         public static void main(String[] args) {
              Application.launch(args);
         public void start(Stage stage) {
              VBox root = new VBox();
              root.setStyle("-fx-cursor: hand;" +
                            "-fx-text-alignment: right;" +
                            "-fx-font: normal bold 20px \"serif\"");
              Label lb2 = new Label("Just adding a long text to test the text alignment:");
              lb2.setWrapText(true);
              //lb2.setStyle("-fx-text-alignment: inherit");
              Text t2 = new Text("This is a big text for the Text node");
              lb2.setPrefWidth(100);
              t2.setWrappingWidth(50);
             //t2.setStyle("-fx-text-alignment: inherit");
              root.getChildren().addAll(lb2, t2);
              Scene scene = new Scene(root);
              scene.getStylesheets().add("resources/css/hjfx.css");
              stage.setScene(scene);
              stage.setTitle("Test");
              stage.show();
    }I have the following questions:
    1. The -fx-text-alignment property is not inherited by default by the Label and Text nodes. If I specify the value as inherit, it works as expected.
    2. The textAlignment property is not just defined in the Text class. It is also defined in the Labeled class. The font property is not defined in the Font class either. Why does this document refer to these classes in the table in the Inheritance section?
    3. Can someone give me an example of what does this document mean by stating that -fx-text-alignment property is inherited by nodes from their parents, by default.
    Thanks
    Kishori

    These are either bugs in the document or bugs in the code. Would you mind creating an issue in JIRA (http://javafx-jira.kenai.com/) to track this?

  • SSRS- Span tag with text-align CSS property

    Hi All,
    I hope you can direct me.
    If I use the text box as HTML - Interpret HTML tags as styles, and write the following in it:
    "<p style='text-align: right';>Ghada Naim</p>"
    It works correctly ,but the following do not respond to the style:
    "<span style='text-align: right';>Ghada Naim</span>"
    Please, what is the problem? Is the span tag with  SSRS does not support to text align property or what?
    Thank you,

    Hi GhadaNaim,
    In Reporting Services, the following is a complete list of tags that will render as HTML when defined as placeholder text:
    Hyperlinks: <A HREF>
    Fonts: <FONT>
    Header, style and block elements: <H{n}>, <DIV>, <SPAN>,<P>, <DIV>, <LI>, <HN>
    Text format: <B>, <I>, <U>, <S>
    List handling: <OL>, <UL>, <LI>
    We can know that the <SPAN> tag is supported. Based on my further research, the <span> tag is used to group inline-elements in a document and it provides no visual change by itself. So we couldn’t directly see its respond in report.
    For more information about HTML <span> Tag, please refer to the following document:
    http://www.w3schools.com/tags/tag_span.asp
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong 
    Katherine Xiong
    TechNet Community Support

  • Text alignment "Justify" is not aligned in Crystal Viewer.

    Hi,
    I am having a text field in report like paragraph format in Detail section and I have setting the text alignment as u201CJustifyu201D. If I launch the report through dhtml viewer the text is not aligned in justify format, it is getting aligned as left alignment, but it is working properly while exporting to PDF and Design Preview panel.
    This problem is occurs in Crystal Report XI Release 2 and Crystal Report 2008 also.
    This has been already posted and the link is Text Alignment - Justification Problem
    Please help me to overcome this issue.
    Thanks in Advance.

    With CR 2008, make sure you are on SP4:
    SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    SP4 MSI
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    SP4 MSM
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    If that does not help, please provide a link to screen shots of the issue.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to change the text alignment of an adf table column

    Hi everyone
    I have a read only adf table that uses banding. What I want to do is change the text align property of one of it's columns but the task seems not at all trivial.
    I tried entering a value for the text-align property in the inline style of the specific af:column tag and failed. I then tried to do the same for the af:outputText element inside the column but still nothing worked. I even created a css style and changed the StyleClass attribute on each or both elements without any luck.
    Can anybody shed some light here ...
    Thanassis

    Specify the text-align in a css.
    Re: styling column headers in adf table

  • JTable text alignment issues when using JPanel as custom TableCellRenderer

    Hi there,
    I'm having some difficulty with text alignment/border issues when using a custom TableCellRenderer. I'm using a JPanel with GroupLayout (although I've also tried others like FlowLayout), and I can't seem to get label text within the JPanel to align properly with the other cells in the table. The text inside my 'panel' cell is shifted downward. If I use the code from the DefaultTableCellRenderer to set the border when the cell receives focus, the problem gets worse as the text shifts when the new border is applied to the panel upon cell selection. Here's an SSCCE to demonstrate:
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.EventQueue;
    import javax.swing.GroupLayout;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.border.Border;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import sun.swing.DefaultLookup;
    public class TableCellPanelTest extends JFrame {
      private class PanelRenderer extends JPanel implements TableCellRenderer {
        private JLabel label = new JLabel();
        public PanelRenderer() {
          GroupLayout layout = new GroupLayout(this);
          layout.setHorizontalGroup(layout.createParallelGroup().addComponent(label));
          layout.setVerticalGroup(layout.createParallelGroup().addComponent(label));
          setLayout(layout);
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
          if (isSelected) {
            setBackground(table.getSelectionBackground());
          } else {
            setBackground(table.getBackground());
          // Border section taken from DefaultTableCellRenderer
          if (hasFocus) {
            Border border = null;
            if (isSelected) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusSelectedCellHighlightBorder");
            if (border == null) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusCellHighlightBorder");
            setBorder(border);
            if (!isSelected && table.isCellEditable(row, column)) {
              Color col;
              col = DefaultLookup.getColor(this, ui, "Table.focusCellForeground");
              if (col != null) {
                super.setForeground(col);
              col = DefaultLookup.getColor(this, ui, "Table.focusCellBackground");
              if (col != null) {
                super.setBackground(col);
          } else {
            setBorder(null /*getNoFocusBorder()*/);
          // Set up our label
          label.setText(value.toString());
          label.setFont(table.getFont());
          return this;
      public TableCellPanelTest() {
        JTable table = new JTable(new Integer[][]{{1, 2, 3}, {4, 5, 6}}, new String[]{"A", "B", "C"});
        // set up a custom renderer on the first column
        TableColumn firstColumn = table.getColumnModel().getColumn(0);
        firstColumn.setCellRenderer(new PanelRenderer());
        getContentPane().add(table);
        pack();
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            new TableCellPanelTest().setVisible(true);
    }There are basically two problems:
    1) When first run, the text in the custom renderer column is shifted downward slightly.
    2) Once a cell in the column is selected, it shifts down even farther.
    I'd really appreciate any help in figuring out what's up!
    Thanks!

    1) LayoutManagers need to take the border into account so the label is placed at (1,1) while labels just start at (0,0) of the cell rect. Also the layout manager tend not to shrink component below their minimum size. Setting the labels minimum size to (0,0) seems to get the same effect in your example. Doing the same for maximum size helps if you set the row height for the JTable larger. Easier might be to use BorderLayout which ignores min/max for center (and min/max height for west/east, etc).
    2) DefaultTableCellRenderer uses a 1px border if the UI no focus border is null, you don't.
    3) Include a setDefaultCloseOperation is a SSCCE please. I think I've got a hunderd test programs running now :P.

  • New to CSS, text-align and line-height ok in 'Design', but not in browsers (IE 10 & Chrome) on Win8

    [DREAMWEAVER CC]
    I'm now learning CSS, and find that where I specify in an external style sheet
    h1 {
              font-family:Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
              text-align:center;
              color: black;
              font-size: 1em;
              font-weight: normal;
              font-style: normal;
              line-height: 3.0;
              letter-spacing: 0px;
              word-spacing: 10px;
    text-shadow: 3px 3px 5px #333;
    text-decoration: none ;
    text-transform: none;
    That, in DW Design, they look fine, but in Windows 8, IE 11 and ChromeVersion 31.0.1650.63 m   that the text-align: center; and the line-height: 3.0;  are ignored.
    I work around by specifying <tr align="center" height = "77">   shouldn't the text-align: center; and the line-height: 3.0;  be specifiable in my CSS??
    Thanks for any help!
    <tr height="77" align="center">
            <h1>
                <td bgcolor="CornSilk">1/28/2014</td>
                <td>the Sky</td>
                <td>Fate is the Hunter</td>
              <td >Ernest Gann</td>
                <td >John</td>
                <td >Jessica</td>
              <td><a href="http://www.amazon.com/FATE-HUNTER-Ernest-K-Gann/dp/0671636030/ref=sr_1_1?s=books&ie=UTF8&q id=1387462831&sr=1-1&keywords=ernest+gann">Learn More</a></td>
            </h1>
        </tr>

    hemmi1 wrote:
    [DREAMWEAVER CC]
    I'm now learning CSS, and find that where I specify in an external style sheet
    Not sure what it is you are trying to do but what you have at the moment is invalid code which is most likely why it doesn't work cross browser. (of cousre this css does not help  - line-height: 3.0; - 3.0 what? - px, ems?)
    Here's an example below of how you could do it. Give your table a class (below it is called .myTable) then you can start styling the <td> cell, and anything inside it by appending the element like an <h2> tag to the class name - .myTable h2
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <style>
    .myTable {
        width: 900px;
        margin: 0 auto;
    .myTable td {
    font-family:Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
    width: 150px;
    .myTable h2 {
        margin: 0;
        padding: 0;
    text-align:center;
    color: black;
    font-size: 1em;
    line-height: 50px;
    word-spacing: 10px;
    text-shadow: 3px 3px 5px #333;
    .myTable a {
        display: block;
        text-align: center;
    </style>
    </head>
    <body>
    <table class="myTable" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td><h2>1/28/2014</h2></td>
    <td><h2>the Sky</h2></td>
    <td ><h2>Ernest Gann</h2></td>
    <td ><h2>John</h2></td>
    <td ><h2>Jessica</h2></td>
    <td><a href="http://www.amazon.com/FATE-HUNTER-Ernest-K-Gann/dp/0671636030/ref=sr_1 _1?s=books&ie=UTF8&qid=1387462831&sr=1-1&keywords=ernest+gann">Learn More</a></td>
    </tr>
    </table>
    </body>
    </html>

  • Sync Text alignment in HTMLEditor and a PDF generated using FOP

    Hi,
    How to sync text alignment in HTMLEditor and a PDF generated using FOP ?
    I tried setting the dimensions of HTMLEditor and PDF in pixels by calculating the size in Pixels for A4 paper size with a particular dpi value.
    Have done the font settings as well. The problem is I see uneven line cuts in the PDF as compared to HTMLEditor.
    Thanks.

    It's not a realistic expectation. You are expecting the PDF produced by whoever provided your FOP implementation to observe exactly the same typographical rules as HTMLEditor. Basically it won't, and there is no way to enforce it. Line breaking/hyphenation/word spacing algorithms can be of great complexity. You are expecting two systems that aren't specified to agree, to agree.

  • Spry bar text alignment

    I need help with aligning text in main spry bar menu. Using DW 5.5, I have a 7 bank bar and 2 have 2 lines, remainder have 1. I need to BOTTOM align everything. I've look through forums, help menus, and u-tube and can not find this answer.
    I would also like to not have fixed widths, but widths varied per text length, but when I do that, obviously the 2 lined text banks turn into one line.

    To give you an idea of what I would do, have a look at the following by copying and pasting into a new document.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Therapy To Go Home Page</title>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    <style>
        margin: 0;
        padding: 0;
    html {
        background: #FFF;
        height: 100%;
        color: #000;
        font: 100% Verdana, Geneva, sans-serif;
    body {
        background: #FFC;
        width: 800px;
        margin: auto;
        font-size: 0.85em;
    #header {
        height: 148px;
        background: #C2A4FF;
    #nav {
        background: #EEE;
        height: 3.6em;
    #aside {
        width: 197px;
        float: left;
        padding: 20px;
    #article {
        margin-left: 240px;
        padding: 20px;
        background: #C2A4FF;
    ul.MenuBarHorizontal li {
        font-size: 1.05em;
        width: auto;
        text-align: center;
    ul.MenuBarHorizontal a {
        background-color: #EEE;
        padding: 0.5em 1.1em;
        color: #333;
    </style>
    </head>
    <body>
    <div id="header">
    </div>
    <div id="nav">
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="#"><br>Home</a>    </li>
        <li><a href="#"><br>Services</a></li>
        <li><a href="#">Benefits &amp;<br>Contraindications</a></li>
        <li><a href="#">Common  <br>Q&amp;A</a></li>
        <li><a href="#"><br>Pricing/Hours</a></li>
        <li><a href="#">Contact/About<br>Melanie</a></li>
        <li><a href="#"><br>Resources</a></li>
      </ul>
    </div>
    <div id="aside">
    <h2>This is the sidebar</h2>
    </div>
    <div id="article">
    <h1>This is the main article</h1>
      <p>Consectetur adipisicing elit, in reprehenderit in voluptate excepteur sint occaecat. Ullamco laboris nisi ut enim ad minim veniam, velit esse cillum dolore. Mollit anim id est laborum. Sed do eiusmod tempor incididunt qui officia deserunt cupidatat non proident.</p>
      <p>Quis nostrud exercitation in reprehenderit in voluptate lorem ipsum dolor sit amet. Ut aliquip ex ea commodo consequat. Velit esse cillum dolore mollit anim id est laborum. Consectetur adipisicing elit.</p>
      <p>Ut enim ad minim veniam, ullamco laboris nisi duis aute irure dolor. Eu fugiat nulla pariatur. Qui officia deserunt in reprehenderit in voluptate cupidatat non proident.</p>
    </div>
    <script>
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1");
    </script>
    </body>
    </html>
    Gramps

  • BUG:text-align:right; inline style not working on read-only af:InputText

    Hello,
    A bug in how af:InputText works if readonly=true. I have an af:InputText that has "text-align:right;" for the InlineStyle. The inputText is inside of an af:Column in af:Table. If the inputtext is readonly=false, it works properly and renders right-aligned. If readonly=true, then it renders left-aligned. I have also tried setting inlineStyle for the column to text-align:right;, and I get the same behavior.
    Regards,
    John

    John,
    Try adding formatType="number" to your af:column (if you want all data in that column aligned to the right). If you don't want the entire column right aligned, try using disabled instead of readonly.
    Jim

Maybe you are looking for

  • How do I remove an old apple ID from the APPS Store

    I gave my 27 inch iMac to my dad and thought I had everything deleted off my IMAC before I gave it to him.  I created an Apple ID for him; however, when we try to download updates from the APP Store it comes up with my old apple ID and asks me for th

  • How to do letter/report generation in Java....URGENT!!

    Java has been choosen to do my project, but one of my sub-part is letter/report generating. i have the letters(templete) in Microsoft Word and Word has the 'merge' document function which means that i can generate the letters by choosing the item fro

  • Apple iPhone 4S locked after Upgrade to iOS 7: How can i fix this?

    My Sister got an iPhone with iOS 6 and wanted to upgrade it to iOS 7.  We tried it via iTunes through the USB cable but something went wrong. I think iOS 7 downloaded correctly but, When the phone started up it had the message on the screen and the s

  • 6600LE *****! Apple please provide an alternative to this POS video card.

    Obvisously Apple doesn't care about G5 dual-core owners. Can't buy an upgrade video card. Spent $3000.00+ on a system with a graphics card designed for budget PC's. Someone at Apple should fire the engineers that suggested this card in the system. I

  • OPTION key, APPLE key and #zero keey won't work.

    Hey there, wondering if any one can help me out and tell me why none of these keys are working? i've tried everything is feels. i've tried going into internation/imput menu...etc checked the number lock check the caps lock. checked the keyboard setti