Problem in changing List control's font..!!

Hi.. I'm having this problem where if I take a listbox & add 15 items to it & change the font of each item in a loop
using the function below, it works perfect..
//sets font for every item in List used in the application
     private void SetListBoxItemsFont(List lstBx)
          Font FONT_APPLICATION = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
          for(int i=0;i<lstBx.size();i++)
               lstBx.setFont(i, FONT_APPLICATION);
     }     but now if I clear the list control & add 5 items(less than the earlier one)
and call out the same function to change the font.. it throws an error..
java.lang.ArrayIndexOutOfBoundsException
     at javax.microedition.lcdui.ChoiceGroup.insertImpl(+317)
     at javax.microedition.lcdui.ChoiceGroup.append(+25)
     at javax.microedition.lcdui.List.append(+9)
     at TimingsDialog.SetTimings(+128)
     at SelectRoutesDialog.commandAction(+189)
     at javax.microedition.lcdui.List.callKeyPressed(+80)
     at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+198)
     at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(+11)
     at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(+121)
     at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(+210)
     at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+178)
what do you think is the problem?? please help...

Hi Dayson, this is how far I could get --
The top of the stack trace in NetBeans:
java.lang.ArrayIndexOutOfBoundsException
        at javax.microedition.lcdui.ChoiceGroup.insertImpl(ChoiceGroup.java:1402)
        at javax.microedition.lcdui.ChoiceGroup.append(ChoiceGroup.java:388)
        at javax.microedition.lcdui.List.append(List.java:423)List.append    public int append(String stringPart, Image imagePart) {
        return cg.append(stringPart, imagePart);
cg is an instance field, class of cg is ChoiceGroup.
ChoiceGroup.append    public int append(String stringPart, Image imagePart) {
        int returnVal = -1;
        synchronized (Display.LCDUILock) {
            checkNull(stringPart, imagePart);
            returnVal = insertImpl(numOfEls, stringPart, imagePart);
        return returnVal;
    }ChoiceGroup.insertImpl    private int insertImpl(int elementNum, String stringPart,
                           Image imagePart) {
        if (numOfEls == stringEls.length) {
            String[] newStrings = new String[stringEls.length + 4];
            System.arraycopy(stringEls, 0, newStrings, 0, elementNum);
            System.arraycopy(stringEls, elementNum, newStrings,
                             elementNum + 1, numOfEls - elementNum);
            stringEls = newStrings;
            if (imageEls != null) {
                Image[] newImages = new Image[imageEls.length + 4];
                Image[] newMutableImages = new Image[imageEls.length + 4];
                System.arraycopy(imageEls, 0, newImages, 0, elementNum);
                System.arraycopy(imageEls, elementNum, newImages,
                                 elementNum + 1, numOfEls - elementNum);
                System.arraycopy(mutableImageEls, 0, newMutableImages,
                                 0, elementNum);
                System.arraycopy(mutableImageEls, elementNum, newMutableImages,
                                 elementNum + 1, numOfEls - elementNum);
                imageEls = newImages;
                mutableImageEls = newMutableImages;
            if (fontEls != null) {
                Font[] newFonts = new Font[fontEls.length + 4];
                System.arraycopy(fontEls, 0, newFonts, 0, elementNum);
                System.arraycopy(fontEls, elementNum, newFonts,
                                 elementNum + 1, numOfEls - elementNum);
        } else {
            System.arraycopy(stringEls, elementNum, stringEls, elementNum + 1,
                             numOfEls - elementNum);
            if (imageEls != null) {
                System.arraycopy(imageEls, elementNum, imageEls,
                                 elementNum + 1, numOfEls - elementNum);
                System.arraycopy(mutableImageEls, elementNum, mutableImageEls, // line 1402
                                 elementNum + 1, numOfEls - elementNum);
            if (fontEls != null) {
                System.arraycopy(fontEls, elementNum, fontEls,
                                 elementNum + 1, numOfEls - elementNum);
        if (choiceType == Choice.MULTIPLE) {
            if (selEls.length == numOfEls) {
                boolean newSelEls[] = new boolean[numOfEls + 4];
                System.arraycopy(selEls, 0, newSelEls, 0, elementNum);
                System.arraycopy(selEls, elementNum, newSelEls, elementNum + 1,
                                 numOfEls - elementNum);
                selEls = newSelEls;
            } else {
                System.arraycopy(selEls, elementNum, selEls, elementNum + 1,
                                 numOfEls - elementNum);
            selEls[elementNum] = false;
        stringEls[elementNum] = null;
        if (imageEls != null) {
            imageEls[elementNum] = null;
            mutableImageEls[elementNum] = null;
        if (fontEls != null) {
            fontEls[elementNum] = null;
        numOfEls++;
        if (choiceType != Choice.MULTIPLE &&
                (elementNum < selectedIndex || selectedIndex == -1)) {
            selectedIndex++;
            hilightedIndex = selectedIndex;
        } else if (elementNum < hilightedIndex || hilightedIndex == -1) {
            hilightedIndex++;
        setImpl(elementNum, stringPart, imagePart);
        return elementNum;
    }I've marked line 1402, but that line relates to the images array. However, 5 lines down, line 1407 is concerned with the fonts array, so I'm assuming the code I have is slightly different from the one compiled to the ChoiceGroup.class used by NetBeans.
This is the declaration, with comments, for fontEls, the fonts array:    /**
     * The array containing the Font of each element (null if no setFont()
     * method was ever called). If fontEls is non-null, only the elements
     * which were set by setFont() are non-null.
    private Font[] fontEls;So this becomes apparent: fontEls is non-null after setFont() has been called. Now review the code block around line 1407:            if (fontEls != null) {
                System.arraycopy(fontEls, elementNum, fontEls,
                                 elementNum + 1, numOfEls - elementNum);
            }BUT... nowhere in the code do I find a new array being assigned to fontEls, EXCEPT in the setFont method, and that too only once... here's List.setFont    public void setFont(int elementNum, Font font) {
         cg.setFont(elementNum, font);
    } and ChoiceGroup.setFont    public void setFont(int elementNum, Font font) {
        synchronized (Display.LCDUILock) {
            checkIndex(elementNum);
            if (fontEls == null) {
                fontEls = new Font[numOfEls];
            fontEls[elementNum] = font;
    }With this knowledge, I reduced your code to the smallest possible that should demonstrate the bug -- and I did get the NullPointerException thrown by ChoiceGroup.insertImpl. This is the code I tested:package dayson;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.List;
public class TestList extends List {
    final Font FONT_APPLICATION = Font.getFont (Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
    public TestList () {
        super ("", List.IMPLICIT);
        append ("", null);
        setFont (0, FONT_APPLICATION);
        append ("", null);
}I think this makes enough sense to submit a bug report to Sun. Would you like to do the honours? Do post the bug ID here, I believe there's a system of voting for bugs -- the bugs with the most votes get fixed soonest.
db
To other readers of this: sorry for the length of this post, but the topic merited it.

Similar Messages

  • Sharepoint 2013 online - Site problem - Recently changed list

    Hi All,
    I'm trying to add Recently changed content WebPart to my site on Sharepoint 2013. Standard setup no customizations just plain simple site with one document library and notes. All seems fine with adding content to page, saving and so on. But when I want to
    preview / view my site there are no elements on Recently changed list although in properties of webpart when I modify query and go directly to Test - all is fine and results are there. Probably there is small switch that I'm not aware of to turn this list
    on. Anyone can help?
    Kind regards
    Adam

    Hi,
    As my understanding, you want to extract InfoPath form attachment into a SharePoint library.
    For SharePoint Designer, there is no SharePoint actions to extract InfoPath attachment into a SharePoint library. As a workaround, you can develop a custom workflow activity to do it.
    Or, you can find a third party solution to achieve it.
    There are three articles similar with this topic, please check if they are useful for you:
    http://www.bizsupportonline.net/infopath2007/use-workflow-extract-file-attachment-infopath-upload-sharepoint-document-library.htm
    http://www.bizsupportonline.net/blog/2009/06/use-custom-sharepoint-designer-action-extract-attachment-infopath-form-add-sharepoint-document-library/https://askmanisha.wordpress.com/2013/10/04/extracting-info-path-attachment-using-nintex/
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Embed Font in a List Control

    I have no problem embeding fonts to be used in dynamic text
    but I cannot get my style to apply to a list control using AS3.
    My style code is:
    import fl.managers.StyleManager;
    var menuStyle:TextFormat = new TextFormat();
    menuStyle.color = 0xFFFFFF;
    menuStyle.size = 20;
    menuStyle.font = new CKTerzini().fontName;
    menuStyle.letterSpacing = 1;
    menuStyle.align = "center";
    StyleManager.setComponentStyle(List, "textFormat",
    menuStyle);
    My list control code is:
    my_list.setStyle("embedFonts", true);
    //my_list.setStyle("textFormat", menuStyle); DOES NOT WORK
    my_list.setRendererStyle("textFormat", menuStyle);
    I also have the font added to the library and properly
    linked. (Class name set to CKTerzini).
    This code works fine with the font on the system but not on a
    computer without the font.
    I have tested that the font is embed in the SWF by using the
    style on dynamic text and it works fine.
    Any suggestions would be greatly welcomed...
    Robert Pritchard
    Nerds Software

    Can you post the code for your list, renderer and custom control?

  • Problem in activating change lists

    hello every one,
            here i am new to XI. i am doing some R&D regarding the activation of IR objects. At first i can see all the objects including the software component version created under one standard change list. i just tried to activate the software component alone. on the next second it created another change list giving some error. please any one guide me how to overcome this problem.

    When you add name space into your software component version, you have to activate three objects first:
    The Modified SWCV
    Two default fault data types.
    If you do not do above first, then you created other objects, you won't be able to activate all of them once.
    You still need to select three object I mentioned in the list, activate them first, then activate other objects later.
    Hope it helps.
    Liang

  • CS4 - In InDesign can I change the Control Panel????

    I have recently upgraded to InDesign CS4 and I'm finding that my Control Panel does not match the one I used in CS3. Is there a way of adding tools to the Control Panel? Or changing the Control Panel?
    For example when I have text selected the Character Formating Controls offer: font, font size, leading, some options like superscript & subscript, alignment, indents, space before & after, drop cap, bullet list & number list. When I switch over to the Paragraph Formating Controls I get the exact same items just in reverse order. How do I add kerning, horizontal scale, the hyphenation box, and more. I'm noticing similar issues when I have an object selected, where is my "fit frame to" options?
    It seems with CS3 I had so much more available, is there any way to get CS4 to be set up in the same way?

    More options appear on the Control panel if you choose the Advanced workspace instead of Essentials. Choose Window > Workspace > Advanced.

  • Hi, I have big problems since 2 weeks with outline, fonts, size in Ai CS6 : Numerical value are so big

    Hi, I have big problems since 2 weeks with outline, fonts, size in Ai CS6 : Numerical value are so big and I can't change it with smaller. Apparently Ai said me that comes from AiPrefs... Could you help me please.
    I tried to initialize my preferences but nothing change.
    PS : Sorry for my English, I'm French
    Pierre

    Pierre,
    You may try the list and see how far down you need to go; you have probably been through 1) and 2), and 4) is both reversible and more thorough than 3); 5) is hardly relevant, so you may end up with 6).
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Exported data to Excel - how to control the font?

    Hi Experts,
    I wonder if we are able to control the font in
    the data exported to excel.  In our case it is
    always in Bold Arial 12.  Not very nice to look at.
    Is there a way to change the font?  In addition is it
    possible to exclude the Lists of infoobjects at top?
    Just want to have the table?
    Thanks for your help.
    Regards,
    Rose

    seen this??:
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-i
    assign points if useful ***
    Thanks,
    Raj

  • Font not found when opening file and not able to resolve, but is listed in the fonts drop down list?

    Hi, i just downloaded some files from a friend and he sent me a link to download the fonts. I did so and 98% of the fonts work, but there are two fonts i am struggling with.
    When i open the file i get the font missing warning and it asks me to resolve the fonts. I cannot find the appropriate font in the drop down list so i click 'don't resolve' and start to edit the file. i then come across some text that has missing fonts and i am able to highlight the text and change the text to the appropriate font using the type tool and the font I am looking for is in the drop down list.
    The fonts that aren't working are:
    Franchise Bold and BebasNeue
    The problem is there are multiple separate incidents where these fonts occur, and going through changing each one manually would take a lot of time.
    Is there something i can do to fix them all at once?
    Thanks,
    Harry

    I do not see either font  in the list you show.  I see Bebas Neue xxx but no Bebas Neue without any extra style. Try Bebas Neue at Download Bebas Neue Font - Thousands of fonts to download for free

  • ItemRenderer in List control

    Well guys, I seem stuck with a wall trying to make List
    control working with programmable dataProvider and itemRenderer
    defined as a component. The naive example from flex2 dev guide (p.
    723 "Using an item renderer with a List control") is working fine,
    but in real word we are hardly coding dataProvider inline, so I
    tried to change this example and got absolutely nothing in my
    browser window:
    main application:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    height="700" width="700" creationComplete="initApp()">
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import flash.net.URLRequest;
    import mx.utils.ArrayUtil;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var u:URLRequest;
    private var jobArray: Array = new Array();
    private var myAC: ArrayCollection = null;
    private function initApp():void {
    var myObj1:Object = {label:"Alaska", data:"Juneau",
    webPage:"
    http://www.state.ak.us/"};
    var myObj2:Object = {label:"Alabama", data:"Montgomery",
    webPage:"
    http://www.alabama.gov/"};
    jobArray.push(myObj1);
    jobArray.push(myObj2);
    myAC = new ArrayCollection(jobArray);
    ]]>
    </mx:Script>
    <mx:List id="myList"
    height="180" width="250" variableRowHeight="true"
    itemRenderer="RendererState" backgroundColor="white"
    dataProvider="myAC">
    </mx:List>
    </mx:Application>
    itemRenderer component:
    <?xml version="1.0"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import flash.net.URLRequest;
    private var u:URLRequest;
    private function handleClick(eventObj:Event):void {
    u = new URLRequest(data.webPage);
    navigateToURL(u);
    ]]>
    </mx:Script>
    <mx:HBox >
    <mx:Label id="State" text="State: {data.label}"/>
    <mx:Label id="Statecapital" text="Capital: {data.data}"
    />
    </mx:HBox>
    <mx:LinkButton id="webPage" label="Official {data.label}
    web page"
    click="handleClick(event);" color="blue" />
    </mx:VBox>
    Anyone?

    Ug, why won't adobe let us use tabs in our messages? Just to
    make everyone's code harder to read? Anyway...
    the very first thing I notice is that your list's
    dataProvider has no brackets "{}" to link it to the object. Seems
    that should throw an error though... however, there is a way to
    mess up your browser by installing the new Flash 9 player without
    installing the new SDK so that you don't actually get to see the
    errors that are thrown. So be careful there.
    First see if the brackets is an issue. Even if it doesn't
    throw an error, since you aren't binding the dataProvider property
    it may only load the ArrayCollection once when it is still empty
    and not after you have pushed the new data. You might also try
    setting the dataProvider directly in AS code: list.dataProvider =
    [obj1, obj2]
    I recommend adjusting your code in various ways first before
    finally giving up and posting here. Often that will narrow down the
    problem and make it easier to address.
    Finally, if you are thinking of having multiple focusable
    controls in your itemRenderer/Editor (this goes for either List or
    DataGrid) you should abandon the idea right away. Last I checked,
    tab focus will not pass correctly between individual renderers (at
    least not on IE). My solution is to simply use a Repeater. It has
    more overhead and you have to fiddle with scroll bars a bit, but it
    is a much more stable and robust solution.
    Anyway good luck.

  • List control issue in Projector mode after Printomatic

    I'm working on an application in MX. I'm using a multi-select list control and mostly it's working fine. However, in Projector mode, under certain circumstances, my list is shown considerably reduced in size and, when I click on it, I get a Director player error: Property not found #selectedIndex.
    I've narrowed the problem down to the use of Printomatic. Unfortunately I'm stuck with Printomatic for the time being.
    I've tried changing the list to a single-select with no change. I've put an alert when I click on the list to determine whether the list object is receiving messages and it is. I've tried returning from the Printomatic calls to a frame where the list doesn't already exist and then recreating the list - no change.
    It seems as though Printomatic is corrupting something related to the list. And, once it's been corrupted, it stays corrupted until I restart the executable.
    Anyone have any suggestions? I don't have time right now to implement a printing class which is the only other idea I have.

    Perhaps is better to continue here because I have the same symptom but due a different problem:
    Creating procedure sp_sqlagent_get_perf_counters...
    Error: 468, Severity: 16, State: 9.
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
    Error: 912, Severity: 21, State: 2.
    Script level upgrade for database 'master' failed because upgrade step 'sqlagent100_msdb_upgrade.sql' encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken
    offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that
    the script upgrade steps run to completion.
    Error: 3417, Severity: 21, State: 3.
    Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.
    SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    This is System Center dedicated instance so the defualt collation, as from SC requirements, is SQL_Latin1_General_CP1_CI_AS, but MSDB uses Latin1_General_CI_AS.
    It seems that sqlagent100_msdb_upgrade.sql fails in creating the sp sp_sqlagent_get_perf_counters in the MSDB (in fact it doesn't exist).
    Now I was thinking about changing sqlagent100_msdb_upgrade.sql introducing the collate parameter, but I have don't know where to find it.
    My instance actually is UP due the -T902 parameter usage 
    Please try to write better code ;-)
    Ruggiero Lauria
    MCT-MCITP-MCSA-MCSE-MS SQL DBA

  • BackgroundColor on ItemRenderers in mx:List control

    We have some mx:List controls in our application and the backgroundColor on the itemRenderers has stopped working when we moved from Flex 3 to Flex 4. Is this a known issue? I have been searching high and low for any mention of this and I haven't been able to come up with anything. It seems that if I create another container inside the root container, I can set the color on that but I was wondering if there was any way to get it to work without such a large change.
    I built a basic sample and it is showing the same problem:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           width="200" height="250">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:ArrayCollection id="testData">
                <fx:Object name="Line 1" description="Description One" color="#347FE7"/>
                <fx:Object name="Line 2" description="Description Two" color="#387fe8"/>
                <fx:Object name="Line 3" description="Description Three" color="#a437bd"/>
            </s:ArrayCollection>
        </fx:Declarations>
        <mx:List dataProvider="{testData}" width="100%" height="100%">
            <mx:itemRenderer>
                <fx:Component>
                    <mx:HBox
                        backgroundColor="{data.color}"
                        backgroundAlpha="0.5"
                        mouseOver="{setStyle('backgroundAlpha', 1.0)}"
                        mouseOut="{setStyle('backgroundAlpha', 0.5)}">
                        <mx:Canvas width="16" height="16" backgroundColor="{data.color}" />
                        <mx:Text text="{data.name}"/>
                        <mx:Text text="{data.description}"/>
                    </mx:HBox>
                </fx:Component>
            </mx:itemRenderer>
        </mx:List>
    </s:WindowedApplication>

    Sometimes when I need a background color or image, I just wrap my component in a BorderContainer and set the <s:Fill/> there.
    It may not be as elegant as Darrell's solution, but it works for me.

  • Spark.List Control: right order in selectedItems

    Hi there,
    How can I get the right order from the selectedItemsArray?
    The docs say:
    "These Vectors contain a list of the selected indices and selected data items in the reverse order in which they were selected. That means the first element in each Vector corresponds to the last item selected."
    But this is not correct. If you have a look in the example "Handling multiple selection in the Spark List control" at the end of
    http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff923c946c5112135c8ee9e-7fff.html
    you will see, that the order is switching around at every click you make to select an Item in the list.
    Indeed the last selected item is the first item in the array, but the order of the other items is not forseeable...
    My Problem:
    I'm using a list control as an itemeditor in a datagrid. (BTW: Is there a way to use dropshadow on the control?)
    The selectedItems are written to Database as a string in form of "firstselection : secondSelection : thirdSelection".
    I also already tried to push the last selectedItem in an array on every change event and join this to a string at focusOut.
    But that seems to be to late, because the datagridColums editorDataFiled doesn't take the the new values.
    Maybe there are other events , which would be better to use?
    Besides how to handle the prevoiuos selectedItems, which comes already from the db. The best would be, if they are already in the right order at the beginning of that array respectivelythe string. "prevSelectedItem1 : prevSelectedItem2 : newSelectedItem1 ..."
    Another solution would be to have at least the first selectedItem to be the first Item in the string to be written to the db whether is already selected at the editbeginnig or complete new selections are made.
    I hope its understandable, because I'm from Germany
    Every help is welcome!
    Thanks, Kalle!
                <mx:DataGridColumn headerText="Fliesenart" dataField="prd_art" resizable="false" width="300" editorDataField="artLiSelected"  >
                    <mx:itemEditor >
                        <fx:Component>
                            <s:MXDataGridItemRenderer height="22" >
                                <fx:Script><![CDATA[
                                    import mx.collections.ArrayCollection;
                                    import mx.events.FlexEvent;
                                    import spark.events.IndexChangeEvent;
                                    [Bindable]
                                    public var artLiSelected:String;
                                    [Bindable]
                                    public var artTempArr:Array = new Array();
                                    public var artNewTempArr:Array = new Array();
                                    protected function artLi_creationCompleteHandler(artStr:String):void
                                        artLiSelected = artStr;
                                        artTempArr = artStr.split(" : ");
                                        var artTempVec:Vector.<Object> = new Vector.<Object>();
                                        for each (var art:Object in artTempArr) {
                                            artTempVec.push(art);
                                        artLi.selectedItems = artTempVec;
                                    protected function dataCollector():void {
                                        artNewTempArr.push(artLi.selectedItems[0]);
                                        //artLiSelected = artLi.selectedItems.join(" : ");
                                        trace ("change");
                                    protected function dataSubmitter ():void {
                                        artLiSelected = artNewTempArr.join(" : ");
                                        trace ("focusOut");
                                ]]></fx:Script>
                                <s:List id="artLi" height="300" top="5" left="5" right="5"
                                        dataProvider="{outerDocument.artNamesArr}"
                                        change="dataCollector()"
                                        focusOut="dataSubmitter()"
                                        requireSelection="true"
                                         creationComplete="artLi_creationCompleteHandler(data.prd_art)"
                                        allowMultipleSelection="true"
                                        />
                            </s:MXDataGridItemRenderer>
                        </fx:Component>
                    </mx:itemEditor>
                </mx:DataGridColumn>

    Create your own list which must extend from spark.List and then override the function calculateSelectedIndices.
    Then you can do 2 things depending on how you want the order in the selectedItems:
    1. Change all the interval.splice to interval.push (now you have the normal order)
    2. Change the "for (i = 0; i < selectedIndices.length; i++)" to "for (i = selectedIndices.length -1; i > -1; i--)" (then you have a reversed order)

  • I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (114957)

  • Changing the size of fonts in InDesign's menus and toolbars?

    Is it possible to change the size of fonts in InDesign's menus and toolbars? I'd love for the Control Panel at the top to be a bit easier to read.

    Thanks Bob, didn't see it anywhere but figured it was worth asking. I think the size is a little biased toward people with better vision than me but I guess I'll have to live with that.
    Jon

  • How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text?

    How do I change the color of font in a fillable form in Adobe Reader? How can I check if the writer of the document has given permission to edit color and not just add text? Please help! I'm technologically challenged.

    Most forms (99% or more) are created for simple text input, where you cannot change anything.
    The creator of the form could allow Rich Text input (which allows you to change font, text size, color, etc.), but frankly I have never seen such a form, and I wouldn't know how they look.  But I'm sure they would show some kind of controls to alter the text appearance.

Maybe you are looking for

  • Report not displaying anything

    Hi Experts, Please advise why is dat the report not showing any values where as we have good amount of data in cube. CRM - BI. Cube: 0MKTG_C01 report : 0MKTG_C01_Q7001 Cube - Regular deltas uploaded. Cube has data. Report not showing any value.

  • Xsql pages not displaying properly

    Hi, I have downloaded & installed the XSQL Servlet as mentioned in the document. I have apache web server with apache jserv. Also I have the access DB & for the example (helloworld.xsql) below am using "Student" data source name & "Contact" table nam

  • Proxy-config wsdl question

    When defining my destenatoin in the proxy-config.xml, Is it possible to point to a wdsl  located on the local file system? I am trying to connect TIBCO web-services which do not advertise the WSDL. -jh

  • EP Upgrade with Custom Developments 2

    Hi all, I am planning to upgrade EP 6.0 to EP 7.0 Currently, some java standard application (for example: leave application [esslea~sap.com] already have  been modified in order to fullfill my user requirement . Once we have upgrade to the EP 7.0, is

  • Rmi on Windows XP

    Hello, I have read the tutorials on Sun's Web site about how to use RMI but much of it is specific to UNIX. Is there a tutorial that explains how to correct start the services on Windows XP so that they begin when the machine is booted?