Displaying left justified readonly text

Anyone have any ideas as to how we can display readonly text left justified?
Form doesn't cut it because everything is centered, and I don't need labels to display my data.
TextBox doesn't cut it, because I don't want the data to be editable.
Canvas... Man talk about a head ache. First there is NO title bar (like the rest of the application, so I would need to draw one first), and then I would have to implement all of the line wrapping, and scrolling etc.
I even thought about alert, but feel it would probably look ghetto.
I just want a textbox that isn't editable. Anyone have any thoughts

Why do you blame the Form? It has alignment options and i guess default is left-aligned (why centered???) Then use String to append the string to a form.
String s = new String("Blablabla");
myform.append(s);
I have already used this approach to display readonly text. The one thing i don't like is that the form scrolls the text screen by screen, not line by line. Does somebody knows how to scroll line by line?

Similar Messages

  • Facebook goes to "text" only no color, no graphics just Left Justified Black Text...... Help please I need it badly

    Facebook goes to Left justified black "text"only no color, no graphics, kind of reminds me of DOS... not sure what is happening. I can't even contact Facebook Help, it's the same situation black left justified text only Any Help is Greatly Appreciated
    John Finzel
    [email protected]

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • Left Justify Wrapping Text Lines in Lists

    I'm using RH9 on Windows XP, fully patched.
    I'm having a problem finalizing a few tweaks with the formatting of lists imported from FM.It took me a while to get the lists from the FM source book to import correctly, but now I have it pretty clean, with the exception of when text in the lists wraps.
    Currently, if there is a second line that wraps, it justifies with the list element (number, letter, bulelt, etc.) on the left. However, I would like it to justify itself on the left with the first sentence.
    I've managed to fix this easily while authoring natively in RH by adjusting the multilevel list styles. But I'm unclear about how to do this with the style mapping from FM>RH.
    I'm mapping the original FM style to a RH paragraph style and indicating in the mapping properties to "Convert Autonumber to RoboHelp List." I see the option to edit the list properties in the RH paragraph style I map to, but it doesn't go as deep in terms of options as the multilevel list style edit dialogue. I know you can associate the paragraph style with a multilevel list, but it was such a nightmare to get this working as it is, I'm remiss to do anything without some direction.
    Thanks in advance,
    Douglas

    Thanks Jeff, I'm not getting the results I want from those selections.  RoboHelp List actually removes my bullets entirely.  HTML list correctly formats the bullets but then places text 1 or 2 lines below instead of aligned with the bullet .  The only way I can get a bullet and text to align is by selecting Convert Autonumber to Text.  Using this selection, RH places a small square bullet, ignoring whatever I set in the CSS (eg. list-style-type: desc;).  The text wrap should be handled by list-style-position: inside; but RH is ignoring W3C conventions and using a default that is not configurable.  I understand RH is not W3C compliant so then what logic is RH using?  Regardless of what setting is selected for lists, RH overrides my custom style sheet settings.
    There is no way to map a style to another style in RH9 as far as I can see. RH9 allows you to make style setting adjustments in the [Source] but those bullets do not format correctly either (formatting-->indents-->bulleted list icon/button).
    I have checked my FrameMaker template source and don't see what could be contributing to the problem.  Those bullet styles are standard for FM, round and with the exact layout I want in my RH output.  RH seems to want to re-adjust that to its own default. 
    Any insights would be appreciated.
    Thanks

  • YouTube web page displays left justified in a fixed font and will not play videos.

    Firefox 3.6.13/Vista. It worked yesterday. System restore did not help. The page displays properly in I/E and also in Firefox on my XP based computer. I checked for plug-in updates and also tried to disable them to no avail.

    There are some compatibility issues between the latest Flash player and some Firefox add-ons or settings. Could you see whether anything in this article helps: [[Flash 11.3 doesn't load video in Firefox]].

  • Left justify text in book's introduction page?

    I don't find any way to left justify the text on "introduction" pages when making a book. Am I missing it, or am I restricted to centered text?

    Actually, I discovered that if I create the text in Word, then paste it in, it retains the alignment set in Word, even if different from the template. At least it worked in Classic.

  • Left justified in IE

    I want to know why my site would display left justified on IE when it displays properly in Safari (center justified). Everything else looks fine in IE. I'm not having png issues or anything, and my links work fine...just left justification.
    Can anyone tell me why? Or is it just a problem with some versions of IE like so many other posts suggest about a variety of problems?

    When I open it in IE, the whole site is left justified (not just text). The site looks fine to me in Safari. And I don't have a .Mac account, so I can't publish that way. I'm uploading to the server by ftp. I didn't manipulate the html at all after I published to a folder. Any other thoughts? Thanks!
    http://www.hedemarkcreative.com

  • Left justify pages within browser background

    How can I left justify my web pages within the browser background? All the iWeb templates that I have seen are center justified, and I cannot find a way to change the justification.

    There is no tool in iWeb that will do it at the click of a button.
    If you lasso all of your elements you can move them to the left hand side of the page. Either by dragging or by using the cursor keys, (holding the shift key makes each cursor key press 10 pixels instead of one).
    Then you can left justify the text in each element by using, Inspector>Text Tab>Text - Color & Alignment.
    Will
    1GHz G4, 15" PB, 1.5GB RAM, Airport Network, 4 GB iPod Mini (1G), 60GB iPod (5G)   Mac OS X (10.4.6)  
    Help others by marking solved questions as answered ( + Solved or Helpful )

  • Left justify text in number field

    Hi,
    I would be grateful if someone could tell me how to display the text (returned from a loop) in a number field
    so that it is left justified - also where would it have to be set?
    The 'justification' setting when set to 'Left' doesn't achieve this.
    Any help would be appreciated.
    Kind Regards,
    Tom

    First i dont think so in Number field u can set TEXT
    Create a field with CHAR type and u can put alpha numeric text in it
    set the justification Property of Text item to Start or Left
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Preview app: Add text annotation with left justify?

    I'm using the Preview app to insert text into some PDF files. I can use the Annotate feature to create a text box in the area I need it and adjust the font, color, size, etc. The only thing I can't seem to do is set the justification to Left Justify. It will show text as center justify - anyone know how to change this?

    I can find out what the defaults are with:
    defaults read com.apple.preview
    There are many properties but a TextAligment property is not one of them.
    I tried below but they do not work.
    defaults write com.apple.preview NSTextAlignment 0
    defaults write com.apple.preview PVAnnotationTextAlignment 0
    NB: 0 means left alignment
    Any idea?
    Maybe Apple has to create an text alignment feature for the GUI or provide the property that we can set it from Terminal.

  • FCP title tool - left justified text

    I'm just generating basic titles within FCP using the built in title tool (not Motion or Live), and need to make some left justified title cards. Centering the text works fine, everything fits on screen. But, when I select "left" justification, the font STARTS in the center of the screen and I lose the last few words off the right side of the screen! When I try to move the font with wireframe, I can place the text manually where I want it, but the words are still cut off on the right side. I know there must be a simple solution to this... right?

    Don't move the text by using the wireframe. This just moves the whole layer and you will see the text being but at the border. You need to use the "Origin" parameter to position the text.

  • CS4 Help with spry menu bar. Want Top Centered and Subs left-justified.

    Hi there, using DW8 mostly, but have the trial version of CS4
    for the spry menu bar. WinXP.
    Can someone help me with the spry menu bar on this page? I'd
    like the main menu to be centered, as it looks better for
    appearance, and the sub menus to be left-justified.
    http://www.manmeetswoman.com/example4.html
    But I can't seem to do that, if I make the main menu
    centered, it seems to override the submenus even if I make a class
    just for the submenu to be left-justified.
    Am I doing something wrong or is this not possible?
    And the menu bar looks horrific in IE6. I assume it looks ok
    in IE7 and above. Can someone help me with a code just for IE6 for
    this?

    audio90 wrote:
    Not quite what I was looking for. I'm wanting the top menu to be grouped together and to the right and the submenu boxes to all a single square box, not just with backgrounds extending only the length of the word. Also, your menu bar doesn't display properly in IE6 either.
    1) You should be able to achieve a square box for your submenu items by fixing the widths of all of your submenu items to something larger than the content of your widest submenu <li> tag.  This should be achievable with a single change of setting in the following CSS rule.
    ul.MenuBarHorizontal ul li {
         width:???em;
    Set your width using em units, so that the box shrinks and grows with the size of the text when the latter is changed by the user.
    2) Getting your top menu items to group together to the right may be more difficult as the entire menu bar is built on an HTML list structure with left-floated <li> tags.  If it is possible, then you should begin your experimentation with the following CSS rule
    ul.MenuBarHorizontal li {
         float:right;
    Change the float property from left to right, as I have indicated.
    My suspicion, however, is that many subsequent adjustments will have to be made.  So, back up your current CSS file before you begin.
    Roddy

  • Justify Hyperlink Text in Navigation Bar

    Hello,
    I am trying to justify the text of my navigation bar (which are all hyperlinks).  I would like to use css.  I have tried a variety of things but none seem to work.  I have attached the text.  If anyone could write the code I need it would be greatly appreciated!  Thanks!  I have attached the file as well.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Shupaca Handmade Alpaca Clothing</title>
    <link href="Shupaca.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:link {
        text-align:justify;
        color: #666;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
        word-spacing: 100%;
        height: auto;
    a:visited {
        color: #666;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
        word-spacing: 100%;
    a:hover {
        color: #84cbe1;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
    a:active {
        color: #84cbe1;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
    -->
    </style>
    <script type="text/javascript">
    <!--
    //-->
    </script>
    </head>
    <body onload="MM_preloadImages('Images/Home Page Links/scarf.jpg')">
    <div class="MarginControl">
      <div id="NavigationBar">
        <a href="index.html" target="_self">Home </a><a href="scarves.html" target="_self">products </a><a href="construction.html" target="_self">who we are </a> <a href="construction.html" target="_self">why alpaca? </a><a href="construction.html" target="_self">FAQ's </a><a href="mailto:[email protected]">contact</a><a href="construction.html" target="_self"></a></p>
      </div>
    </div>
    </body>
    </html>

    As you will see though, by making the menu text so large, the interval between menu items looks all off.  Eithr dramatically red
    uce the text size, or you can set the width of each individual li by giving some an id and specifying width:
    <div id="NavigationBar">
      <ul>
        <li><a href="index.html">Home</a></li>
        <li id="prod"><a href="scarves.html">products</a></li>
        <li id="who"><a href="construction.html">who we are</a></li>
        <li id="why"><a href="construction.html">why alpaca</a></li>
        <li><a href="construction.html">FAQ's</a></li>
        <li><a href="construction.html">contact</a></li>
      </ul>
    </div>
    wtih this css - the changes in orange
    #NavigationBar a {
        color: #666;
        font-family: Arial verdana sans-serif;
        font-size: 20px;
        text-decoration: none;
        text-transform: uppercase;
        display: block;
    #NavigationBar a:hover, #NavigationBar a:active, #NavigationBar a:focus {
        color: #84cbe1;
    #NavigationBar ul {
        list-style: none;
        width: 850px;
    #NavigationBar li {
        text-align: center;
        padding: 0px;
        float: left;
        width: 118px;
    #NavigationBar li#who, #NavigationBar li#why {
        width: 180px;
    #NavigationBar li#prod {
        width: 136px;
    Hope that helps.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Columns should be left justified

    Hi all,
    I used a t:dataTable to display my search results, My req says all the columns should be left justified, how can I do that? Can some one help me in this?

    <t:dataTable
         footerClass="dataTableScrollerFooter"
         renderedIfEmpty="false"
         preserveDataModel="false"
         preserveSort="true"
         varDetailToggler="detailToggler"
         columnClasses="alignLeft"
         rowClasses="oddTableRow,evenTableRow"
         rows="#{sessionUserBean.user.resultsPerPageOption}"
         value="#{result.result}"
         var="legalProfessional">
         <t:column >
              <f:facet name="header">
                   <h:outputText value="Type" style="font-size:8pt;" />
              </f:facet>
              <h:outputText value="#{legalProfessional.type}" />
         </t:column>
         <t:column defaultSorted="false" sortable="true">
              <f:facet name="header">
                   <h:outputText value="Last Name" style="font-size:8pt;" />
              </f:facet>
              <h:outputText value="#{legalProfessional.firstNameOccurance.lastName}" />
         </t:column>
    .alignLeft {
              text-align: left;
         }I am able to left justify the results but not the headers of the dataTable even I used columnClasses, Can you tell me where I am going wrong in this?

  • After aborted rebuild in Mail: I can see and select the message in the center pane and when I click on it to display, I get "Loading" text, but nothing comes up

    I have searched quite a bit to find a resolution to this problem, with no success. Any help would be appreciated.
    I decided to rebuild my inboxes by following this advice: http://support.apple.com/kb/PH11704. The rebuild took several hours and at 96% (4 minutes remaining apparently), the indexing froze (that is, after 8 hours, the message was still telling me "4 minutes left"). I forced quit mail, restored the previous Envelope files from the trash, and everything seemed fine.
    However, since this failed attempt, I can see and select the message in the center pane and when I click on it to display, I get "Loading" text, but nothing comes up. All messages in my various inboxes have the reloading problem, EXCEPT messages that I downloaded since the aborted rebuild (in other words, there are about 40 messages that I downloaded since I tried the rebuild and I have no problem with these). The other 70,000 messages however wont load, even though I can see them in the centre pane and spotlight has no problem finding them and showing me their contents (when I hover the mouse over the message). When I click on the message in spotlight, mail opens and the loading problem re-occurs.
    Since then, based on various suggestions I found for similar issues, I have used Disk Utility to verify and repair permissions and the drive. I used Onix to rebuild the Mail index (that only took about a minute - I am not sure how to interpret this when compared to the hours the rebuild took with Mail). No joy, I still have the same problem. I even restored one of my inboxes via Time Machine and the same issue with loading continues.
    I am using ML 10.8.2. I have a combination of IMAP accounts (work) and POP accounts (personal). The issue of loading occurs irrespective of the account.
    I am baffled and am now considering migrating to either Thunderbird or Postbox 3 to try and solve my problem. I prefer to stay with Mail. I should note also that I am using MailTags with Mail (http://www.indev.ca/MailTags.html), although I have not used any of the features. I upgraded to ML from SL about 2 weeks ago. It was very smooth and there appear to be no issues (not sure how helpful this is and probably not at all related to this issue).
    Any suggestions much appreciated!

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

Maybe you are looking for

  • Right-click finder context menu no longer works

    When I bring up the context menu on any file/folder in my finder or desktop, none of the actions work - such as "Move to Trash", "Get Info", "Duplicate". In debugging I removed MagicPrefs, thinking it might issues with the mouse. It works if I used s

  • Creation of session bean

    Hi all, I am trying to create a DC webservice, while creating the stateless session bean in package, I am getting the error "Not able to create session bean". How can I solve this issue? Basically the problem is with the ejb-jar.xml. Thanks Vivek

  • How do I get the stylus to wor?

    How do I get the stylus to work?  I thought I could just open the Notes app and start writing on the tablet. 

  • Anyone can help me? I can't start my flash pro cs5

    Ive installed my adobe cs5 master collection. and it run correctly. one day, i lost my motherboard and i replace it with the new one. after that, i still can access flash pro cs5 for one time. after restarting the windows, i can't open it anymore. ju

  • How to make it so when an app opens, it slides to a new desktop and opens it there.

    when i open an app it just opens on the current desktop i am on, how do i make it where it slides to a new desktop and opens it there?