JTable's header's text LEFT alignment with GAP

nice day,
can you hepl me how to add Gap (5pixel space) from left column line to text in JTable header
(I found this code's line on this forum)
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.table.DefaultTableCellRenderer;
public class TblHead {
    public void createAndShowUI() {
        JFrame frame = new JFrame("Table Header Demo");
        String[] columnName = {
            "A", "B", "C", "D", "E", "F", "G", "H",
            "A", "B", "C", "D", "E", "F", "G", "H",
            "A", "B", "C", "D", "E", "F", "G", "H",
            "A", "B", "C", "D", "E", "F", "G", "H",
            "A", "B", "C", "D", "E", "F", "G", "H"
        Object[][] data = {{
                "A", "B", "C", "D", "E", "F", "G", "H",
                "A", "B", "C", "D", "E", "F", "G", "H",
                "A", "B", "C", "D", "E", "F", "G", "H",
                "A", "B", "C", "D", "E", "F", "G", "H",
                "A", "B", "C", "D", "E", "F", "G", "H"
        final JTable myTable = new JTable(data, columnName);
        ((DefaultTableCellRenderer) myTable.getTableHeader().getDefaultRenderer()).
                setHorizontalAlignment(SwingConstants.LEFT);
        myTable.setPreferredScrollableViewportSize(myTable.getPreferredSize());
        myTable.setPreferredScrollableViewportSize(new Dimension(800, 100));
        JScrollPane scrollPane = new JScrollPane(myTable);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(scrollPane);
        frame.pack();
        frame.setVisible(true);
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new TblHead().createAndShowUI();
}

nice day,
@ aterai
excelent kick, thank you
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class TblHeaderWithGap {
    public void createAndShowUI() {
        String[] columnName = {"A", "B", "C", "D", "E", "F", "G", "H",};
        Object[][] data = {{"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",},
            {"A", "B", "C", "D", "E", "F", "G", "H",}};
        JTable myTable = new JTable(data, columnName);
        myTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        final TableCellRenderer tcr = myTable.getTableHeader().getDefaultRenderer();
        myTable.getTableHeader().setDefaultRenderer(new TableCellRenderer() {
            @Override
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
                JLabel lbl = (JLabel) tcr.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                lbl.setBackground(Color.orange);
                lbl.setForeground(Color.blue);
                lbl.setFont(new Font("SansSerif", Font.BOLD, 12));
                lbl.setBorder(BorderFactory.createCompoundBorder(lbl.getBorder(), BorderFactory.createEmptyBorder(0, 5, 0, 0)));
                lbl.setHorizontalAlignment(SwingConstants.LEFT);
                return lbl;
        JFrame frame = new JFrame("Table Header Demo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(new JScrollPane(myTable));
        frame.setSize(630, 530);
        frame.setVisible(true);
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new TblHeaderWithGap().createAndShowUI();
}

Similar Messages

  • How to activate left alignment with Jpanels??

    Hello
    Please what is wrong. I cannot get left alignment activated. Otherwise panel appear nicely on screen. Here are the main parts of code:
    public void addComponentToPane(Container allComponents) throws IOException {
    allComponents.setLayout(new BoxLayout(allComponents, BoxLayout.PAGE_AXIS));
       panel_introduction.setAlignmentX(JPanel.LEFT_ALIGNMENT);
    allComponents.add(panel_introduction);
       allComponents.setVisible(true);
    }Edited by: wonderful123 on Oct 14, 2007 10:26 AM

    Alignment in a BoxLayout can be more complicated than it appears. Posting 4 lines of code does not give us enough information.
    So read the Swing tutorial on "How to Use Box Layout" for an explanation and examples of how alignment in a Box Layout works.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • JTable when scroll horiz column cells dont align with header

    Hi,
    I'm having a problem with my JTable. Everything was working correctly until i introduced checkboxes into a column on teh table. I have a table which has a horizontal scrollbar to scroll across all the columns. when i set one column to boolean values (instead of the strings 'true' and 'false' which were there before) when i scroll across the table the headers of each column no longer align with the data.
    Some columns resize when i scroll and the headings always stay the same width.
    I'm getting an error:
    java.lang.ClassCastException
         at javax.swing.JTable$BooleanRenderer.getTableCellRendererComponent(Unknown Source)The database stores int 0/1 for the boolean value so in the getValueAt method of my table model i return a boolean for this column.
    Any help would be greatly appreciated!
    Thanks,
    Saz

    Thanks for replying. Neither solution worked.
    The problem is definately with the boolean value because i'm getting a classcast exception: at javax.swing.JTable$BooleanRenderer.getTableCellRendererComponent(Unknown Source)
    I've a feeling this could be caused by some values being empty strings in the same column with booleans?
    Does anyone know what causes this error?
    Thanks,
    Sarah

  • How can I Left Align text in the Marker Arrangement tabs?

    It would make it easier to read the heading text of the Arrangement Marker tabs if they were Left Aligned when the project is minimised.
    Is there any way of setting this up or is it a default?

    I'm not aware of a way to make Firefox hide the first tab instead of the last tab; maybe there is an add-on with that feature.
    There is a hidden setting to open the new tab at the end of the bar instead of next to the page you're reading. Then, of course, you won't have this problem. Instead, you'll have the problem that it's hard to figure out which tab had that link in it. In case you want to try it out, here's how.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''tabs''' and pause while the list is filtered
    (3) Double-click the '''browser.tabs.insertRelatedAfterCurrent''' preference to switch it from true to false (it should turn bold)
    You're done here. You can keep it open in case you hate the change and watch to switch it right back. In that case, double-click again to switch it back to true.

  • The inline line object in the header is offset in facing pages. How can I make it align with the outer margin?

    I have a Pages document with a header that contains both text and a line (a shape, inline) below the text. When I make the document two-sided (facing pages), with a 1" inside margin and a .75" outside margin, the line offsets either left or right in each section of the document. When a section starts with a right-hand page, the line is right justified on ALL the pages in the section (1" from the left and .75" from the right), even though it should be .75" from the LEFT on the LEFT-HAND pages. When a section starts with a left-hand page, the line is left justified on ALL the pages in the section.
    Is there any way to get the header  line to align with the margins properly in facing pages?

    Hi Debra,
    Click on Inspector > Layout > Section > Configuration
    Is there a tick in 'Left and right pages are different'?
    Please post a screen shot of your headers. That will help to show what you are trying to achieve.
    To take a screen shot, hold down the shift and command keys, then type 4. The cursor will change to crosshairs. Release the shift and command keys. Drag over that part of your screen then release the mouse/trackpad. A screen shot will appear on your desktop. In a reply to a message, click on the camera icon in the Toolbar above your reply and
    Choose File > Choose > Insert Image
    You may have to try this twice. Camera icon sometimes needs a wake-up call, but works the second time.
    Remove any personal details before taking the screen shot.
    Regards,
    Ian.

  • Having trouble with left align in all versions of internet explorer

    I created my pages in Dreamweaver and uploaded them to my university's server.  Because we have a content management system and my boss didn't like the layout that we are able to use, I had to create separate html pages and place them into the CMS using iframes.  Each individual page has a banner on the top, and underneath that, a menu on the left side and the main body text on the right.    In Chrome, Safari, and Firefox, the menu takes up the appropriate amount of space (about 250 px) and then the body text is left aligned about 10 px to the right of the menu.  However, when I open the same page internet explorer, there is a large gap between the menu and the text. I have tried it within the iframes and without and both have this problem.  The URL is: http://chicago.medicine.uic.edu/UserFiles/Servers/Server_442934/File/Hematology/welcome.ht m.  Any suggestions? 
    Thanks!

    I don't  use tables for layouts.  You have more control with CSS. 
    Copy & paste this into a new HTML page and play with it.
    <!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>
    <base target="_top" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    /* Layout */
    body {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 16px;
    background: #edeadb;
    #wrapper {
    width: 925px;
    margin:0 auto; /**centered on screen**/
    overflow:hidden; /**to contain floats**/
    #header { }
    #leftSidebar {
    width: 225px;
    float:left;
    border-right: 1px double navy;
    font-size:12px;
    #mainContent {
    margin-left: 255px;
    /**left side menu**/
    #leftSidebar ul li a, .menu ul li a:visited {display:block !important; text-decoration:none; color:#000; width:220px !important; height:30px; text-align:left;  text-indent: 10px;   border:1px solid #fff; border-width:1px 1px 0 0; background:#070738 !important; color:#FFFFFF !important;
    line-height:30px; font-size:11px;}
    #leftSidebar ul {padding:0 !important; margin:0 !important; list-style-type: none !important; }
    #leftSidebar ul li {float:left; margin-right:1px !important; position:relative !important;}
    #leftSidebar ul li ul {display:none !important}
    li.leaf, li.collapsed, li.expanded {
      list-style-image: none;
      list-style: none;
      list-style-type: none;
    #leftSidebar ul {
      list-style-image: none;
      list-style: none;
      list-style-type: none;
    /* specific to non IE browsers */
    #leftSidebar ul li:hover a {color:#fff !important; background:#3b3b5c !important;}
    #leftSidebar ul li:hover ul {display:block !important; position:absolute !important; top:0; left:220px; width:105px;}
    #leftSidebar ul li:hover ul li a.hide {background:#070738; color:#FFFFFF;}
    #leftSidebar ul li:hover ul li:hover a.hide {width:150px;}
    #leftSidebar ul li:hover ul li ul {display: none !important;}
    #leftSidebar ul li:hover ul li a {display:block !important; background:#070738 !important; color:#FFFFFF !important; width:150px;}
    #leftSidebar ul li:hover ul li a:hover {background:#3b3b5c !important; color:#FFFFFF !important; list-style-type: none !important;}
    #leftSidebar ul li:hover ul li:hover ul {display:block !important; position:absolute !important; left:151px; top:0; color:#FFFFFF;}
    #leftSidebar ul li:hover ul li:hover ul li a {display:block; width:200px; background:#070738 !important; color:#FFFFFF;}
    #leftSidebar ul li:hover ul li:hover ul li a:hover {background:#3b3b5c !important; color:#fff;}
    /**end menu**/
    </style>
    </head>
    <body>
    <div id="wrapper">
    <div id="header">
    <img src="http://chicago.medicine.uic.edu/UserFiles/Servers/Server_442934/Image/Hematology/mainbannerredstripe.jpg" alt="UIC Hemaotology/Oncology" />
    <!--end header --></div>
    <div id="leftSidebar">
    <ul>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/">Welcome</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/medicine/hemonc/hemonc_calendar/" target="new">Section Calendar</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/faculty/">Faculty</a></li>
    <li><a href="ttp://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/">Fellowship</a>
    <ul>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/about/">About the Program</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/curriculum/">Curriculum</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/mph/">Additional UIC Programs for Fellows</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/physicianscientist/">Clinical Investigator Pathway</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/apply/">How to Apply</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/contact/">Contact Us</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/fellowship/currentfellows/">Current Fellows</a></li>
    </ul>
    </li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/research/">Research</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/studentrotations/">Medical Student Rotations</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/dom_sicklecell">UIC Sickle Cell Center</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/BMT/">UIC Blood &amp; Marrow Transplant Program</a>
    <ul>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/BMT/about/">About Us</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/BMT/research/">Stem Cell Research</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/BMT/contact">Contact Us</a></li>
    </ul>
    </li>
    <li><a href="http://www.chicago.medicine.uic.edu/cancercenter/clinical_trials/">Cancer Clinical Trials</a></li>
    <li><a href="http://www.chicago.medicine.uic.edu/cancercenter">UIC Cancer Center</a></li>
    <li><a href="http://uillinoismedcenter.org/">UIC Medical Center</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/macneal/">UIC Cancer Center at MacNeal</a>
    <ul>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/macneal/about/">About Us</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/macneal/faculty/">Faculty</a></li>
    <li><a href="http://chicago.medicine.uic.edu/departments___programs/departments/Medicine/hemonc/macneal/contact/">Contact Us</a></li>
    </ul>
    </li>
    </ul>
    <img src="http://chicago.medicine.uic.edu/UserFiles/Servers/Server_442934/Image/Hematology/line.jpg" alt="" /> <br /><br />University of Illinois at Chicago <br />
    Section of Hematology/Oncology <br />
    840 South Wood Street <br />
    Suite 820-E CSB, MC 713 <br />
    Chicago, IL 60612 <br />
    Phone: (312) 996-9424 <br />
    Fax: (312) 413-4131
    <!--end leftSideBar --></div>
    <div id="mainContent">
    <h1>Welcome!</h1>
    <p>Welcome to the Section of Hematology/Oncology at the University of Illinois at Chicago. There are over twenty-five faculty members that are committed to providing the highest quality of patient care. The section houses a variety of outstanding programs including an exceptional stem cell transplant program, a nationally recognized sickle cell program, and a strong neuro-oncology program.  We are one of the few universities that participate in the Minority-Based Community Clinical Oncology Program and are also a member of the Myeloproliferative Disease Program, both being NCI-funded programs.</p>
    <p>The program continues to be a leader in expanding the possibilities of cancer research.  Patients are given the opportunity to participate in a variety of pivotal clinical trials in thirteen different disease-type areas.  Our research teams work to ensure that tomorrow's science is practiced as today’s medicine.</p>
    <p>Our three-year ACGME Accredited fellowship program offers fellows the opportunity to work with a  range of hematologic and oncologic disorders in a variety of settings in the Chicagoland area.  Fellows rotate at the Jesse Brown VA Medical Center, Mount Sinai Hospital, Mercy Hospital and now with MacNeal Hospital in Chicago’s west suburb of Berwyn.  Fellows are given the opportunity to focus on both clinical and bench research projects under the mentorship of our faculty members.</p>
    <p>We welcome you to take a look at what our section has to offer.</p>
    <!--end maincontent --></div>
    <!--end wrapper --></div>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Align text between columns with space after paragraphs.

    I am creating a proposal with a ton of text. I used to align everything to a baseline grid with justified type and indented paragraphs. Recently, however, I was asked to change the style to left aligned text with spaces between the paragraphs. The text flows into two columns per page, but I'll be damned if I can get the text to line up. I've tried different baseline grids as well as before and after spacing. I think my issue might be trying to keep paragraph spacing as half the leading. If my copy text leading and baseline are 14 or 7 pt, will a 7 pt paragraph space after work?
    My leading and pt size is below, if anyone can point me to a solution.
    Body copy: 9 pt font/14 pt leadingSpace before/after: 3.5/3.5
    Subheaders: 10 pt font/ 14 pt leadingSpace before/after: 7/3.5
    Baseline: tried both 14 pt and 7 pt

    That's what I thought. I was taught to either have an indented second paragraph or to separate the paragraphs by half the leading of the type. Seems like it's impossible to align the text that way. A full leading separation (14 pt) between paragraphs seems excessive though.

  • Left aligned text does not create a link in Muse 2014.

    I am creating my own breadcrumb and noticed that if the text is left aligned the first word or words of the breadcrumb in the text box are near impossible to highlight with the text tool, and any page link added does not function. However, if the same breadcrumb is right aligned within the same text box everything works as it should and all the links function. Realign the text to left and the first link of the breadcrumb is knocked out of action again. I have tried adding padding or space to push the first link away from the left edge of the text box but that does not work.
    Also, if the first link of the breadcrumb is say three words long, and the link is applied to all three words only the last word functions, example "Store Home Page > Widgets 1 > Widgets 2" here the only links that would function would be "Page > Widgets 1 > Widgets 2" right align and "Store Home Page > Widgets 1 > Widgets 2" function.

    Do you have a URL to a site that demonstrates the problem?

  • Text that is both centered and left aligned

    I have many text frames that contain 2 or 3 paragraphs. The paragraphs need to be left aligned. However, they also need to be centered horizontally within their respective text frames (like the example on the right in the picture below). Each set of paragraphs has different lengths, so it would be tedious to have to change the indent on each one or change tabs for each one.
    Is it possible to do this in InDesign CS4 without having to manually position each one?

    jay fresno wrote:
    Peter,
    A table is a great idea. However, I don't think it will work in this case because of other layout considerations. I'm doing a layout that consists of picture frames and text frames. Each picture frame and text frame are grouped together. On each page I'm planning to have a large text frame that contains multiple groups of picture frames and text frames. In the image below there are 9 groups within a single text frame.The large text frames that contain all the groups are threaded to another large text frame on the next page, which also contains sets of grouped picture and text frames.
    The reason for this type of layout is so that a user can insert a new picture/text frame group and all the other groups will automatically move to the right. Or, if a group is deleted, all the other groups will move to the left.
    On some of the pages, there will be a different layout with large group in the lower part of the page (as in the bottom image). At this time, in the bottom image, there are 3 groups in the top row, and there is a single group in the bottom row that contains 3 sets of picture/image groups.
    I am really wrestling with this layout. How the text aligns is a minor consideration. The main challenge is how to make it easy for the user to insert and delete groups of picture/text frames so that all the groups flow the way they should.
    I hope I've described this understandably. I'm open to any suggestions that will make this layout easier to use.
    Hi, Jay:
    Pictures are worth zillions of words, didn't you hear?<G>
    I'm not a designer or layout production guy, so I'm just speculating. If I understand your need to add or delete one or more picture/caption items and have others fill in, horizontal threaded frames may work. For the first page, three horizontal frames, threaded from top-right to middle-left, mid-right to bottom-left. Delete any unit and others flow back; add any unit(s) and the other flow forward - you'd need Smart Text Reflow to flow to a new page.
    Something similar might work for the second page's layout.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How to make numbers in message text input  fields left aligned?

    Hi Friends
    I have completed one of my task .but getting result right side of the field.
    how to make numbers in message text input  fields left aligned?
    Thanks
    Aravinda

    Hi ,
    Sorry for late replay i am trying this alos not set that page....
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    and one more that kff field working is fine for ex display any text pled displayed properly and only problem is not set the value and HrSitKeyFlex6 and HrSitKeyFlex7 fields are perfectly get the values but not pront HrSitKeyFlex8 that only my issue....
    Regards,
    Srini

  • Text value not aligned with text caption

    Hello,
    In my text fields, the text value is always slightly raised from the text caption. Is there a way to get them to align?
    Thanks,
    Gail

    Hi Geo,
    I have tried top, middle, and bottom alignment and although they give different results, none are actually aligned with the caption text.
    The top and middle alignments still have the value text raised above the caption text.
    The bottom alignment gives a puzzling result of the value text being sunk below the caption text and actually somewhat cut off at the bottom.
    For some of my text boxes I have thrown together a work-around solution for this by setting the baseline shift for the value text to -3pt. Although this does seem to work, I don't imagine this is how the program was INTENDED to be used and I'd like to understand how to get the text aligned without having to tweak baselines.
    Any ideas or suggestions are welcome.
    Thanks,
    Gail

  • How to align text in margin with text in document

    I am using InDesign CS3 and am trying to figure out how to add text to the left of my document where there are figures and tables (so I can later create a table of figures and table of tables). I cannot get the text "Figure 1", "Figure 2", etc. to line up horizontally in the left margin with the figure I placed in the center of the document. What am I doing wrong?

    > What am I doing wrong?
    It's hard to say what you're doing wrong without first knowing what
    you're doing. How are you trying to line up text with figures? In what
    way does it not work?
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • How to Center Text in Menu and Left Align in Sub Menu

    Hi - I'm looking to Center the text in the main menu of a Spry Menu in DW CS 5.5 but left align the sub menu's.
    If someone could point me in the right direction it would be much appreciated.
    Thanks
    J

    See here http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    Gramps

  • Problem with formatting text in textobjects with right aligned tabulators

    Post Author: Jens Kluesener
    CA Forum: General
    HiI want to print out some values in a line. So I put a Textobject in the Report with some right aligned tabulators (left aligned tabulators working fine). Then I insert a formula. In this formula i do this:"1"chr(9)"2"chr(9)"3"chr(9)"4"chr(9)"5"chr(9)"6"chr(9)"7"Look:            Many ThanksJens

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

  • Why is InDesign6 rendereing left-aligned text as right-aligned?

    I have a Word Document and we're feeding it to InDesign 5.5 and InDesign 6. The text are left-aligned and were rendered as such by 5.5. InDesign 6 renders it as right-aligned. I'm not sure why this is happening!
    Microsoft Word
    Indesign 5.5
    InDesign 6

    ^ I don't think so. I'm on a trial version that I downloaded from the english site.

Maybe you are looking for