How to Increase Spacing between characters in textfield

Hi Guys,
I need some kind of solution. I have a textField which I am using to getPassword( I don't want to use JPassword Field) because of older JVM.
suppose TextField is 15 characters wide and number of charactes I want to allow is 5 so I want an "*" then 2 spaces.
Is there any way I can create Custom character( like "* ") or any function to increase spacing between two chars in jtextField.
following are two ideas I have
1. get a char and append multiple white spaces after each char
2. create another class with multiple textfield with spaces between each textfield.
If you guys have any other easy way around.
I would really appriciate your help.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#wrapper {
    width: 980px;
    margin: 0 auto;
.dottedLine  {
position: relative;
width: 980px;
.left {
float: left;
width: 740px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 20px;
letter-spacing: 0;
margin-bottom: 20px;
.right {
float: left;
width: 235px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
letter-spacing: 0;
text-align: right;
padding: 1em 5px 0 0;
margin-bottom: 20px;
.dots {
position: absolute;
left: 0;
top: 20px;
letter-spacing: 6px;
width: 980px;
overflow: hidden;
</style>
</head>
<body>
<div id="wrapper">
<p class="dottedLine"><span class="left">Bringing brand design into the art fair</span><span class="right">March 30, 2012</span><span class="dots">............................................................................ ......................</span></p>
<p>Some text goes here</p>
<p class="dottedLine"><span class="left">Bringing brand design into the art fair</span><span class="right">March 30, 2012</span><span class="dots">............................................................................ ......................</span></p>
<p>Some text goes here</p>
</div>
</body>
</html>

Similar Messages

  • TextField and CSS: How to control spacing between paragraphs

    I'm using an external CSS to format a textField that has some
    HTML text in it, let's say something similar to this:
    myTextField.htmlText = "<p>paragraph
    one</p><p>paragraph two</p>";
    How can I control the spacing between paragraphs when there
    is no support for margin-top or margin-bottom? I don't want to add
    empty <p> or <br /> elements to my text since they
    don't allow exact control and insert too much space. Is there any
    good solution?
    Thanks

    I think rob day's suggestion has merits too. Either way I
    don't see any other way but inserting an extra element that adjusts
    the spacing somehow.
    Yes, it sucks that the majority of styling declarations are
    not supported but, on the other hand, it is not such a big deal to
    insert an element especially with the powerful XML tools in AS3.
    You can create a function that will preprocess all XML "page"
    nodes and insert an extra <p> tag after each <p> tag
    (see attached code)
    I did not check if code works - it is just a concept.
    The same approach can be taken with rob's suggestion but
    inside the <p> element that comes with the XML.

  • Spacing between characters too large when using line justification !!!!

    Dear friends,
    Since the first time when I have used Pages I noticed a somewhat annoying feature: Sometimes when I use line justification (left and right) the spacing between the characters increase substantially. Sometimes the spacing is ridiculously large. I guess that I have mad something wrong, but I do not know what. Can someone give me a hint what I should do to overcome this irritating aspect?!
    Thanks in advance
    LJ

    There is no doubt that Mellel is a much better application than Pages in a lot of areas. It has been around for longer, it is more mature and it is actively maintained. Pages is of course better in a lot of other areas - and there is room for both on the market.
    Mellel handles hyphenation in a much more advanced way than Pages and it has support for example for soft-hyphens, editable hyphenation dictionaries and hyphenation zones - something Pages lacks.
    When it comes to the large space between characters, however, I cannot say that Mellel has invested a lot in making it look good. They just chose the simplest solution, just like MS Word, to increase space between words - not between characters. They even use this as an example of something ugly in Mellel's own user guide: "For example, the following text is fully justified but not hyphenated. The spaces between the words look wide and make the text look quite ugly."
    As mentioned before, in some cases increasing space between words is the most pleasing solution to the eye. In some cases adding some space between characters is more pleasing, and that is the reason why Apple went to the extra trouble of adding that functionality. In many cases, it is not obvious which way is best, and people will have diverging opinions.

  • ABAP webdynpro how to give spacing between the UI Elements in a view

    Hi Expert,
    I am very new to webdynproapplication development. I am stuck in changing the look of the ui  elements of the view.
    Cud anyone explain  how  to set the spaces  between the  UI Elements on  a View is there any method ?
    I have set the Layout property  to Matrix layout. But here I am unable to set the spacing between the deffernet elements  as it is taking it automaticaaly  and I am not able to allign  all the  Elements.
    Need your help!.............thank you
    Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Apr 15, 2011 10:17 PM

    Hi anushree.,
    If u are using matrix layout:
    In Layout Data select MatrixHeadData to display UI in next line.,
    If u want to give space  between UI elements in the width enter 50, 60, 70 or what ever space u want.
    Also in the vGutter u can select medium ,  large ,  medium with rule  to give space between UI elements.
    n if u want to give space between lines  ., in the height enter 30 40 or whatever spacing between lines u want.,
    Matrix layout is a good layout., and u can play with colspan , hAlign, vAlign, vGutter, width and height options.,
    If u dont like the layout with these options then use Grid layout., where u can give custom spacing., with the help of Left Padding, Right Padding, Top Padding, Bottom Padding.
    reply if u need some more clarifications.,
    Thanks & Regards
    Kiran

  • Contact Sheet X v2.1 - how to increase space between caption & images?

    Contact Sheet X v2.1 has been working very well. But I can't find a way to increase the spacing between the captions and the images. They're practically touching. From time to time I need to move elements of the proof sheet. The dialog box for Contact Sheet X v2.1 doesn't appear to have anything to control the distance between caption and image. Does anyone have a solution? Using Photoshop CC, Mac OSX 10.9.5. Thank you.

    Somehow setting width="400" did not change anything. I also tried:
    mx|ColumnChart { columnWidthRatio: 0.8; width: 1000; columnWidth: 1000; }
    to no avail.
    Anyhow, I've reduced my columnWidthRatio to 0.8 though as you suggested. It looks better, but I'd still like some more space between the columns.
    Thanks!
    --Dwayne

  • How to maintain spacing between 2 elements in webdynpro

    Hi Experts,
    I got 3 pushbutton. I am using matrix layout but spacing(distance) between 3 of these elements is not uniform.
    Please help me to make spacing between them to be uniform.
    Thanks & Regards,
    Niki

    Hi Niki,
    Use Vgutter property of buttons, use medium or large to make distance between buttons.
    OR
    Use Invisible UI Element and place between buttons it will give gap, give width of invisible element to move.
    Cheers,
    Kris.

  • Flex charts: How to increase space between columns?

    Hello!
    I just added columnWidthRatio: 1; to my mx|ColumnChart to fatten up my columns a little. But now, there's no space between the X axis and columns, and between the columns themselves, so how do I increase this space?
    mx|ColumnChart { marginRight: "50"; paddingRight: "50"; } has no effect.
    Thanks!
    --Dwayne

    Somehow setting width="400" did not change anything. I also tried:
    mx|ColumnChart { columnWidthRatio: 0.8; width: 1000; columnWidth: 1000; }
    to no avail.
    Anyhow, I've reduced my columnWidthRatio to 0.8 though as you suggested. It looks better, but I'd still like some more space between the columns.
    Thanks!
    --Dwayne

  • Pages-how to set spacing between columns

    There used to be a spacing option between columns in Pages.  How does one change that spacing now?

    In Pages v5(.2), the column and gutter settings are located on the Format > Layout panel. The Gutter setting can be changed by double-clicking on its numeric value. If you have disabled the Equal column width check box, you can also directly change each Column width as you have the Gutter. Revealing the rulers from the View menu can improve the multicolumn layout process, as column indicators appear in the top ruler.

  • [Solved]spacing between characters not correct on any termial emulator

    Hi All,
    I'm using Xfce on my laptop. The fonts don't look right in any of the terminal emulators. I've tried Xfce terminal, guake and terminator. Each one of them shows the same problem, sometimes the characters overlap and sometimes they are too far apart. You can have a look at the screenshot for xrandr output.
    https://www.dropbox.com/s/rqmfy64iv137g … on_002.png
    However, xterm looks just fine.
    I'm currently using infinality-bundle fonts. However, the probem existed with the default fonts as well.
    Thanks
    Last edited by noarch (2015-01-20 13:56:39)

    It was a silly mistake on my part. I tried to install 'infinality-bundle-fonts' package, but since it errored out, I just totally ignored the whole package.
    [root@screwed cheema]# pacman -S infinality-bundle-fonts
    :: There are 44 members in group infinality-bundle-fonts:
    :: Repository infinality-bundle-fonts
    1) otf-heuristica-ib 2) otf-oswald-ib 3) otf-quintessential-ib 4) otf-tex-gyre-ib 5) t1-bh-ib 6) t1-cursor-ib
    7) t1-dejavu-ib 8) t1-urw-fonts-ib 9) ttf-bh-ib 10) ttf-caladea-ib 11) ttf-cantoraone-ib 12) ttf-carlito-ib
    13) ttf-courier-prime-ib 14) ttf-ddc-uchen-ib 15) ttf-dejavu-ib 16) ttf-droid-ib 17) ttf-droid-nonlatin-ib 18) ttf-faruma-ibx
    19) ttf-gelasio-ib 20) ttf-heuristica-ib 21) ttf-liberastika-ib 22) ttf-liberation-ib 23) ttf-lohit-assamese-ib
    24) ttf-lohit-bengali-ib 25) ttf-lohit-devanagari-ib 26) ttf-lohit-gujarati-ib 27) ttf-lohit-gurmukhi-ib
    28) ttf-lohit-kannada-ib 29) ttf-lohit-malayalam-ib 30) ttf-lohit-marathi-ib 31) ttf-lohit-nepali-ib 32) ttf-lohit-odia-ib
    33) ttf-lohit-punjabi-ib 34) ttf-lohit-tamil-ib 35) ttf-lohit-telugu-ib 36) ttf-merriweather-ib 37) ttf-merriweather-sans-ib
    38) ttf-noto-sans-ib 39) ttf-noto-sans-multilang-ib 40) ttf-noto-serif-ib 41) ttf-noto-serif-multilang-ib 42) ttf-opensans-ib
    43) ttf-symbola-ib 44) ttf-ubuntu-font-family-ib
    Enter a selection (default=all):
    warning: otf-heuristica-ib-1.0.2-2 is up to date -- reinstalling
    warning: t1-bh-ib-1.0.3-2 is up to date -- reinstalling
    warning: ttf-courier-prime-ib-1.203-6 is up to date -- reinstalling
    warning: ttf-merriweather-sans-ib-1.003-8 is up to date -- reinstalling
    warning: ttf-noto-sans-ib-2014.12-4 is up to date -- reinstalling
    warning: ttf-noto-serif-ib-2014.12-4 is up to date -- reinstalling
    warning: ttf-opensans-ib-1.2-17 is up to date -- reinstalling
    warning: ttf-symbola-ib-7.19-2 is up to date -- reinstalling
    warning: ttf-ubuntu-font-family-ib-0.80-11 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: t1-bh-ib and ttf-bh-ib are in conflict
    Well, turns out that installing those individual fonts resolves the problem. Its a bit tedious installing individual fonts(there are around 40 options to choose from), but it does solve the spacing problem.

  • How to change spacing between text boxes

    In Pages, when I change something to multiple columns, it actually adds a large amount of space between what appears to be text boxes. If I enable "Show layout", it shows a border around the various "boxes" with the white space between them. How do I reduce this space and or remove it.

    Hi csing,
    In a document from the "Informal Resume" template, I turned on these settings in the View Menu to help me see how the document is arranged:
    Here is a some screen shots of the document. I added Borders to the text boxes for clarity. My notes are in red.
    In My Humble Opinion, this template is all over the place like a mad dog's breakfast. Use the template for ideas. Then create your own template from
    Menu > File > New from Template Chooser > Basic > Blank.
    Regards,
    Ian.

  • How to Add Spacing between display only fields in Oracle APEX

    Hi
    I have a screen which display some values. I want to seperate the two display items with a 10 spaces.
    How do I achieve this. I tried to create a dummy field and inserted <p>    </p>
    but it is not interpreting the value as html tag and displays the values on the screen.
    Any help would greatly be appreciated.
    Thanks
    sukarna

    Hi Sukarna,
    You have two "Display as Text" items, side by side on a page and you want to push the second one further to the right?
    If so, you can add &amp;nbsp; in front of the label text.
    Your dummy item may have been showing the &amp;nbsp; values if you have selected "Display as Text (escape special characters, does not save state)" for the item type?
    Andy

  • How to increase space between two buttons in iphone

    Hi Iam creating 10 uibuttons dynamically and animate randomly. but any of two or four buttons are overlapped.
    plz tell me the solution.
    i have the following code in my ipad app:
    -(void)AnimateNumbers
        for(NSMutableDictionary *dict in self.buttonArray)
            UIButton *but=[dict objectForKey:@"Button"];
            CGPoint bcenter=but.center;
            int numx=[[dict objectForKey:@"Xvalue"]intValue];
            int numy=[[dict objectForKey:@"Yvalue"]intValue];
            bcenter.x+=numx;
            bcenter.y+=numy;
            //bcenter.x=bcenter.x+[dict objectForKey:@"Xvalue"];
            //bcenter.y=bcenter.y+[dict objectForKey:@"Yvalue"];
            but.center=bcenter;
            //if(uia)
             BOOL isPortrait = UIDeviceOrientationIsPortrait(self.interfaceOrientation);
            //NSLog(@"is portrait %@",isPortrait);
            //if(isPortrait)
                //NSLog(@"is portrait");
            if(isPortrait)
                if(bcenter.x>720)
                    [dict setValue:[NSNumber numberWithInt:-15] forKey:@"Xvalue"];
                if(bcenter.y>900)
                    [dict setValue:[NSNumber numberWithInt:-15] forKey:@"Yvalue"];
                if(bcenter.x<100)
                    [dict setValue:[NSNumber numberWithInt:35+but.tag] forKey:@"Xvalue"];
                if(bcenter.y<222)
                    [dict setValue:[NSNumber numberWithInt:35+but.tag] forKey:@"Yvalue"];
                self.correctwrongImageView.frame=CGRectMake(214,450,253,201);
            else {
                if(bcenter.x>900)
                    [dict setValue:[NSNumber numberWithInt:-15] forKey:@"Xvalue"];
                if(bcenter.y>720)
                    [dict setValue:[NSNumber numberWithInt:-15] forKey:@"Yvalue"];
                if(bcenter.x<100)
                    [dict setValue:[NSNumber numberWithInt:35] forKey:@"Xvalue"];
                if(bcenter.y<222)
                    [dict setValue:[NSNumber numberWithInt:35] forKey:@"Yvalue"];
                self.correctwrongImageView.frame=CGRectMake(362,351,253,201);
                //self.resultview.frame=CGRectMake(362,351,253,201);
    Thanks.

    You might get better responses posting this to the developers forum.

  • Spacing between textfield and text

    Anyone know how to set spacing between the text and border of a textfield?
    The docs say to use
    textfield.setMargin(new Insets(top, left, bottom, right));
    but that doesn't do anything.
    Thanks a lot for suggestions.

    The problem is that your border isn't going to use the margin of the text field (since it's not specialised for text fields). You've got a number of options:
    1) use the default border
    2) use a compound border with the default border inside
    3) write your own border that incorporates the text field's margin
    4) don't bother setting the margin and simply add a corresponding EmptyBorder into your compound border instead
    Option 4 is probably the quickest for you:
    textField.setBorder(new CompoundBorder(SOLID_BORDER, new EmptyBorder(10, 10, 10, 10)));Hope this helps.

  • How to Change the Spacing Between Bullets on a List

    I used to use Microsoft Expression and I could change the spacing between bullets on a list by formatting the paragraph and changing the spacing.  In Contribute I don't see how to do that.  I tried to Edit Roles under Administer Websites so it would be 2 lines after paragraph, but that doesn't help.  So if I want to increase the spacing between bullets on a list, how do I do that in Contribute?
    Steve

    Please log an Enhancement Request thrown, https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=9
    or make a suggestion for Contribute next.

  • How to increase the number of characters in Text Edit??

    Hi,
      How to increase the number of characters we enter in the Text Edit, for example i can't enter not more than 255 characters. If to enter upto 500 char, what to do.
    Thanks and regards,
    Karthik

    We can't restrict the number of characters a UI element can take. Rows and columns properties are to specify the visible no of rows and columns.
    If u want a restriction in the number of characters you have to create a simple type and set it to a context attribute and then map it to the text view.

Maybe you are looking for