How to change display width of TAB character in a TextArea?

Is it possible to change the width of an insert TAB character in a Flex TextArea?
I'm capturing FocusEvent.KEY_FOCUS_CHANGE events and manually inserting a "\t" into a text area styled with an embedded monospace font. By default, the TABs are being displayed two and a half monospace characters wide. I need them to display five monospace characters wide.
Any ideas on how to do this?

Try doing something like this:
class MyJTextArea extends JTextArea {
    public boolean keyDown(Event evt,int key) {
        if(key == 13 || key == 10) { // or whatever ascii codes enter may have
            // move carret to next line
        } else {
            super.keyDown(evt, key);
}which means you have got to catch the enter-key before the actutal JTextArea does this.
p.s. look at my post, maybe you can help me, too.
http://forum.java.sun.com/thread.jsp?forum=5&thread=465803&tstart=0&trange=100

Similar Messages

  • How to change the width of a field?

    Hi all,
    I would like to decrease the width of a field on my report.
    But I can't do it in the Property palette. I am not able to change the width property. The width of the database column is varchar2(255). I do not want to decrease the length of the database column, but only the width property of the field.
    Any ideas?
    Regards

    As far as I knows, you can only increase the width of a
    character column. If you wish to decrease it, I would think
    you'd have to drop/delete the whole column and recreate it,
    loosing all your data in the process (unless you create a
    temporary table into which you copy the data first, and then
    copy it back into the "new" column - the oracle db will truncate
    the data automatically).
    SQL Plus is very well suited for the task, but requires you to
    write the appropriate SQL statements yourself. Other tools may
    simplify this for you (I use SQL Plus myself).
    Hope this helps.
    Eric (guest) wrote:
    : Hai, How to change the width of the field in a particular
    table.
    : I try to do so by using 'Schema Builder ver 6.0', but the
    result
    : come with a message like below :-
    : OBE-15472: Cannot decrease length of existing column
    : 1. where should I be to modify the column width ?
    : 2. is SQL Plus 8.0 can do so? if yes, what's the syntax ?
    null

  • How to change the width of a switch control?

    If I set long on&off texts, they can't be fully displayed. How to change the width of this sap.m.switch control?
    P.S., "width" attribute doesn't work here.

    Hi Jocy,
    A switch is just a simple boolean control : true/false, yes/no, on/off. Other possibilities are not possible.
    If you to need to choose between, say, black/white, then a switch is *not* a good choice; nothing stops you from adding yellow/red/blue to the mix as well.
    If you *do* have a strict boolean choice (again, only rue/false, yes/no, on/off) then I would suggest adding a descriptive label with the simple, short switch control.
    Otherwise, I would strongly advice using a different type of control (RadioButtonGroup, DropdownBox)

  • How to change the width of PDF report

    When i download an interactive report to a PDF. All the columns will have the same width, how to change the width of the column?
    Thanks,
    Jen

    I don't think its possible for downloading from interactive report but let's see if anyone else has got a work around.
    The other way to have absolute control over report layout is to create reports using 'Report Query' & 'Report Layout' under 'Shared Components'.
    Regards,
    Ashish Agarwal
    http://www.dbcon.com

  • How to change the width of a column in the web templete

    hai
       can anyone pl help me to solve the issue
    here is the issue
        " how to change the width of the column in web templete?" is there any chance  to change
    thanx in advance
    syam

    First use the Active Cell property and set the row value to -2 to change an entire column. The attached image shows how to set the background color of column 3 to green. I don't understand your comment about column size. It doesn't matter how wide or narrow a column is. Using the Cell Background Color property, the entire cell is colored. If you are having difficulty keeping track of the number of columns, thats a different issue.
    Attachments:
    Background_Color_of_Table.jpg ‏5 KB

  • How to change the width of dropdown parameter's in BI Publisher

    Hi,
    Can you please tell me how to change the width of dropdown parameter's in BI Publisher

    Kirk,
    In the <rw:graph> tag, just add the standard HTML properties of width="xxx" and height="xxx" to control the width and height of the image. BTW, the graph tag is in the on-line help, although not in the index. You can find it by doing a search for "rw:graph".
    regards,
    Stewart

  • How to change the width of the scrollbar

    how to change the width of the scrollbar,
    I wanted to have a large scrollbar in all controls (for a touch screen app lets say) then is that possible?
    Either through CSS, code,
    skins anything really... Any ideas?
    Thanks in advance.

    Hi,
    horizonatal(vertical)ScrollBar.width - in AS/MXML code
    horizontal(vertical)ScrollBarStyleName - for style. But I'm not sure that width getted from css.

  • How to change the width of the EditForm.aspx and NewForm.aspx for both new and edited list entries?

    How to change the form widths for the EditForm.aspx and NewForm.aspx files that display both new and edited list entries?

    Hi  ,
    According to your description, my understanding is that you want to modify the width of the New Form and Edit Form of a list in SharePoint 2010 .
    1.Go to your SharePoint site -> your list.
    2.In top ribbon click  List tab(List Tools).
    3.Towards right you will see option as Form Web Parts, click on it, the three forms will be listed there [New Form, Display Form, Edit Form].
    4.Select the one on which you want to increase the width/height.
    5.It will open in edit mode, click on Add a Web Part.
    6. Click on Forms [Categories] => HTML Form Web Part.
    7.After adding the HTML Form Web Part, click on Edit WebPart.
    8.Click on Source Editor, Remove all code from it and put an empty HTML table with width and height as per your requirement ex. to increase width
    <TABLE WIDTH="800px">
    <TR><TD></TD></TR>
    </TABLE>
    9.Save the form and check out your respective modal by clicking on the same in your list view.
    Reference:
    http://sharepoint.stackexchange.com/questions/40580/how-to-modify-width-of-standard-dialog-form-sharepoint-2010
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to change the width of the database-scalar data type

    I have a new problem. I have a parameter F_Organization in my report(version 6i) of type Database-scalar. now that the width is fixed in property pallete. Is there any way to change the width of this parameter,if so how. will some one let me know

    I did the same, opened the data model typed some dummy character and then deleted them, if u give the alias for the source it does not change the width, instead if u give the original name as the source it changes the width. I do not know why is this happening?
    Message was edited by:
    user552442

  • How to change the width of the whole portlet layout?

    Dear all,
    As we know, now the width of portlet layout has set to 100%. But there is a new requirment from my customer that the width of the whole portlet layout view must be set to 750px.
    So I tried to edit the css file and I found a block:
    #pt-portal-content-view
         margin-top: 0px;
         width: 100%;
    I tried to change the width to 750px, but nothing happened.
    I want to know the way to change the width, thank you all!
    Regards,
    finall
    OK,I have found the place to do it:
    .portalContent          {
         display: block;
         width: 750px;
    I set to 750px,then it works.:-)
    But another question, how to make the content align to the center? I tried a stupid method, add margin-left:
    .portalContent          {
         display: block;
         width: 750px;
         margin-left: 120px;
    In 1024 X 768, it's ok, but it don't work well in 800 X 600.
    When I set the all content width to 750px, I tried the three columns view, the portlet still run over the border.If there is any way to control this? thank u in advance!
    Regards,
    finall
    Edited by finall1980 at 02/01/2007 10:09 PM

    Try this:
    .portalContent {
    display: block;
    width: 750px;
    margin: auto; /* for properly-implemented browsers */
    text-align: center; /* for IE 6 */
    As for running over the 750px, there's nothing you can do about that other than actually narrowing the columns AND making sure that your portlet authors don't produce content that's too wide.
    Chris Bucchere | bdg | [email protected] | http://www.thebdgway.com

  • How to change the width of the bar of bar charts?

    Hi,
    I am using Crystal Reports 11.
    I created some stacked bar charts. Now, I want to change the width of the bar. Some one told me that I can't do that because it's totally controlled internally by Crystal Reports.
    Really?
    If could, how could I do?
    Thank you in advance.

    Hi,
    The only way you can set the width of the bar is by going to Chart Options (Right-click Chart in Preview Mode > Chart Options > Appearance tab > Decrease the Gap Width).
    Hope this helps!
    -Abhilash

  • How to change the width and height of the visible part of the of the report

    I have define a report with paper size 'Letter', orientation 'landscape' and 30 columns. Dynamically I am changing width of columns and suppressing many columns of the report.
    Mostly using first 16-20 columns and others get suppressed.
    Now problem is that when navigating the report thru crystal viewer, a huge blank spaces getting display on right of the report. When we take jump to some part of report thru navigation tree, the whole report gets shifted to left and only blank part is visible and it is required to scroll left.
    Even printing is not working correctly.
    Is there any way to change the width and height of the visible part of the report in the viewer thru .net classes? Setting the width and height of the report in Load event handler doesn't help.  
    Example: CrystalReportViewer1.Width = 200; - is not helping.
    Is there any other solution?
    Please let me know.
    Thanks
    Mahesh Patel

    Hi Yogesh,
    Your suggestion 'reportDocument.PrintOptions.PaperSize=PaperSize.PaperLedger;' along with 'PaperOrientation' setting as follow works fine. I tried to switch between Landscape and Portrait depending on report width.
    reportDocument.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    But problem with crystal viewer remain as it is.
    While navigating report thru crystal viewer, when we take jump to some part of report thru navigation tree, the whole report gets shifted to left and it is required to scroll left.
    Thanks for your very good suggestion.
    Mahesh Patel

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • How to change the width for af:selectManyShuttle by skins

    i need to change the width for selectManyShuttle by skin i can do that by change the width for .AFFieldText but this method change the all select* and textfiled width,so i just want to change the width for selectManyShuttle component.
    and i hope to know how to change the header color for selectManyShuttle ,the default color for it is green.

    Thanks ,It is working
    Could you please tell me how to change the header text color for af:selectManyShuttle
    Regards
    Wish79

  • How to change the width...

    how can i change the width of the stage (Dimensions) with
    action script?
    i want to allow to surfers to change the width & height..
    _root.width and Stage.width does not work..
    thanks.

    you can accomplish this by calculating the ratio of the
    current width to the desired width and setting _root._x scale and
    _yscale. for instance, lets say your current stage is 800x600, and
    you want 1000x500:
    _root._xscale = 1000/Stage.width
    _root._yscale = 500/Stage.height

Maybe you are looking for