Aligning text in a text area

Is it possible to align text in a JTextArea?

also not sure what you're after, but try this
import javax.swing.*;
import java.awt.*;
class Testing extends JFrame
  public Testing()
    setLocation(300,200);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    String[] name = {"joe","christopher","fred","robert","al","josephine","mary"};
    String[] income = {"100","100000","10000","1","88888","50000","200000"};
    JPanel jp = new JPanel();
    JTextArea ta = new JTextArea(20,30);
    JScrollPane sp = new JScrollPane(ta);
    sp.setPreferredSize(new Dimension(175,150));
    jp.add(sp);
    getContentPane().add(jp);
    pack();
    String pad = "                    ";
    ta.setFont(new Font("monospaced",Font.PLAIN,12));//comment out this line to see difference
    for(int x = 0; x < name.length; x++)
      ta.append(name[x]+(pad+income[x]).substring(name[x].length()+income[x].length())+"\n");
  public static void main(String[] args){new Testing().setVisible(true);}
}

Similar Messages

  • How do I center align the text in my text boxes if they are currently right aligned?

    I created a client questionnaire in Word and then turn it into a PDF and created the text boxes necessary. The problem I am having in Adobe XI Pro is that I want all of the text in my text boxes to be centrally aligned rather than left aligned. However, when creating and editing the text boxes, I see no option to help me do so. When clients fill out the form it looks messy because the information that the fill in tables in not centrally aligned, so it makes my tables look poorly organised. Help would be much appreciated, thank you.

    In Form Edit mode, right-click the field(s) and select Properties - Options, and under Alignment select "Center".

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • How to align ADF column header text

    Hi,
    I want to align ADF column header text to center regardless of whether the contents are text (which should be left aligned - done by the "formatType" attribute) or number (which should be right aligned - done by the "formatType" attribute) within a ADF table. the styleclass attributes also doesnt work. can anybody help me pl?
    Afi

    Hi Afi,
    use
    <af:column>
      <f:facet name="header">
        <af:panelHorizontal halign="center">
          <af:outputText value="#{bindings.DeptView.labels.Dname}"/>
        </af:panelHorizontal>
      </f:facet>
      <af:inputText value="#{row.Dname}"/>
    </af:column>instead of
    <af:column headerText="#{bindings.DeptView.labels.Dname}">
      <af:inputText value="#{row.Dname}"/>
    </af:column>Rado

  • Text link + active selectable area enlargement

    Hi
    I work only in DW and have no code experience at all/ I also do everything by visual
    I have a button
    <table width="291" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="200" height="40" bgcolor="#009966" class="button_example"><a href="#ind">button</a></td>
      </tr>
    </table>
    I would like to make the whole area 200 x 40 selectable and not just the text >button<
    Is this possible in CS4 DW

    Good afternoon All
    I wonder if you could help me.
    I am currently trying to centre pages and get my fireworks/spry website menu to work.
    On some of the pages the menus work and can be seen above the content however, on other pages, the content isn't centred, nor do the menu's work.
    When I created the templates for the website, I used the basic version supplied with the software that was supposed to centre the pages.
    Below are code examples:
    DOESN'T WORK
    <%@LANGUAGE="JAVASCRIPT
    " CODEPAGE="65001"%>
    <!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"><!-- InstanceBegin template="/Templates/advertising_privacy.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Viva Fashion.co.uk's Advertising Rates</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    @import url("../menu_viva_fashion_site/viva_fashion_menu.css");
    @import url("../menu_useful_health_contacts/useful_health_and_beauty_contacts.css");
    body {
         margin: 0;/* center layout */
         padding: 0;
         color: #FFF;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 100%;
         line-height: 1.4;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
         padding: 0;
         margin: 0;
    h1, h2, h3, h4, h5, h6, p {
         margin-top: 0;      /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
         padding-right: 15px;
         padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
         border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
         color: #999999;
         text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
         color: #FF0099;
         text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
         text-decoration: none;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
         width: 1100px;
         background: #FFF; /* the auto value on the sides, coupled with the width, centers the layout */
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
         background: #FFF;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
         padding: 10px 0;
    /* ~~ The footer ~~ */
    .footer {
         padding: 10px 0;
         background: #CCC49F;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
         clear:both;
         height:0;
         font-size: 1px;
         line-height: 0px;
    #apDiv1 {
         position:absolute;
         left:1px;
         top:2px;
         width:744px;
         height:80px;
         z-index:1;
    #apDiv2 {
         position:absolute;
         left:4px;
         top:85px;
         width:1100px;
         height:25px;
         z-index:2;
         background-color: #CCCCCC;
    #apDiv3 {
         position:absolute;
         left:1px;
         top:120px;
         width:670px;
         height:800px;
         z-index:3;
    #apDiv4 {
         position:absolute;
         left:2px;
         top:910px;
         width:670px;
         height:500px;
         z-index:4;
    #apDiv5 {
         position:absolute;
         left:670px;
         top:120px;
         width:130px;
         height:1300px;
         z-index:5;
    #apDiv6 {
         position:absolute;
         left:804px;
         top:120px;
         width:300px;
         height:1300px;
         z-index:6;
         background-color: #000000;
    -->
    </style>
    <link href="Vivavocefashion.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .style1 {color: #666666}
    #apDiv7 {
         position:absolute;
         left:2px;
         top:1430px;
         width:1100px;
         height:60px;
         z-index:7;
         background-color: #000000;
    .style10 {font-weight: bold}
    .style12 {font-weight: bold}
    .style14 {font-weight: bold}
    .style16 {font-weight: bold}
    .style2 {font-weight: bold}
    .style4 {font-weight: bold}
    .style6 {font-weight: bold}
    .style8 {font-weight: bold}
    #apDiv8 {
         position:absolute;
         left:4px;
         top:85px;
         width:1100px;
         height:25px;
         z-index:8;
    #apDiv9 {
         position:absolute;
         left:11px;
         top:10px;
         width:174px;
         height:44px;
         z-index:9;
    #apDiv10 {
         position:absolute;
         left:6px;
         top:4px;
         width:172px;
         height:60px;
         z-index:9;
    #apDiv11 {     position:absolute;
         left:-7px;
         top:27px;
         width:1100px;
         height:20px;
         z-index:1;
    </style>
    <script language="JavaScript1.2" type="text/javascript" src="../menu_viva_fashion_site/mm_css_menu.js"></script>
    </head>
    <div id="apDiv1">
      <table width="1099" border="0">
        <tr>
          <td width="327"><a href="../index.html"><img src="../graphics/viva_fashion_logo.gif" width="322" height="78" alt="viva fashion.co.uk logo" longdesc="http://www.vivafashion.co.uk" /></a></td>
          <td width="762"><span class="Headerpink">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="65">
        <param name="movie" value="../animations/top_banner_advert.swf" />
        <param name="quality" value="high" />
        <embed src="../animations/top_banner_advert.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="65"> </embed>
      </object>
    </span>
            </td>
        </tr>
      </table>
    </div>
    <body>
    <div id="apDiv7">
      <div align="left"><span class="Bodytextwhite"><a href="advertising.html" class="Bodytextwhite">Advertising</a> | <a href="privacy-policy.html" class="Bodytextwhite">Privacy Policy</a> | <a href="site-map.html" class="Bodytextwhite">Site Map</a> | <a href="subscribe.html" class="Bodytextwhite">Subscription Service &amp; Feedback</a> | <a href="user-agreement.html" class="Bodytextwhite">Useragreement</a></span><span class="Bodytextpink"><span class="Bodytextwhite"> <br />
        Contact us at <a href="mailto:[email protected]">[email protected]</a> <br />
        <a href="http://www.VivaFashion.co.uk" target="_blank">http://www.VivaFashion.co.uk</a> A Fashion Shopping and Retail News Website &copy; 2000-2011. All rights reserved.</span></span>  </div>
    </div>
    <div id="apDiv2">
      <div id="FWTableContainer1630063442">
        <div align="left"><img name="viva_fashion_menu" src="../menu_viva_fashion_site/viva_fashion_menu.jpg" width="1100" height="20" border="0" id="viva_fashion_menu" usemap="#m_viva_fashion_menu" alt="" />
          <map name="m_viva_fashion_menu" id="m_viva_fashion_menu">
            <area shape="rect" coords="1,0,55,20" href="http://www.vivafashion.co.uk/index.html" target="None" alt="" />
            <area shape="rect" coords="766,0,857,25" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_0', 'MMMenu0314125112_0',766,25,'viva_fashion_menu');"  />
            <area shape="rect" coords="640,0,714,19" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_1', 'MMMenu0314125112_1',640,19,'viva_fashion_menu');"  />
            <area shape="rect" coords="482,0,584,19" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_2', 'MMMenu0314125112_2',482,19,'viva_fashion_menu');"  />
            <area shape="rect" coords="322,0,425,19" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_3', 'MMMenu0314125112_3',322,19,'viva_fashion_menu');"  />
            <area shape="rect" coords="193,0,275,19" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_4', 'MMMenu0314125112_4',193,19,'viva_fashion_menu');"  />
            <area shape="rect" coords="92,0,157,25" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0314125112_5', 'MMMenu0314125112_5',92,25,'viva_fashion_menu');"  />
          </map>
        </div>
        <div id="MMMenuContainer0314125112_0">
          <div id="MMMenu0314125112_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="fashion-shopping.html" id="MMMenu0314125112_0_Item_0" class="MMMIFVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Editor's Shopping List </a> <a href="fashion-contacts-discount.html" id="MMMenu0314125112_0_Item_1" class="MMMIVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Discount Shopping Links </a> <a href="fashion-contacts-discount-village.html" id="MMMenu0314125112_0_Item_2" class="MMMIVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Discount Village Links </a> <a href="shopping-online-index.html" id="MMMenu0314125112_0_Item_3" class="MMMIVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Shopping Links </a> <a href="high-index.html" id="MMMenu0314125112_0_Item_4" class="MMMIVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Stockists  </a> <a href="fashion-contacts-vintage.html" id="MMMenu0314125112_0_Item_5" class="MMMIVStyleMMMenu0314125112_0" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_0');"> Vintage Links </a>        </div>
          </div>
        </div>
        <div id="MMMenuContainer0314125112_1">
          <div id="MMMenu0314125112_1" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="book-reviews.html" id="MMMenu0314125112_1_Item_0" class="MMMIFVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Book Reviews </a> <a href="dates-for-your-diary.html" id="MMMenu0314125112_1_Item_1" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Diary Dates </a> <a href="consumer-lifestyle-show.html" id="MMMenu0314125112_1_Item_2" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Fashion Lifestyle Shows </a> <a href="fashion-news.html" id="MMMenu0314125112_1_Item_3" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Fashion News </a> <a href="fashion-news-designers.html" id="MMMenu0314125112_1_Item_4" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> New Designer Launches </a> <a href="fashion-news-websites.html" id="MMMenu0314125112_1_Item_5" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> New Websites </a> <a href="fashion-news-products.html" id="MMMenu0314125112_1_Item_6" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Product Launches </a> <a href="fashion-spotlight.html" id="MMMenu0314125112_1_Item_7" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Spotlight on Luxury Labels </a> <a href="fashion-trends.html" id="MMMenu0314125112_1_Item_8" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Trends </a> <a href="fashion-news-stores.html" id="MMMenu0314125112_1_Item_9" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Store Openings </a> <a href="fashion-street-looks.html" id="MMMenu0314125112_1_Item_10" class="MMMIVStyleMMMenu0314125112_1" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_1');"> Street Style </a>        </div>
          </div>
        </div>
        <div id="MMMenuContainer0314125112_2">
          <div id="MMMenu0314125112_2" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="advertising.html" id="MMMenu0314125112_2_Item_0" class="MMMIFVStyleMMMenu0314125112_2" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_2');"> Advertising Rates </a> <a href="retail-classifieds.html" id="MMMenu0314125112_2_Item_1" class="MMMIVStyleMMMenu0314125112_2" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_2');"> Retail Classifieds </a> <a href="retail-jobs.html" id="MMMenu0314125112_2_Item_2" class="MMMIVStyleMMMenu0314125112_2" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_2');"> Retail Jobs </a>        </div>
          </div>
        </div>
        <div id="MMMenuContainer0314125112_3">
          <div id="MMMenu0314125112_3" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="celebrity-oscars.html" id="MMMenu0314125112_3_Item_0" class="MMMIFVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Awards Show Fashion </a> <a href="beauty-celebrity.html" id="MMMenu0314125112_3_Item_1" class="MMMIVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Celebrity Beauty </a> <a href="celebrity-news-gossip.html" id="MMMenu0314125112_3_Item_2" class="MMMIVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Celebrity News </a> <a href="celebrity-parties.html" id="MMMenu0314125112_3_Item_3" class="MMMIVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Celebrity Parties </a> <a href="celebrity-focus.html" id="MMMenu0314125112_3_Item_4" class="MMMIVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Celebrity Profile </a> <a href="model-profile.html" id="MMMenu0314125112_3_Item_5" class="MMMIVStyleMMMenu0314125112_3" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_3');"> Model Profile </a>        </div>
          </div>
        </div>
        <div id="MMMenuContainer0314125112_4">
          <div id="MMMenu0314125112_4" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="graduate-fashion-week.html" id="MMMenu0314125112_4_Item_0" class="MMMIFVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Emerging Talent </a> <a href="retail-trends.html" id="MMMenu0314125112_4_Item_1" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Fashion Week Reports </a> <a href="retail-exhibitions.html" id="MMMenu0314125112_4_Item_2" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Important Dates </a> <a href="model-index.html" id="MMMenu0314125112_4_Item_3" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Model Agency Index </a> <a href="photographers-index.html" id="MMMenu0314125112_4_Item_4" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Photographers  Index </a> <a href="retail-appointments.html" id="MMMenu0314125112_4_Item_5" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Retail Appointments </a> <a href="retail-feature.html" id="MMMenu0314125112_4_Item_6" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Retail Features </a> <a href="retail-news.html" id="MMMenu0314125112_4_Item_7" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Retail News </a> <a href="retail-shares.html" id="MMMenu0314125112_4_Item_8" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Retail Share Prices </a> <a href="retail-wholesalers.html" id="MMMenu0314125112_4_Item_9" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Retail Wholesalers Index </a> <a href="retail-trade-show.html" id="MMMenu0314125112_4_Item_10" class="MMMIVStyleMMMenu0314125112_4" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_4');"> Trade Show Reviews </a>        </div>
          </div>
        </div>
        <div id="MMMenuContainer0314125112_5">
          <div id="MMMenu0314125112_5" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();">
            <div align="left"><a href="beauty-bargains.html" id="MMMenu0314125112_5_Item_0" class="MMMIFVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Budget Buys </a> <a href="beauty-news.html" id="MMMenu0314125112_5_Item_1" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Beauty News </a> <a href="book-reviews.html" id="MMMenu0314125112_5_Item_2" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Book Reviews </a> <a href="beauty-feature.html" id="MMMenu0314125112_5_Item_3" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Beauty Features </a> <a href="health-beauty-features.html" id="MMMenu0314125112_5_Item_4" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Health Features </a> <a href="beauty-trends.html" id="MMMenu0314125112_5_Item_5" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> New Season Looks </a> <a href="beauty-contacts.html" id="MMMenu0314125112_5_Item_6" class="MMMIVStyleMMMenu0314125112_5" onmouseover="MM_menuOverMenuItem('MMMenu0314125112_5');"> Stockists / Book an Appointment </a>        </div>
          </div>
        </div>
      </div>
    </div>
    <div align="left"><!-- InstanceBeginEditable name="mainbodycontent" -->
    <div id="apDiv3" style="overflow: auto; height: 1300px; width: 670px;background-color: #FFF;">
      <p><span class="Bodytext"><span class="Header"><b>HOW CAN WE HELP YOU?</b></span><br />
        Consumers can't wait to get there hands on the latest must-have item or information on what the new season has to offer. Team information like that with business and celebrity gossip and what do you get? A heady mix that accommodates the tastes of a sizable share of the fashion and beauty market. </span></p>
      <p class="Bodytext">With technology advancing at a galloping pace that has ensured Internet users exposure to information and convenience shopping facilities in an instant, more and more companies are realising the importance of getting their brand noticed through this medium than waiting on the production cycles of others.</p>
      <p><span class="Bodytext">Time waits for no man. Neither does fashion. See below for advertising rates or contact us directly for collaborative advertising campaigns. </span></p>
      <p><b class="Header">WHAT'S AVAILABLE/ADVERT SPECIFICATION</b></p>
      <table width="500" border="1" align="center">
        <tr>
          <td width="250" bgcolor="#CCCCCC" class="Header"><div align="center"><strong>Banners</strong></div></td>
          <td width="250" align="left" valign="top" bgcolor="#CCCCCC"><div align="center" class="Header"><strong>Tiles</strong></div></td>
        </tr>
        <tr>
          <td width="250"><b><span class="Blackttext12">(Top Only) Dimensions:</span></b><span class="Blackttext12"> 468 x 60 pixels</span></td>
          <td width="250" align="left" valign="top"><span class="Blackttext12"><b>Dimensions:</b> 120 x 90 pixels</span></td>
        </tr>
        <tr>
          <td width="250"><span class="Blackttext12"><b>Formats:</b> gif, gif89, jpeg, Flash, HTML</span></td>
          <td width="250" align="left" valign="top"><span class="Blackttext12"><b>Formats:</b> gif or jpg (non-animated, roll-over)</span></td>
        </tr>
        <tr>
          <td width="250" valign="top"><p align="left"><span class="Blackttext12"><b>File size:</b> 20K max</span><br />
          </p></td>
          <td width="250" align="left" valign="top"><div align="left"><span class="Blackttext12"><b>File size:</b> 5K max</span><br />
          </div></td>
        </tr>
        <tr>
          <td width="250" bgcolor="#CCCCCC" class="Header"><div align="center"><strong>side bar adverts &amp; box adverts </strong></div></td>
          <td width="250" align="left" bgcolor="#CCCCCC"><div align="center" class="Header"><strong>pop-ups</strong></div></td>
        </tr>
        <tr>
          <td width="250"><b><span class="Blackttext12">Dimensions:</span></b><span class="Blackttext12"> 120 x 310 pixels or </span></td>
          <td width="250" align="left"><span class="Blackttext12"><b>Dimensions:</b> 250 x 250 pixels</span></td>
        </tr>
        <tr>
          <td width="250"><span class="Blackttext12"><b>Dimensions:</b> 120 x 240 pixels or</span></td>
          <td width="250" align="left"><span class="Blackttext12"><b>Formats:</b> Javascript displayed on a HTML page for five seconds before closing</span></td>
        </tr>
        <tr>
          <td width="250"><span class="Blackttext12"><b>Dimensions:</b> 125 x 125 pixels</span></td>
          <td width="250" align="left"><span class="Blackttext12"><b>File size:</b> 20K Max</span></td>
        </tr>
        <tr>
          <td width="250"><span class="Blackttext12"><b>Formats:</b> gif, gif89, jpeg, Flash, HTML</span></td>
          <td width="250" align="left"> </td>
        </tr>
        <tr>
          <td width="250"><p align="left"><span class="Blackttext12"><b>File size:</b> 20K max</span></p></td>
          <td width="250" align="left"><p align="left"><span class="Blackttext12"><br />
            <br />
          </span></p></td>
        </tr>
      </table>
      <br />
      <p><b class="Header">LEAD TIMES</b><br />
        <br />
        <span class="Bodytext">Production deadlines do not include time needed for revisions made either by agency or the advertisers in-house design department. Publication of adverts depends solely on the type of advertisement or campaign the advertiser runs with us and the time at which the advertisement is received. Advertisements received after the production deadline is not guaranteed for inclusion.</span><br />
      </p>
      <table width="500" border="1" align="center">
        <tr>
          <td width="250" align="left" bgcolor="#CCCCCC"><div align="left"><b class="Blackttext12">ADVERTISEMENT FORMAT</b></div></td>
          <td width="250" bgcolor="#CCCCCC"><b class="Blackttext12">PRODUCTION DEADLINE</b></td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">E-Mail Text Links (copy and url t.b.supplied)</div></td>
          <td width="250" class="Blackttext12">-</td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">Gif/Animated Gif</div></td>
          <td width="250" class="Blackttext12">4 Business Days</td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">HTML</div></td>
          <td width="250" class="Blackttext12">4 Business Days</td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">Javascript</div></td>
          <td width="250" class="Blackttext12">-</td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">Keyword Campaigns</div></td>
          <td width="250" class="Blackttext12">-</td>
        </tr>
        <tr>
          <td width="250" align="left" class="Blackttext12"><div align="left">Sidebar</div></td>
          <td width="250" class="Blackttext12">4 Business Days</td>
        </tr>
      </table>
      <br />
      <p><b><span class="Header">PRICING</span></b></p>
      <table width="500" border="1" align="center">
        <tr bgcolor="#CCCCCC">
          <td class="Blackttext12"><b>Cost per quarterly period</b></td>
          <td class="Blackttext12"><div align="center"><b>4 weeks</b></div></td>
          <td class="Blackttext12"><div align="center"><b>12 weeks</b></div></td>
          <td class="Blackttext12"><div align="center"><b>26 weeks</b></div></td>
          <td class="Blackttext12"><div align="center"><b>52 weeks</b></div></td>
        </tr>
        <tr>
          <td colspan="5" class="Blackttext12"><div align="left"><b>Tile Adverts - For 24hour Advertising Presence</b></div></td>
        </tr>
        <tr>
          <td class="Blackttext12">Pounds Sterling</td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
        </tr>
        <tr>
          <td colspan="5" class="Blackttext12"><div align="left"><b>Banner and Side Bar Adverts (Discount another &pound;200 for Side Bar/Box Adverts)</b></div></td>
        </tr>
        <tr>
          <td class="Blackttext12">Pounds Sterling</td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
        </tr>
        <tr>
          <td colspan="5" class="Blackttext12"><div align="left"><b>Pop-Up Box</b></div></td>
        </tr>
        <tr>
          <td class="Blackttext12">Pound Sterling</td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
          <td class="Blackttext12"><div align="center"><a href="mailto:[email protected]">Contact Us</a></div></td>
        </tr>
      </table>
      <p><span class="Blackttext12">For Euros and dollars please use the following link to convert:</span> <span class="Bodytext"><a href="http://www.xe.com">http://www.xe.com</a>.</span></p>
      <p><span class="Header"><b>GENERAL REQUIREMENTS</b></span></p>
      <ul>
        <li>
          <p class="Bodytext">Images<br />
            All images must have alternate (descriptive and concise) text to be used in the absence of images.<br />
            <br />
          </p>
        </li>
        <li>
          <p class="Bodytext">Optimisation Guidelines<br />
            Images must be optimised to the lowest-possible bit depth.<br />
            <br />
          </p>
        </li>
        <li class="Bodytext">
          <p>It is recommended that fewer colours are used for advertisements. Visit browser safe colour palette sites for more guidelines.<br />
          </p>
        </li>
      </ul>
      <p><span class="Header"><strong>Testing</strong><span class="Bodytext"><br />
        <br />
        VIVAFASHION.CO.UK </span></span><span class="Bodytext">will not be held responsible for the testing of advertisements. All advertisements, must be tested prior to delivery for compatibility on the following browsers and platforms:<br />
          -Netscape 3.x and 4x for Windows 3.1 and Macintosh OS 8x<br />
          -Microsoft Internet Explorer for Windows 3.1 and Macintosh OS 8x<br />
          - AOL 3.x for Windows 3.1 and Macintosh OS 8x</span></p>
      <p><br />
        <b class="Header">GENERAL INFORMATION</b></p>
      <ul>
        <li>
          <p class="Bodytext">Approval<br />
            VIVAFASHION.CO.UK has final approval for all ads with respect to editorial/creative content. We reserve the right to remove an advertisement from this website at any time for any reason.<br />
            <br />
          </p>
        </li>
        <li class="Bodytext">
          <p>Specifications <br />
            All specifications apply to all ads, whether hosted by VIVAFASHION.CO.UK or by a third party. <br />
            Please note that all rates and conditions are quoted in pounds sterling and are subject to change without notice.VIVAFASHION.CO.UK reserve the right to refuse or cancel any order without cause, at any time. </p>
        </li>
      </ul>
      <p class="Bodytext">For more information with regards to rates, special advertising packages/campaigns and specifications please contact us at:<a href="mailto:[email protected]" class="Bodytext"> <br />
      Sales at Viva  Fashion.co.uk</a>. </p>
    </div>
    <!-- InstanceEndEditable -->
    </div>
    <div id="apDiv5"></div>
    <div id="apDiv6">
      <p align="left"><font face="Arial, Helvetica, sans-serif"><br />
      </font></p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
      <p align="left"> </p>
    </div>
    </body>
    <!-- InstanceEnd --></html
    THE CODE THAT DOES WORK:
    Editor's Shopping List Discount Shopping Links Discount Village Links Shopping Links Stockists  Vintage Links
    Book Reviews Diary Dates Fashion Lifestyle Shows Fashion News New Designer Launches New Websites Product Launches Spotlight on Luxury Labels Trends Store Openings Street Style
    Advertising Rates Retail Classifieds Retail Jobs
    Awards Show Fashion Celebrity Beauty Celebrity News Celebrity Parties Celebrity Profile Model Profile
    Emerging Talent Fashion Week Reports Important Dates Model Agency Index Photographers  Index Retail Appointments Retail Features Retail News Retail Share Prices Retail Wholesalers Index Trade Show Reviews
    Budget Buys Beauty News Book Reviews Beauty Features Health Features New Season Looks Stockists / Book an Appointment
    Stores Opening
               Look What's Just Popped UP!
             From New York to London, the month of September will see a series of Pop-Up stores opening to celebrate achievements past to present or to herald the launch of a new fashion collection . . . /
                             Must do
             GARETH PUGH, M·A·C & MILK team up for ny fashion week film
             Gareth Pugh has collaborated with cosmetic giant M·A·C to present his new film — directed by Ruth Hogben — at Milk, (located in the Meatpacking District of New York), this Sunday the 13th of September . . /
                     Product launch
             Treat your neck
             In recent years, scarves have come into their own fashion spotlight, with many fashion houses taking inspiration from Hermès to produce signature scarves that have become must have items each season. And, the luxury fashion houses are not alone . . . /         
    WEBSITE launch
               The Glam Show's High Street is just a click away
           The Glam Show in association with Nicky Hambleton-Jones has come up with a practical way to help you prepare for your visit to The Glam Show (this October) . . .
               Guess which celebrity was spotted wearing Vidler & Nixon . . .     
           Watch Martin Solveig’s latest hit single Boys & Girls for fashion designer Jean Paul Gaultier featuring Martina, the electro-pop singer from Dragonette here. visit: MaDame for the free download
    BRC concludes that RECOVERY HOPES PREMATURe
               The latest UK Retail sales figures have shed considerable light on the true state of consumer spending, reveals the British Retail Consortium and KPMG . . . /         
    Cheap and fashionable products continue to deliver profits at ABF's primark
                 Despite having to tighten purse strings, consumers wishing to update their wardrobe with cheap fashion fixes, are heading to Primark . . . /
    Quiksilver adapts to challenging times
                 Quiksilver, Inc. [NYSE: ZQK] announced a decrease in consolidated Net revenues from $564.9 million to $501.4 million for the third quarter of fiscal 2009 . . . /
    Paul Marchant made Chief Exec at Primark/Penneys
                 The insightful members of management at Associated British Foods plc [LSE: ABF], are to implement some senior personnel changes to ensure the company's current success, continues well into the future . . . /
    Share prices
               Find out how retailers share prices are performing on the London Stock Exchange . . . /
    Forthcoming Fashion Weeks & trade shows dates
           Synchronise your diaries with Viva Voce Fashion.com's list of trade shows, exhibitions and fashion weeks . . . /
                          Paul Marchant made
               Chief Exec at Primark/Penneys
           The insightful members of management at Associated British Foods plc [LSE: ABF], are to implement some senior personnel changes to ensure the company's current success, continues well into the future . . . /
    26 - 29 November 2009 —
                       Made In Clerkenwell
         31 October - 1 November 2009 —
         The Glam Show       30 September 2009 —
               1980s Fashion Revisited       24 - 27 September 2009 —
                 TENT LONDON
               22 - 27 September 2009 —
               My Chinese Zodiac and Other Animals
               By Sylvie Fuller — Lillibule Ceramics
               19 - 29 September 2009 —
             The London Design Festival        17 SEPTEMBER – 22 DECEMBER 2009 —
               SHOWstudio: FASHION REVOLUTION AT SOMERSET HOUSE       3 - 20 September 2009 —
           Sylvia Ji's Nectar
             SLEEP YOUR WAY TO BEAUTY
             That's more like it. An effortless way to improve one's looks without too much effort.
               Savvy sleeping beauties have enlightened us with a natural remedy that is fast becoming Britain’s best kept secret — sleeping on silk . /                         FANTASTIC NEW OFFERS
                   IS THE RECESSION CAUSING A CRUNCH ON YOUR BEAUTY CREDIT?
               If the answer is yes, then luxury hair and beauty website Want The Look.com is well worth visiting . . . /                              skincare . . .
                 Forever YOung?
                 Log into our WebTV Show for revolutionary advice on anti-ageing without creams or cosmetic surgery
                 Show date: Tuesday 8th September '09
               Show time: 3:00pm – 3:15pm        
    Celebrity Smack       Lust for Life        Painfully Hip        Socialite Life               Style Bubble       The Daily Mash      Tout Nouveau       

  • Align Object not handling text correctly?

    When I align a line of text and a rectangle vertically, it's not properly centered visually. I have "Use Preview Bounds" turned on.
    In this screenshot, both blue squares are the same size. Illustrator obviously thinks this is mathematically centered., but it is incorrect visually. What is Illustrator evaluating in the text line that makes this centering error (there are no descenders)?
    Any tips for quickly getting visually correct centered text within a box?

    Navarro,
    You may:
    1) Tick Edit>Preferences>General>Use Preview Bounds;
    2) Select the Type and Effect>Path>Outline Object.
    That will reduce the Bounding Box to the actual bounds of the letters, and keep the Type editable.
    Remember to untick Edit>Preferences>General>Use Preview Bounds before you get a reverse issue.

  • Text will NOT align to top of text frame

    The text is low in the text frame even though the vertical justification is set to align TOP in the text frame options and the first baseline offset is set to Ascent in baseline options. There is no baseline shift or inset set and align to baseline grid is NOT selected. Any ideas how to fix it so the text is at the top of the box? Thanks!

    @gtingley – did you try:
    1. Copy/Paste the text frame to a fresh document?
    2. Export as IDMS (snippet) file and place it again?
    Just out of fun, did you try to copy/paste the text to a new text frame? Is a object format applied to the text frame? (Just fishing in the dark.)
    Uwe

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • How do I apply a texture to a text field's fill area?

    Hi all, first post and all that!
    I've seen that it's possible to format a specific bit of text in a text field with:
    setTextFormat(format:TextFormat, beginIndex:int = -1, endIndex:int = -1):void
    I need to format a section of text by applying a texture to the rectangular fill space around the letters. (Imagine in Microsoft Word that you've written a short sentence and you highlight it. Then you fill the text background with a colour. Then imagine that that colour is a single repeating texture. That's what I'm trying to achieve.) Note that the text field must be multiline, and I'm not looking to fill the whole rectangular text field area. The applied texture needs to fit to each character.
    Is this possible in Actionscript?
    Would I need to use some kind of HTML or CSS formatting?
    Is it possible at all?
    If it is possible, is it possible to change the size of the fill area around the text?
    Thanks all!

    Actually, that's pretty much what I'm looking for. For anyone else reading this thread:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001279.html
    That'll fill an area with a repeating texture. The tricky bit now is to work out a top left coordinate for each line of text, and the length of each line in pixels (based on the sum of the character widths). I'll have a poke around and see if there's a way to get that information back from a movie clip.

  • Best SEO practices for text frames in content areas

    Hello,
    Is it best practice for SEO to keep all text (H1, H2, H3 <p> etc.) on a web page in one text frame and adjust with spacing between paragraphs to add additional elements (Video, widgets etc.) or is it better to use separate text boxes and place elements between them?
    Thanks! Below is an example. Should the H1 and both paragraphs be in one text frame space out to fit video or two separate text frames with the video between them?
    What is Lorem Ipsum?
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    In the example you give, I would put both sets of text in a single box with a blank spacer between them for the video which would then be layered over the top to appear in the middle.
    The video takes longer to download and may also be blocked by the users settings so having it separate allows my text to load (and appear) quickly even if the video encounters issues.
    I would only separate the two text sections if they are clearly different in style or content and that’s really only helpful if you want a phone and/ or tablet version of your pages… it makes your life easier then to have the text in separate containers when you want to sync them across the different layouts.

  • Applescript - trying to horizontally align all the text in a text frame

    I've tried the following snippet along with several others:
    tell application "Adobe InDesign CS5.5"
              tell the active document
                        set Text_Frame to the text frame "PH"
                        tell Text_Frame
                                  set theLines to every line
                                  if (theTextPos = "B") then
                                            tell theLines to set justification to left align
                                  else
                                            tell theLines to set justification to center align
                                  end if
                        end tell
              end tell
    end tell
    Throws errors about setting classes.
    ie
    error "Can’t set «class paln» of {\"MISSOULA COMMUNITY PHYSICIANS
    \", \"CENTER NO. 2
    \", \"CONDOMINIUM ASSOCIATION
    \", \"2827 FORT MISSOULA ROAD
    \", \"MISSOULA, MT 59804
    \"} to «constant mAOHcent»." number -10006 from «class paln» of {"MISSOULA COMMUNITY PHYSICIANS
    ", "CENTER NO. 2
    ", "CONDOMINIUM ASSOCIATION
    ", "2827 FORT MISSOULA ROAD
    ", "MISSOULA, MT 59804
    All I'm trying to do is center the text in a text frame if a condition is met, else left align it if another condition is met.
    Any suggestions woudl be appreciated.

    Don't get the lines first:
                                  if (theTextPos = "B") then
                                            set justification of every line to left align
                                  else
                                            set justification of every line to center align
                                  end if

  • Find certain areas of text from a text file

    Hello all java Gurus! I need your help on something I am trying to do in order to learn java. I am very newbie and please show mercy if I don't understand every answer you probably give me. Here is my problem. I have text file with certain areas I need to "isolate" (to insert the data in a jTable after I solve this first).
    Let's say we have the following data in a text file:
    FILE IS "A.txt"
    ***first***
    this is 1 line in first
    this is  2 line in first
    this is 3 line in first
    ***second***
    this is 1 line in second
    this is  2 line in second
    this is 3 line in second
    ***third***
    this is 1 line in third
    this is  2 line in third
    this is 3 line in third
    **************I now need to read the "segment" that start with " *** blablabab *** " and ends with " ************** " and store the lines of this segment to another text file "B.txt".
    So "B.txt" has let's say this "segment".
    ***second***
    this is 1 line in second
    this is  2 line in second
    this is 3 line in second
    **************How can I do this? I know how to read/write from/to a text file with FileReader and BufferReader but I have no idea how to experiment with this. Is there anyone who can give me a hint or a help to start?
    I am very new to java so be gentle :-)
    Thank you very much in advance.
    Kostas

    Well this is a very good and I think efficient way to
    do but unfortunately I don't have a clue about regex
    and how they work. This is something I should learn.
    With the expression you wrote I would have each text
    block at a time? This will be stored then to an
    Arraylist like above? If you have another idea please
    suggest. I am interested in learning new tricks :-)
    Thanks for your reply notivago!!!
    KostasRegular expressions have a somewhat steep learning curve but they are worthy the effort, they are fast and powerfull text finding tools, the whole idea is that you search the text for some pattern. I will provide you a sample code, it is half way to solve your problem, you will have to make some minor adjustements to use it you your real application(none in the RE itself I hope).
    To understand it, look at the Pattern class documentation and the Matcher class documentation in the API.
    * SectionExtractor.java
    * version 1.0
    * 25/05/2005
    package samples;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    * @author notivago
    public class SectionExtractor {
         * @param args
        public static void main(String[] args) {
            String text =
                     "***first***\r\n" +
                      "this is 1 line in first\r\n" +
                      "this is  2 line in first\r\n" +
                      "this is 3 line in first\r\n" +
                      "**************\r\n" +
                      "***second***\r\n" +
                      "this is 1 line in second\r\n" +
                      "this is  2 line in second\r\n" +
                      "this is 3 line in second\r\n" +
                      "**************\r\n" +
                      "***third***\r\n" +
                      "this is 1 line in third\r\n" +
                      "this is  2 line in third\r\n" +
                      "this is 3 line in third\r\n" +
            Pattern pattern = Pattern.compile( "\\*{3}(.+?)\\*{3}$(.*?)\\*{14}", Pattern.DOTALL | Pattern.MULTILINE);
            Matcher matcher = pattern.matcher(text);
            matcher.find();
            System.out.println( "Header: " + matcher.group(1) );
            System.out.println( "Text Body: \n" + matcher.group(2) );
    }The sample as is, runs and give you output that should be clear on how the expression works. Try running it.
    May the code be with you.

  • Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    *Ralph Johns* writes:
    "Your options are:
    Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
    Do you mean a trial account from .Mac? (DotMac)
    "Get an AIM Screen name and set it to Display what you want as you set it up.
    The Screen name can be whatever yu want but you can also set it to display something else as well."
    I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
    Thanks very much for taking the time to reply, though.

  • Why ehen appending text file to text area, all the text in 1 line..

    please hlp
          public void actionPerformed(ActionEvent e)
              TArea.setText("");
              try
              String StrNeeded;
              BufferedReader BR;
              BR=new BufferedReader(new InputStreamReader(new FileInputStream("Data.txt")));
              StrNeeded=BR.readLine();
                   while(StrNeeded!=null)
                   TArea.append(StrNeeded);
                   StrNeeded=BR.readLine();
              catch(Exception excep)
    }this is my code m problem is that,
    i read a text file that has many lines, when i read it, i append it into the textarea, but what happend was all the text in my text area is in 1 line only(the other line is also appended but it is appended in the sama line.. help me

    readLine removed the line feed from the end of the line.
    You should append a \n to the end of the line like this:TArea.append(StrNeeded + "\n");Also it's a bad idea to catch an exception and do nothing.
    Add printStackTrace in the catch block.

  • How do I align check boxes with text in the form?

    I'm most of the way there but I am stuck fixing the formatting misalignments.
    1. What controls the little checkboxes? What's the best way to align them with the text?
    2. Part of the form is controlled by some form-specific css and  part is getting inherited from the body. What's the best approach to make sure they match?

    Thanks Liam. I haven't done a site for a while so I'm a little rusty but I did finally figure it out using Firebug. At first I couldn'tfind the applicable CSS but when I tuurned on the element selector in Firebug, well, Bob was my uncle.
    The site is based on a Twitter Bootstrap template modified for BC. Since the few changes to the css only apply to that one page, do you think there is any reason not to leave them embedded just on that page given that they will not apply anywhere else. I don't want to change the Bootstrap css but I could create a mystyles.css. Is there any reason to do so?

  • Text table for long text of product catalog area and product description

    Hi experts,
    I'm a new comer in CRM, what my current job is to do the translation for CRM system and its portal, e.g. webshop.  Now I met some questions as below, Could you please give me some advices?
    1. Long text for product catalog area (t-code: COMM_PCAT_ADM; Product Catalog: PCSHOP)
    I found a  table named STXL(STXD SAPscript text file lines), maybe, it is related to the long text(product catalog area), but I can not get anything from the field CLUSTD of the table STXL as  its data type is RAW. Maybe, there is a text table in CRM to store these long text information, but I dont know, Could you please give me some ideas?
    2. Long text for product description (t-code: COMM_PCAT_ADM; Product Catalog: PCSHOP)
    I found a table named COMM_CFGLNGTXT(Long Texts for Different Objects),  I can find some long texts(product description) in this table, but some others, I can not find them. I dont know why? Maybe it is not a correct text table. Could you please give me some advices?
    Thank you very much.
    Quanyin

    Hi Uwe,
    Implement the BADI DOC_PERSONALIZE_BCS and use method PERSONALIZE_DOCUMENT. In this method therz an parameter FLT_VAL, this can be used to derive the description.
    Award points if its useful....
    Regards,
    B Raju

Maybe you are looking for

  • Reason for rejection in Credit Memo

    Hi gurus, We have a Credit Memo Request with one position. This position is rejected (Reason for rejection) and document is blocked at head level (Billing block). If we unblock Billing block from CR, we can create a bill of 0 price. We want system wi

  • Oracle SID - should be upper-case?

    A lot of the Oracle docs/examples refer to SIDs in examples using lower-case names (for example, "prod"). And I've certainly seen a lot of lower-cased SIDs in many years of Oracle work. However, in 11gR2 (and I think R1 as well), if you enter a lower

  • Email address is not in our records

    Hallo, I know my skype Nick name, I know secondary mail adress but i forgot password and my registration email is OFF. Is possible to log in skype and recovery my skype account ? Many thanks Peet55

  • How does BT Infinity Equipment Work

    I've spent a great deal of time this week end trying to work out how BT infinity is cabled up. The information on the BT site is next to usless and there is nothing on the web. Is it so hard to produce a diagram BT or are you frightened if you do you

  • Front Row Randomly Starts Up

    Hey everyone, I own a white MacBook and I am using the latest version of OS X. There is a problem with Front Row. The issue is that it randomly starts up without me clicking it or launching it. It's not even on my dock. So I find myself pressing the