Sort by Name function is not sorting numerical documents.

Hi, 
I have document libraries that house files that are numbered, i.e. 1 Doc, 2 Doc, 3 Doc. 
However, when I sort them they arrange themselves as 1 Doc, 11 Doc, 12, Doc... 2 Doc, 21 Doc
How do I change this to the logical order? At the moment, the sorting function is rendered useless. 
Thanks, 

The sort order is sorting alphanumerically as expected with each character being matched against the same character in the comparator.
The only way to fix this is to prefix your documents numbers with '0's as padding.E.g. Doc 01, Doc 02
Paul.
Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

Similar Messages

  • My photo albums used to be sorted by name now they are sorted by date (ipod touch ) any ideas?

    my photo albums on my ipod touch
    were sorted by name now they are sorted by date taken .I didn't change any settings on my computer any ideas?

    You're in the Photo Mode with Event Titles displayed so you are looking at events.  But in this mode you can only sort the photos within the Events, not the Events.
    Go to the Events mode and there you can sort the events by: date, title or manually:
    FWIW albums arew those items in the left hand pane:
    OT

  • Search By Name function is NOT WORKING.

    Before reading further, PLEASE take note of this: I have ALREADY installed the "Search By Name" add-on, and it DOES NOT WORK. As such, PLEASE do not suggest that add-on as a fix to my issue, since that add-on IS my issue.
    I was using Firefox ESR 10.0.11 and was forced to upgrade to 17.0.7 yesterday, even though my cfg file is set to not allow updates. Since the upgrade, the Search by Name function has stopped working, i.e.: I used to be able to type "yahoo" into the address bar and go straight to yahoo; now, when I type anything that is not a complete URL into the address bar, it goes to allied.com. I have already gone into about:config and changed keyword:URL to http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= and have also installed the Search By Name add-on. Neither of these work. Please help me.

    Does that setting of the keyword.URL pref stay?
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Importing - sorts image names all kooky - not in order

    Please take a look at this image:
    http://amrosario.com/lightroomimport.jpg
    You can see that in the import dialog box, Lightroom puts images out of order. Image number 110 comes after image number 1099 and before image number 1100.
    C'mon guys, fix this!!! This is basic sorting that should not be like this. It's going to take me quite a long time to manually uncheck the images that I do not want to import.
    The images should be listed in proper numerical order! I have not had to deal with this bass ackwards behavior since Mac OS 9.
    Antonio

    Maybe it should be, but it's always safest to name them so they will sort properly in any program. I thought I was fine too with some naming without leading zeros until I wanted to use a particular slide show and it wasn't smart enough. So I always name things so they will sort without any "smarts" about how humans like to name things.
    Meanwhile, can you sort by date? Should that be the same in your case, or not...

  • UNDO SORT BY NAME IN TOOLBAR

    I SORTED BY NAME AND CAN NOT UNDO, JUST UPGRADED YESTERDAY, HAVE 5.0 FOR MAC OS X
    IT IS A MESS NOW
    I TRIED RESTORING TO DEFAULT-BUT THAT MADE IT WORSE, I DO NOT WANT FOLDER ICONS

    ''Remove folder and bookmark icons from Bookmark Toolbar, Sorting Bookmarks, and possibly undoing sort by name:''
    I can't think of a logical order within folders that works better than alphabetical in most cases -- one exception is a bookmarks folder containing bookmarks to create a set of app-tabs in a specific order controlled by prefixing by numbers or many bookmark separators. The bookmarks toolbar is a possible exception but I have all of my bookmarks automatically sorted. I make use of bookmark separators to group bookmarks so that bookmarks are sorted within each group but not moved to another group. Here is a picture of my Bookmark Toolbar
    :http://dmcritchie.mvps.org/icons/fx5_before_after.png
    Looks something like: [boldface are Folders (blue) vs. Bookmarks (red)]
    :'''*5.0* _ Blogs Chaos SUMO''' | # + < > G GV H L Pz Sp Wi |''' K S '''sw| nBk Sc '''BF BugsBML'''| ...
    :names are kept very short to save space on the toolbar 1-3 chars for most of them. The bookmarks there are used like toolbar buttons and they are all bookmarklets (contain JavaScript).
    The '''"K" folder''' on my bookmarks toolbar contains mostly [http://dmcritchie.mvps.org/firefox/kws.htm keyword shortcuts] most of which are bookmarklets, along with references to support and mozillazine articles. So I don't really need many bookmarks showing on the toolbar.
    The '''folder and bookmark favicons are removed by a style''' managed by the Stylish extension:
    * '''Stylish''' :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/stylish/
    * '''Bookmarks Toolbar Fx4 Blue/Folders, Red/Bookmarks''' - Themes and Skins for Browser<br>http://userstyles.org/styles/46947/
    The '''Sorting of bookmarks is by an extension''', you can exclude any of the three major folders like the Bookmarks Toolbar. Don't use the automatic sort though, switch it to manual. Sorting takes about 3-5 seconds for all of my bookmarks.
    * '''SortPlaces''' :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/sortplaces/
    Another place that I use '''bookmark separators''' is at the end of huge folders, so that I can review naming, content and keyword assigned before allowing into the main portion of a folder.
    You might be able to see your '''original bookmark order''' by going to the Library list ("Ctrl+Shift+B") and changing the order there on the "Views" menu > Sort > to "Unsorted". ("''Command''+Shift+B" on a Mac for the Library List)
    '''For additional help''' working with your '''bookmarks and history''' see
    * '''Bookmarks''' -- http://kb.mozillazine.org/Bookmarks
    * '''Sorting and rearranging bookmarks''' <br>http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * '''Viewing the browsing history''' <br>http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox

  • KM sort not sorting items correctly?

    Hi,
    I have 20 docs inside a folder displayed in a portal. When these are shown sorted by name they are not shown as I would exspected.
    the structure of the docs are:
    1 xxxx
    2 xxxx
    20 xxxx
    they are order as follows:
    10 xxxx
    19 xxxx
    1 xxxxx
    20 xxxx
    2 xxxx
    9 xxxxx
    This seems strange as I would expect that the ordering would be 1, 2, 3 etc?
    Does anyone have any explaination for this??
    BR
    Jesper

    Hi Jesper,
    Do not worry about that, it is a common behaviour across whole software world,  for example, check the order of files within your music collection on your computer. You will see the same situation.
    You can get around that by changing the single digit names to start with a leading 0:
    01 xxx
    02 xxx
    10 xxx
    Best regards,
    Alexander Zhukau

  • I can select a rating and a color label for my images, but I can not sort by rating and color label.

    I can select a rating and a color label for my images, but I can not sort by rating and color label. when I click on the filter drop down, color label is not one of the options.  how do I get both ratings and color lables as an option to sort with.

    You can Filter (not sort) on both color label and rating if you want, open the Filter Bar with the backslash key, then click on Attribute, and then select the stars and color label of interest. If you really meant "sort" and not filter, then you can't do this in Lightroom.

  • PhE11: No possibility to sort my pictures by file name !  Why not ?? (Like in PhE 9)  Tha

    There is in PHE 11 Editorno longer a possibility to sort my pictures by file name !  Why not ?? (Like in PhE 9)  That creates a big problem working with my thousands of files !

    dear Brett N
    I am a new macbook user forced to give up Digital Image Pro (winXP), and looking for a photo program that sorts BY NAME. REPEAT BY NAME.
    I was ready to purchase PSE11, but luckily I read this forum and saw that in your infinite wisdom you spared every expense and removed this function.
    I have no need for face recognition, type of photo, etc.
    Should I abandon 15 years of files all sorted by where they were taken?
    I think not. For you to do this to previous owners shows a blatant disregard for them.
    I will look elsewhere and not to a Photoshop product.
    Should you provide an update that corrects this I would consider installing it on my 2 new Apple machines. Hurry though......

  • I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this.

    I have a lot of various book mark folders with websites contained within each folder. I am able to sort the websites within each folder alphabetically by name but I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this other than manually dragging them as this is extremely hard for me due to the fact that I am a quadriplegic with limited hand movement dexterity

    Bookmark folders that you created are in the Bookmarks Menu folder. "Sort" that folder.
    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically

  • Lightroom 5 will not sort images properly, either by file name or capture time.  How can I fix this issue?

    I am using Lightroom 5 with OSX 10.9.2 and the sorting feature is not working properly.  When I try to sort my library by file name or capture time, it does not sort properly.  The order of images is mixed and stays that way, even after reboot.  The file information is correct, the sorting is the only issue.  The library is approximately 6,000 images and I am also using a plug in with the Publishing Service feature.  Any help on how to fix this issue without losing my editing work done on the library would be appreciated.  Thanks! Dan

    Thanks! I'm trying to sort by capture time or file name, and neither sorts correctly.  file names 3450, 3451, etc. before files 0234, 0235, etc.  It makes no sense.  Same with capture time.  Times are accurate in meta data, but sorting is just wrong.  I'm using a ShootProof plug in that is only used for uploading files to the web. The issue is in the main library folder, so I'm not sure the plugin has anything to do with it.  Any sort I seem to choose: capture time ascending order, file name descending order, whatever, yields a different yet inaccurate sort.  The below sort is flagged, by file name ascending order.  This is the bottom of the list where it goes from file brigitte_terry_w6408... to brigitte_terry_film_0039... to brigitte_terry_w2825...  Regardless of the 'film' file, the w2825... files should be displayed above w6408.  Thanks for any help!

  • When I select my iPod touch in iTunes the buttons are inactive when I try to sort by name, artist etc.  Also about half of the links under 'file' etc are not active.

    When I select my iPod touch in iTunes the buttons are inactive when I try to sort by name, artist etc.  Also about half of the links under 'file' etc are not active.

    Further to my question, when I plug in and select my iPad 2 I don't have the same problem.  I have restored the settings on my iPod Touch and updated both iTunes and iPod Touch software and restarted my iPod touch.  Nothing has made any difference.

  • HT1347 I have an mp3 DVD with episodes of Gunsmoke.  iTunes imports them, but does not sort them correctly by date or episode.  One file name is GS 52-04-26 001 Billy the Kid.mp3

    I have an mp3 DVD with episodes of Gunsmoke.  iTunes imports them, but does not sort them correctly by date or episode.  One file name is GS 52-04-26 001 Billy the Kid.mp3.  iTunes sorts them by month/day/year.  How can I fix that?

    The weird thing is, it worked before. I encoded all the videos previously and had them all listed and didn't encounter this problem, but I noticed I'd forgotten to decomb/detelecine the videos so I deleted everything and re-encoded it all. AFter filling the tags out and setting poster frames again I was thinking of making life easier by just pasting the same artwork for every episode, so I did, but didn't like the results so I deleted it again (I selected every video, used Get Info and pasted the artwork that way).
    I think it was after this that the problem started to occur. In any case I've been through every episode and made sure the name, series, episode and episode id fields are all filled in with incremental values and they are. I even made sure the Sort Name field was filled in on every video. But this didn't work either.
    So, thinking another restart was needed I deleted every video again. Re-encoded them all, again. Set the tags for every video and poster frame again. Finished it all off nicely, checked cover flow and was highly annoyed to find it was STILL showing the same two pieces of art work for every video as shown in that image I posted.
    Ultimately, I wouldn't care so much that cover flow is screwing up like this as I always intended to sort by program anyway so it would only ever display one piece of artwork for an entire series of videos, however where-as when it was working it picked the artwork for the first episode of a series to display, its instead picking one of the latter episodes. I can't seem to find any way of choosing what artwork I want displayed.

  • I have transferred my iTunes library from windows 7 pc to new windows 8 pc. Music was in alphabetical order by surname but new pc has some by surname some by first name and some not in alphabetical order. How can I get sorted?

    Question  Hi - I've transferred my iTunes library from windows 7 pc to one with windows 8. My library was in alphabetical order by surname but after transfer is now some by surname, some by first name, and some not in alphabetical order. How do I sort this out and also make sure that new downloads list by surname alphabetically?  

    Sorting in iTunes is often controlled by selecting different column headings. The sort order for any given column may be further modified by a sort value, e.g. Sort Artist affects the sort order of Artist. If you transferred the library properly all of the metadata should have remained intract and you simply need to select the a column that sorts as you want. If you had to import the library then there is the potential for tagging effects that could mean metadata entered previously didn't import with the media. Note that iTunes has no mechanism for automatically deciding which values are in <Forename> <Surname> order and could therefore be sorted as <Surname> <Forename>. The only automatic process drops leading articles (a/an/the) so that "The Doors" sort under D as "Doors".
    See also Grouping tracks into albums.
    tt2

  • Elements 11 Sort By Name does not always sort by name

    If I choose Sort By: Name, MOST of the images are sorted properly by filename, but some are not.
    All my files are named YYYYMMDD####, but yet (for instance) in this view right now I have three files that start with 20150317 that are sorting BEFORE pictures with filenames 20150101...  Then everything goes sequentially as expected, right through the place in the sequence where these pictures SHOULD be.
    At the end of the sort I have similar problems.  If the sequence ends with (say) 20140414...., then there will also be pictures with filenames like 20150317 AFTER that.
    This makes no sense.  The system simply cannot be actually sorting by filename and having this result.  It's got to be using some metadata of some sort, not filename.
    I've looked at the advanced properties/metadata and there does not appear to be any difference between files that properly sort and those that show up out of sequence.
    What's the deal?

    Just to update this in case someone else is having a similar problem.
    First, I mis-spoke.  I'm on 12, not 11.
    With that, I do have all the right menu choices to "sort by name", however when I did that, it did not correct the sort order.  A very small fraction of what I had in the catalog (perhaps 1%) persisted in sorting by some unknown criteria.  Viewing the meta data or properties of the files did not show any differences between the files that were sorting "out of sequence" and those that were.
    At one point, thinking something had corrupted the catalog (I have a lot of files, who knows..) I "repaired" and then "optimized" the catalog.  No change.
    Ultimately what I did was (just to "try something") was delete the catalog entry for those files (not the files themselves) and then re-scan that folder.  Elements Organizer "found" the files again and imported them into the catalog.  After that, they now show up properly, sorted by filename, in the thumbnail view (by folder).
    So.. whatever it was, it was solved in this way.  We'll see if it now recurs.
    Thanks!

  • DOM, and (not) sorting by Attribute name

    I'm using XML files to store certian options for a program I'm making. The only problem though is that it seems as though the NamedNodeMap you get from calling node.getAttributes has the attributes in sorted order.
    Namely it's sorted alphabetically.
    This is not at all what I would like, it's pretty important that the attributes be in the order I wrote them, not sorted.
    Is there another way I can do this?
    I could always just have a text entry for the Attribute types, like
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    AttributeType_1, AttributeType_2
    <whatever AttributeType_1="whatever" AttributeType_2>
    #And so on.
    </root>
    Or I could do any number of variations on that theme.

    Here is some source code.
    xmlGenerate.java
    This will convert 2D arrays into XML Strings, or vice versa. There's a couple other things it does too, but that's the important part (
    //import crap
    import java.sql.Savepoint;
    import java.util.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.xml.parsers.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.apache.xml.serialize.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    //generates xml files
    public class xmlGenerate{
    public static final String PATH=SRJava.Constants.PATH+
    "\\Editors\\CharacterGenerator\\";
    * This method takes in stuff, the kind of stuff,the names of the
    * attributes of that stuff, and returns XML
    * The input is the stuff, and the output is
    * a string which is the stuff in XML.
    * Each row of the stuff represents the data of an Object
    * Each column represents a specific value, which is specified by
    * attrNames
    public static String toXML(Object[][] stuff, String[] attrNames,
    String type){
    try{
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.newDocument();
    Element root = document.createElement("root");
    document.appendChild(root);
    //going thru each equipment to append to root
    int entries = stuff.length;
    int attributes = attrNames.length;
    String tempStr;
    for (int entry = 0; entry < entries; entry++){
    Element a1 = document.createElement(type);
    //set xml document
    root.appendChild(a1);
    for (int attr =0; attr < attributes; attr++){                   
    //this gets the data from the xml
    if (stuff[entry][attr] instanceof String){
    tempStr=(String)stuff[entry][attr];
    }else{
    tempStr="";
    a1.setAttribute(attrNames[attr],tempStr);
    OutputFormat format = new OutputFormat(document, "UTF-8", true);
    StringWriter stringOut = new StringWriter();
    XMLSerializer serial = new XMLSerializer(stringOut, format);
    serial.asDOMSerializer();
    serial.serialize(document);
    return stringOut.toString();
    *fill in components
    }catch (Exception e){
    e.printStackTrace();
    return null;
    * From XML , returns the equipmennt
    * Input is file and output is the data from the XML document
    public static Object[][] fmXML(Node root){
    //make double array
    try{           
    NodeList childNodes = root.getChildNodes();
    Vector attrNodeVector= new Vector();
    int entries=0;
    boolean determined=false;
    NamedNodeMap attributeList = null;
    for (int index=0; index < childNodes.getLength(); index++){
    Node node=childNodes.item(index);
    if (node.getNodeType()==Node.ELEMENT_NODE){
    entries++;
    attrNodeVector.add(node);
    if (determined==false){
    attributeList=node.getAttributes();
    determined=true;
    String[] attrNames=getAttrNames(root);
    int attributes=attrNames.length;
    Object[][] stuff=new Object[entries+1][attributes];
    //this value is so new entries can be added.
    for (int attr=0; attr < attributes; attr++){
    stuff[0][attr]="";
    for (int entry = 0; entry < entries; entry++){
    Element thenode=(Element)attrNodeVector.get(entry);
    //make sure the node being looked at is the right kind.
    for (int attr=0; attr < attributes; attr++){
    //parseing goes on
    stuff[entry+1][attr] = thenode.getAttribute(attrNames[attr]);
    return stuff;
    }catch (Exception e){
    e.printStackTrace();
    //there was some kind of error, return nothing useful.
    return null;
    //sorts the Nodes
    private static Node[] sort(NodeList subsequent, String[] tags){
    Node[] sorted = new Node[tags.length];
    //looking through all the different nodes
    for(int x=0; x < subsequent.getLength(); x++){
    Node inOrder = subsequent.item(x);
    String tag = inOrder.getNodeName();
    for(int i=0; i<tags.length; i++){
    if(tag.equals(tags)){
    sorted[i] = inOrder;
    break;
    return sorted;
    * output the xml document to a file
    public static void save(String doc, String name){
    try {
    PrintWriter oF = new PrintWriter(new FileWriter(name), true);
    oF.print(doc);
    oF.close();
    catch (IOException x){
    System.err.println("There was a saving error");
    //retreiving some data from an xml file
    public static Node open(String file){
    try{
    //This code came from a guy called Rob Thorndyke.
    Document doc = DocumentBuilderFactory.newInstance()
    .newDocumentBuilder().newDocument();
    File f=new File(file);
    System.out.println(f.getPath());
    // Step 2 is to get a Transformer object.
    Transformer transformer =
    TransformerFactory.newInstance().newTransformer();
    // Step 3 is to set up Source and Result objects and use the
    // Transformer object to do the conversion.
    Source source = new StreamSource(new FileReader(file));
    Result result = new DOMResult(doc);
    transformer.transform(source, result);
    //This code did not.
    Node root = doc.getDocumentElement();
    if (root == null){               
    System.out.println("There is no root!");
    return null;
    return root;
    }catch (Exception e){
    System.out.println("Error in opening.");
    return null;
    public static String[] getAttrNames(Node root){
    try{           
    NodeList childNodes = root.getChildNodes();
    Vector attrNodeVector= new Vector();
    int entries=0;
    boolean determined=false;
    NamedNodeMap attributeList = null;
    for (int index=0; index < childNodes.getLength(); index++){
    Node node=childNodes.item(index);
    if (node.getNodeType()==Node.ELEMENT_NODE){
    entries++;
    attrNodeVector.add(node);
    if (determined==false){
    attributeList=node.getAttributes();
    determined=true;
    int attributes=attributeList.getLength();
    String[] attrNames = new String[attributes];
    //get the names of the attributes
    for (int attr=0; attr < attributes; attr++){
    attrNames[attr]=attributeList.item(attr).getNodeName();
    return attrNames;
    }catch(Exception e){
    System.out.println("Error in getting column names");
    return null;
    public static String getType(Node root){
    if (root == null){               
    System.out.println("There is no root!");
    return null;
    NodeList childNodes = root.getChildNodes();
    Vector attrNodeVector= new Vector();
    for (int index=0; index < childNodes.getLength(); index++){
    Node node=childNodes.item(index);
    if (node.getNodeType()==Node.ELEMENT_NODE){
    return node.getNodeName();
    return null;
    // main method
    public static void main(String[] args){
    System.out.println("Hello out there");
    //file->xml->equpment->object
    Node root=open(PATH+"\\Equipment.xml");
    Object[][] stuff = fmXML(root);
    //frames (GUI)
    JFrame aFrame = new JFrame();
    aFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    aFrame.addWindowListener(new WindowAdapter(){
    public void windowClosed(WindowEvent e){
    System.exit(0);
    JPanel aPanel = new JPanel();
    //set headers
    aFrame.getContentPane().add(aPanel);
    //create scrollableTable
    String[] columnNames=new String[] {
    "name",
    "conceal",
    "cost",
    "rating",
    "weight",
    "street index"
    boolean[] columnEditable= new boolean[]{
    true,
    true,
    true,
    true,
    true,
    true
    int[][] sliders = new int[][]{
    {-1,-1,-1},
    {-1,-1,-1},
    {-1,-1,-1},
    {-1,-1,-1},
    {-1,-1,-1},
    {-1,-1,-1}
    if (stuff== null){
    System.out.println("stuff is null");
    aPanel.add(new ScrollableTable(null,stuff,columnNames,columnEditable,
    sliders,true,0));
    aFrame.pack();
    aFrame.setLocationRelativeTo(null);
    aFrame.show();
    This isn't what I'm actually using, but I whipped it up real quick so you could get an idea about how it would be used.
    * Test.java
    * Created on March 23, 2003, 5:14 PM
    package SRJava;
    * @author unknown
    import org.w3c.dom.*;
    import SRJava.Editors.CharacterGenerator.*;
    import javax.swing.*;
    public class Test extends javax.swing.JFrame {
    /** Creates new form Test */
    public Test() {
    //Replace this with some other XML file, in a table like form.
    String fileName = "M:\\Shadowrun\\SRJava\\Editors"
    + "\\CharacterGenerator\\Equipment.xml";
    Node root = xmlGenerate.open(fileName);
    String[] columnNames = xmlGenerate.getAttrNames(root);
    Object[][] data = xmlGenerate.fmXML(root);
    //There should be no sliders, and all columns should be editable.
    int columns=columnNames.length;
    int[][] sliders = new int[columns][3];
    boolean[] columnEditable= new boolean[columns];
    for (int index=0; index < columns; index++){
    sliders[index][0]=-1;
    sliders[index][1]=-1;
    sliders[index][2]=-1;
    columnEditable[index]=true;
    Object[][] avail = new Object[][]{
    JScrollPane scroll = new JScrollPane();
    JTable table=new JTable(data,columnNames);
    scroll.setViewportView(table);
    getContentPane().add(scroll, java.awt.BorderLayout.CENTER);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    pack();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    pack();
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new Test().show();
    // Variables declaration - do not modify
    // End of variables declaration
    And here's an XML File, call it Equipment.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <Equipment conceal="" name="" xloge="Blorg"/>
    <Equipment conceal="Bla" name="different sample" xloge="Great southern trendkilling"/>
    <Equipment conceal="adsf" name="sample" xloge="Red Crested"/>
    </root>

Maybe you are looking for