Sorting multiple arrays at different indexes

I have just another very quick question on tables, this time on the sort of them. I just re-wrote my code to use for correspondence with values of 2 tables and then adding them to the screen.

However, it seems that my correspondent is far away, it matches the items that are the same index, which is not always the case

The output for the matches, which should be next to sideis as follows (which is incorrect), so I'll try to find values to levels different index

Dunlop
Babolat
Wilson
Wilson
Head
Dunlop
Adidas
head
Babolat
Slazenger
Slazeger
Prince
Prince
Völkl
Völkl
Adidas

I tried to sort the array, but it seems that the table cannot be sorted as I want. I simply wanted to do ascending sort, but change to lowecase wouldn't do what I had to do.

This is the code, the matchInfo function should do all the work

package {
     
     import flash.display.*;
     import fl.transitions.*;
     import fl.transitions.easing.*;
     import flash.net.*;
     import flash.events.*;
     import flash.text.*;
     import flash.text.AntiAliasType;
     import bucket_left;
     
     
     public class CustomClass extends MovieClip {
          
          //Position Variable
          private var position:uint;
          
          //XML responsible variables 
          private var xmlLoader:URLLoader;
          private var xmlContainer:XML;
          private var xmlList:XMLList;
          
          //Array specific variables 
          private var rackUSA:Array;
          private var rackOther:Array;
          private var imagesArray:Array;
          
          
          //This is the constructor of the application 
          public function CustomClass() {
               position = 50;
               rackUSA = new Array();
               rackOther = new Array();
               imagesArray =  new Array();
               LoadXML();
          }
          
          private function LoadXML() {
               xmlLoader = new URLLoader();
               xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
               xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
          }
          
          public function populateImages(imgname:String, imgurl:String) {
               var imageLoader:Loader = new Loader();
               imgname = imgname.split(".gif").join("");
               imageLoader.name = imgname;
               imagesArray.push(imageLoader);
                      imageLoader.load(new URLRequest(imgurl));
          }
          
          public function matchInfo(infoArray:Array, imagesArray:Array) {
               infoArray.sort();
               trace(infoArray);
               for (var c:uint = 0; c < imagesArray.length; c++) {
                    trace(infoArray[c].brand);
                    trace(imagesArray[c].name);
                    if (infoArray[c].brand.toLowerCase() == imagesArray[c].name) {
                         var brand:TextField   = new TextField();
                         var country:TextField = new TextField();
                         var made:TextField    = new TextField();
                         var cost:TextField    = new TextField();
                         var bucket                  = new bucket_left();
                         brand.text   = infoArray[c].brand;
                         country.text = infoArray[c].country;
                         made.text    = infoArray[c].made;
                         cost.text    = infoArray[c].cost;
                         
                         //Align Data
                         bucket.y = position;
                         bucket.x = 100;
                         brand.x = -50;
                         brand.y = -35;
                         country.x  = -45;
                         country.y  = -10; 
                         made.x = -45;
                         made.y = 5;
                         cost.x = 45;
                         cost.y = -10;
                         imagesArray[c].x = -100;
                         imagesArray[c].y = -35;
                         
                         addChildAt(bucket, 0);
                         bucket.addChild(DisplayObject(imagesArray[c]));
                         bucket.addChild(brand);
                         bucket.addChild(country);
                         bucket.addChild(made);
                         bucket.addChild(cost);
                    }
                    position += 150;
               }
          }
          
          private function populateInfo(event:Event) {
               
               //Incoming XML Data
               xmlContainer = new XML(event.target.data);
               xmlList = xmlContainer.product;
               //
               
               //Variables to hold the string
               var brandTxt:String;
               var country:String;
               var material:String;
               var price:String;
               var image:String;
               
               for (var i:uint = 0; i < xmlList.length(); i++) {     
               if (xmlList.country.text()[i] == "USA") {
               brandTxt = xmlList.brand.text()[i];
               country = "product of " + xmlList.country.text()[i];
               material = "made of " + xmlList.material.text()[i];
               price = "$" + xmlList.price.text()[i];
               image = xmlList.image.text()[i];
               rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image});
               } else if (xmlList.country.text()[i] == "Other") {
               brandTxt = xmlList.brand.text()[i];
               country = "product of " + xmlList.country.text()[i];
               material = "made of " + xmlList.material.text()[i];
               price = "$" + xmlList.price.text()[i];
               image = xmlList.image.text()[i];
               rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image});
               }
               populateImages(image, "http://localhost/rackets/" + image);
               }
               matchInfo(rackUSA.concat(rackOther), imagesArray);
          }
     }
}

given an element of imagesArray the following function returns the first object in infoArray where the brand property corresponds to the element:

function infoArrayF(ldr:Loader):Object {}

for (var i: uint = 0; i<>

{if (infoArray [i]. Brand.toLowerCase () is LDR. Name)}

return infoArray [i];

}

}

}

//

and you can use this function as follows:

var obj:Object = infoArrayF (imagesArray [c]);

If you want just the hint of infoArray returned from infoArrayF, I return instead of infoArray [i]

Tags: Adobe Animate

Similar Questions

  • Sort order incorrect in datagrid sort multiple columns

    Hello

    I'm a little confused about sort multiple columns in a datagrid. The following code sorts, but not the sort, I expect or what you are doing the thing about a coming O alphabetically before or after P. In my opinion, the code must sort stadt, vname by clicking on the city column, and name, the VNAME by clicking on the column name, but obviously he disobeys correctly? You see an error in the code or is this a bug?

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:Script >
    <! [CDATA]
    Import mx.collections.SortField;
    Import mx.collections.Sort;
    Import mx.collections.ArrayCollection;
    Import mx.events.DataGridEvent;
    var myData: ArrayCollection collection = new ArrayCollection (new Array () collection
    {name: "Meier", vname: "Peter", City: "Bonn"},
    {name: "Meier", vname: "Max", City: "Bonn"},
    {name: "Meier", vname: "Olga", City: "Bonn"},
    {name: "Meier", vname: "Peter", City: "Bochum"},
    {name: "Meier", vname: "Susi", City: "Bochum"}
    ));
    function mySort(event:DataGridEvent) {}
    var mySorter: sort = new Sort();
    Switch (event.columnIndex) {}
    case 1:
    mySorter.fields =]
    new SortField ("name", true),
    new SortField ("vname", true)
    ];
    break;
    case 3:
    mySorter.fields =]
    new SortField ("stadt", true),
    new SortField ("name", true),
    new SortField ("vname", true)
    ];
    break;
    }
    myData.sort = mySorter;
    myData.refresh ();
    }
    []] >
    < / mx:Script >
    < mx:DataGrid dataProvider = '{myData}' headerRelease = "mySort (event)" >
    < mx:columns >
    < mx:DataGridColumn dataField = "name" headerText = "Name" / >
    < mx:DataGridColumn dataField = "VNAME" headerText = "Vorname" sortable = "false" / >
    < mx:DataGridColumn dataField = "stadt" headerText = "Stadt" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Application >

    Allright! So the column index begins with zero don't step one! It was the first.

    Secondly, once you have defined your own sorter, you don't want the default behavior of the event to pass by so you will add

    Event.preventDefault ();

    just after myData.refresh (); line.

    Give it a shot. should work.

    HTH.

    ATTA

  • multiplying the elements of an array with their index

    How can I multiply the elements of an array with their index values.

    Thanks in advance.

    Hi aksoy,.

    Multiply the elements with their index:

  • Cannot print multiple documents of different types of files in Windows 7 Explorer

    In Windows XP Explorer, I was able to select multiple files of different types, right-click and select print.  In Windows 7 64 bit and Office 2007, the selection of print is missing when I right click except if all files are of the same type, i.e. all the Word Document or Excel Documents.

    Hello

    Here are some links that may prove beneficial.

    http://support.Microsoft.com/kb/943336

    http://support.Microsoft.com/kb/160592

    http://social.answers.Microsoft.com/forums/en-us/wordshare/thread/a5d17d09-ce08-452A-9b75-3c8490b74c7a

    I hope that this information is beneficial.

    Thank you

    Aaron
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Sort groupItems Array using the left coordinate of visible limits?

    Hey all! It's been a while, but I'm back with some more busters of brain for you guys.

    I'm trying to re - work a script that Silly-V wrote to me. The goal is to create a work plan around each group of a document element in the order of the top left corner to the lower right (as if reading a book). (ultimately I would like to add a provision that excludes the possibility of having a work plan contained by another work plan, but it is a luxury that I can try to find later).

    Silly script works very well and does exactly what I need... about 60% of the time. The problem comes when I have an item that contains a clipping mask. Since work plans are created through groupItem.visibleBounds, Illustrator assumes that the invisible work that extends beyond the clipping mask is visible and creating a work plan that is too much.

    His version pushes the visible boundaries of each groupItem in an array, then sorts the visible boundaries of the left coordinate, then pushes this sub-table in another table and at the end, to coordinate kinds berries vertically at the top... However, I'm looking to push the real groupItems in the table instead of just the visible limits. So I would like to sort the groupItems by their visible limits table and then I have the opportunity of either by creating work plans based on their visible limits or (the possibility of) loop to make each groupItem selected = true and using the fitArtboardToSelectedart() command.

    I'm stuck on how to sort the groupItems table based on the visible limits... Here's what I have so far:

    my inclination is to set a variable to the visibleBounds of each groupItem in temp (which seems like it would need a loop), but it's not supposed loop me XIRR...? There is something really big, I'm missing here, but I can't wrap my head around it.

    Thanks for any help!

    function organize(){
      var docRef = app.activeDocument;
      var layer = docRef.layers[0];
      var groups = layer.groupItems;
      var currentRowMarker;
    
      var groupList = []; //array of all groupItems
      var sortedGroupList = []; //array of subarrays sorted by visible bounds
      var temp = []; //temporary array for the current row of groupItems. sort this array from left to right first, then push the entire array into "sortedGroupList"
    
    
      //populate groupList
    
    
      for (g=0; g<groups.length; g++){
           groupList.push(groups[g]);
      }
    
    
      //set currentRowMarker and compare rest of groupList to top coordinate of visible bounds. push true results to temp array.
    
    
      for (t=0; t<groupList.length; t++){
      temp = [];
      currentRowMarker = groupList[t].visibleBounds[1];
      temp.push(groupList[t]);
      groupList.splice(t,1);
    
           for (c=0; c<groupList.length; c++){
                var currentGroup = groupList[c];
                var vB = groupList[c].visibleBounds[1];
                     if (vB + 20 > currentRowMarker && vB - 20 < currentRowMarker){
                          temp.push(currentGroup);
                          groupList.splice(c,1);
                     }
           }
    
      //this is where i'd like to sort the temp array
    
      sortedGroupList.push(temp);
      }
    }
    organize();
    

    Thanks for your help, Vassili.

    I've been unable to get your suggestion to work, does not mean that it was an erroneous suggestion. So I decided to go the more complicated route. I hope that I can learn about why your suggestion did not work for me in a subsequent attempt.

    I am sure that this isn't the most elegant way to perform this task, but it was the only way that makes sense to me. Here's what I ended up with:

    for (s=temp.length; s>0; s--){
      var placeholder = 0;
      var farthestLeft;
      var deleteIndex;
           for (a=0; a		   
  • Playback of multiple files with different file extensions

    Hi all

    Is there a way where we can read multiple files with different file extensions using file adapter?



    < property name = value=".*\.csv"IncludeFiles"/ >

    Can include us a few models more file in the property above? Please let me know

    Yes you can. .

    But here, the thing you need to do is all these files must have the same format (XSD)

    You can dynamically pass the name of the file to invoke the activity of the file that is the property of jca.file.filename

    The value given when you set up the adapter will be written by this value. .

    Hope this will help you

    If this is not the case, let me know. .

    Thank you & best regards

    Sharath Kumar

  • Photos of virtual machines with multiple disks on different LUNS - Question

    I have some questions on how to manage the snapshots of virtual machines with multiple disks on different LUNS.  First of all, the LUNS are VMFS.  We are just starting to add virtual machines with dedicated for data storage format VMFS LUNS.  I don't think an extra space must be made for snapshots, as well as at least 100 GB LUN is required to store the data, and then say, add about 25 to 50% of this amount?  Set the 100 GB vmdk file but have the GB from 25 to 50 additional disk space for snapshots, if necessary (rather than just to get a unit number logic needed 100 GB of data and devote all of the 100 GB to the vmdk file).  In addition, if a virtual machine has several files vmdk on different LUNS, which will be a problem to take a snapshot, and is it possible to do just a snapshot of a disk of a virtual computer (as the volume of the BONE)?

    Thanks for any help.

    Snapshot files are created in the home folder of the VM by default for all virtual disks, no matter on what data store they are. You must make sure you have enough free disk space on the data store for snapshots.

    If you want to exclude a virtual disks of taking snapshots, you can set it to 'Independent' - 'Persistent' machine virtual settings to the HARD drive.

    André

  • How can I send docs to multiple signatories with different addresses on sign of Echo?

    How can I send docs to multiple signatories with different addresses on sign of Echo?

    Hello

    In EchoSign, you simply have to add e-mail addresses to each signatory in the box 'To' and set the saved order. If you have to close, you must enter your last e-mail address and check the box "I need to sign. The shape that you send must have signature of blocks for each signatory but apart from that, there are other special rules or the necessary implementation. If you continue to experience problems try this, detail your problem here and I'll do what I can to help.

    See you soon!

    EchoSign-Rob!

  • How to watermark multiple images with different dimensions in Photoshop?

    Is there a way I can place a watermark on the bottom right of the multiple images, any size images? I tried to use Photoshop Scripts > image processor, but it only works for images of the same size. I want to put the watermark on multiple images of different sizes. It is the output I got.

    For the first image watermark placed properly, but for the second picture watermark is distracted. As you can clearly see the dimensions are different. Please suggest me a solution.

    additional1.jpg

    test.jpg

    As this video should help you.

    How to watermark multiple images in Photoshop CS6 - YouTube

  • to sort an array of numbers NOT as strings using the. sort()

    Hello

    y at - it a function or a simple way to sort an array of numbers in the order of their values and not as strings? For example, 100 came AFTER 9; (9, 100) (100, 9).

    Thank you.

    Use the ARRAY.numeric parameter.

    (and you can still use a custom for kinds more custom sort function parameter).

  • Error - "you have connected two arrays of different sizes.

    I am completing hands-on Introduction to Labview Mathscript chapter to scientists and engineers, and I added in the code for the controller of the form, I get the error message:

    You have two or more types of data table wired together, but the paintings have a different number of dimensions. It is necessary to display the context-sensitive Help window to see the number of dimensions. The dimension of-> t is 2. The dimension of the XY graph-> t is 1.

    I tried inserting the index and build arrays as says the help page, but it still does not work.

    Attached is a screenshot and any help would be greatly appreciated.

    You have a couple of 2D paintings coming out of your node Mathscript.  Is that what you want?

    You are clustering together to get to the XY graph, but I don't think that there is no structure of logical data for a chart that uses a set of 2D charts.

    First, you need to look at the help and examples for a XY Chart see what data structures which can accept a graphic.  Then understand what mean 2D paintings and what you can do for them to get them to work in a XY Chart.

  • How can I connect a digital a test multiple numerical limit limit index in the database

    I am trying to store the results of our trials in the database.

    Its simple to step to a given market Index connect using the following expression

    Logging.StepResult.TS.Index

     

    However, our tests have many steps multiple numerical limit, and I must be able journal index of each test of numerical limit of the multiple steps in order to correctly return their numerical limit. The only phrase I can find that gives me this information is

    Logging.PropertyResultDetails.Order

    But the order does not quite appear to match like 1, 2, 3... but instead comes out as 9, 16, 23,... for a test and 9, 17, 25, 33, 41, 49... for another test.

    Could someone explain what is really Logging.PropertyResultDetails.Order . And if there is another term I should use to get the Index of the numerical limit for a trial of multiple numerical limit?

    Also is it a sort of reference manual that shows what kind of properties I have access to in Logging.PropertyResult I can't find that anywhere! Any help would be greatly appreciated!

    See you soon

    Kewal

    How about something like:

    Logging.PropertyResult.Parent.GetArrayOffset ("", PropOption_NoOptions, "[\" "+ Nameof (Logging.PropertyResult) +"-"]")

  • The order of the points in a sort pathPoints array

    Well, why would I do that? Well, I have areaText the rectangles that have been created by various means, and index 0 is sometimes high on the left, other times the bottom right. I need to do a lot of resizing, alignment, spacing, sizing. To describe the movement of the top left point of each (or anywhere else), I'm trying to clean up the sequence of points in each table pathPoints objects in order to move the pathPoint [0] .anchor for each rectangle and make sure that the upper left corner moves, not another random corner.

    Then, test only one script, and I came up with the following (don't laugh about how I called the table), which works very well in extendScript:

    var testArray = new Array;

    testArray.push ({xVal: 5,:0}) yVal;})

    testArray.push ({xVal: 0, yVal:-2});

    testArray.push ({xVal: 5, yVal:-2});

    testArray.push ({xVal: 0, yVal:0});})

    function primarySort() { testArray.sort (function (a, b) {return b.yVal - a.yVal});}   }

    function secondarySort() {}

    reorganize the first pair of xVal-based points

    If (Number(testArray[0].xVal) > Number(testArray[1].xVal)) {}

    Sensors = testArray [1];

    testArray.splice (1,1);

    testArray.unshift (moveMe) ;}

    reorganize the second pair of points based on xVal

    If (Number(testArray[2].xVal) < Number(testArray[3].xVal)) {}

    Sensors = testArray [2];

    testArray.splice (2.1);

    testArray.push (moveMe) ;}    }

    function printArray() {}

    for (i = 0; i < testArray.length; i ++) {}

    var writeMe is testArray [i].xVal.toString () + ', ' + testArray [i].yVal.toString ();.

    $.writeln (writeMe);  }}


    primarySort();

    printArray();

    $.writeln ('... ») ;

    secondarySort();

    printArray();

    So then I tried to do the same thing for Illustrator:

    var ObjArr = app.activeDocument.textFrames;

    var objPoints = new Array;

    for (i = 0; i < objArray.length; i ++) {}

    var pathObj = .textPath ObjArr [i];

    objPoints = pathObj.pathPoints;

    XYpairSort() ;}

    function XYpairSort() {}

    writes the current sequence of anchor pathPoint y coordinate x in the console

    for (i = 0; i < objPoints.length; i ++) {}

    writeMe var = objPoints [i] .anchor [0] m:System.NET.SocketAddress.ToString () + ', ' + objPoints [i] .anchor [1] m:System.NET.SocketAddress.ToString () + "," + i;

    $.writeln (writeMe) ;}

    Sort the four points at the top and at the bottom of the pairs

    objPoints.sort (function (a, b) {return b.anchor [1]-a.anchor [1]});

    reorganize the first pair of xVal-based points

    If (Number(objPoints[0].anchor[0]) > Number(objPoints[1].anchor[0])) {}

    Sensors = objPoints [1];

    objPoints.splice (1,1);

    objPoints.unshift (moveMe) ;}

    reorganize the second pair of points based on xVal

    If (Number(objPoints[2].anchor[0]) < Number(objPoints[3].anchor[0])) {}

    Sensors = objPoints [2];

    objPoints.splice (2.1);

    objPoints.push (moveMe) ;}

    writing the new sequence of pathPoint anchor y coordinate x in the console

    for (i = 0; i < objPoints.length; i ++) {}

    writeMe var = objPoints [i] .anchor [0] m:System.NET.SocketAddress.ToString () + ', ' + objPoints [i] .anchor [1] m:System.NET.SocketAddress.ToString () + "," + i;

    $.writeln (writeMe) ;}

    }

    Who raises an error "objPoints.sort is not a function".

    Unlike the single version JS, my script HERE trying to sort all the points of all of the textAreas, which I will fix shortly so it sorts the 4 points for each object. The problem is that the script is not sorting points, but providing a helpful error instead.

    Any ideas? Research on the Internet for this error does not explain why it happens, just in other ways to do the kinds.

    Well, if you did this time to the discussion, the approach I took is completely unnecessary.

    You see, I knew .top, .the .width and .height rectangles properties, and if you changed the width of a textFrame, he would scale the text that it contains:

    var obj = app.activeDocument.textFrames [0] / / guess that's narrower than the 2 inches

    obj. Width = 144; will scale the width of the block and its content also.

    Thus, to avoid the problem of scaling that I had to make sure that the textPaths of what I had selected was the same index order for I can enter each item individually and always take the same point for each textFrame. I was changing the height and width of each textFrame by assigning new XY coordinates at each angle of the trajectory. Good to know how to do this, but not necessary, because the attributes .top, .the, .width and .height are available for the textPath object.

    What I do not know (and do now), is that you can change the path without scaling the content:

    var obj = app.activeDocument.textFrames [0] / / guess that's narrower than the 2 inches

    var objPath = obj.textPath;

    objPath.width = 144;  is not at the scale of the text inside the frame.

  • Built-in sort with Arrays.sort

    I have multidimensional array that contains a number as new arr int [10] [10] and that you want to sort according to the last column. Arrays.sort is a simple way to do it, but what happens if I don't want a real movement elements occur by Arrays.sort (arr [] []). Frankly, I'm interested in winning positions but not to grant the lines. Can I pass it arrange step because not interested in changing the original table? For the moment, I sort the table with Arrays.sort then index of table row and I fixed the position number pair. For example arr [0] has rank 1, arr [1] has the rank of 2 etc. If sorted according to the last column.

    Published by: totalnewby on May 23, 2011 22:51

    totalnewby wrote:
    I just need to know where the items would be positioned if they have been sorted. I made copy of the table at the moment and my program is successful, even if it takes a lot of time and additional memory to perform the copy because this table has billions lines in reality. If you can suggest less time-consuming solution do let me know.

    This is my standard example of how to do this sort of indirect.

     public static void main(String[] args) throws Exception
        {
            final Words words = new Words("/usr/share/dict/words");
            final List data = new ArrayList();
            for (int i = 0; i < 10000; i++)
            {
                String[] row = new String[10];
                for (int j = 0; j < row.length; j++)
                {
                    row[j] = words.getRandomWord();
                }
                data.add(row);
            }
    
            final Integer[] indirectIndex = new Integer[data.size()];
            for (int i = 0; i < indirectIndex.length; i++)
            {
                indirectIndex[i] = i;
            }
    
            final Comparator indexComparator = new Comparator()
            {
                @Override
                public int compare(Integer left, Integer right)
                {
                    int result = 0;
                    for (int i = 0; result == 0 && i < data.get(left).length; i++)
                    {
                        result = data.get(left).compareTo(data.get(right)[i]);}return result;}};
    
    Arrays.sort(indirectIndex, indexComparator);
    
    for (int i = 0; i < 100; i++){System.out.println(indirectIndex[i] + "\t" + Arrays.toString(data.get(indirectIndex[i])));}}
    
    You just need to create a Comparator for sorting the index array that uses the last entry in each row of real data array when comparing a row rather than all the row entries as I have done. 
    
  • easier way to sort the array of strings 2D?

    I have an array of strings long 2d, and I would like to sort by the value 2. It originated as:
        public static final String names[][] = {
         {"000000", "Black"},
         {"000080", "Navy Blue"},
         {"0000C8", "Dark Blue"},
         {"0000FF", "Blue"},
            {"000741", "Stratos"},
            ...
         {"FFFFF0", "Ivory"},
         {"FFFFFF", "White"}
        };
    As you can see, they are first sorted by hexadecimal values. It is useful for the part of the application.

    There are 1 567 entries. I want to the alphabetize the names of color and place them in a widget from the list. I need to retain the values to hexadecimal color associated with name values. All I can think to do something like:

    (1) to a temporary array of strings of length 1 - d
    2) fill loop that adds hexadecimal values in the values of name: temp [i] = new String (names [1] + names [i] [0])
    (3) sort [temporary] with built in the sort of Java
    (4) make a permanent new string, [hexValues] array to hexadecimal values
    (5) copy the last 6 characters of each item to [hexValues]
    (6) to truncate the last 6 characters of each element in [temporary]
    (7) create widget with [temporary] list

    Is there a more elegant way? What I really want to do is build an array of int 1 d, with the values that represent locations in alphabetical order of the names. However, I see no integrated whole that would make this kind of indirect type.

    - - - - - - - - - -
    Second question - can the bottom of each item in a list widget be a different color? Ideally, the list would display in black or white color name and its value of color as the background. Specifically, I am trying to build the list produced by the JavaScript here:

    * http://chir.ag/projects/name-that-color/

    and add it to my Java interactive color wheel:

    * http://r0k.us/graphics/SIHwheel.html

    - - - - - - - - - -
    BTW, I've converted its name this Javascript (ntc.js) color to a native Java class. It is freely distributable, and I have the host here:

    * http://r0k.us/source/ntc.java

    -Rich

    Published by: RichF October 7, 2010 19:04
    Stupid forum software; I don't see what he did go italic the new Word.

    People forget that a 2D array is essentially a table 1 d of paintings.

    colorNames.add(new colorName(ntc.names[1], ntc.names[0]));
    

    The above code attempts to pass arrays as parameters to your Builder, but your Builder expects a String object.

Maybe you are looking for