//
// $Id: BrowsePanel.java,v 1.2 2002/02/22 07:06:33 mdb Exp $

package robodj.chooser;

import javax.swing.*;

import robodj.repository.*;

public class BrowsePanel extends JTabbedPane
{
    public BrowsePanel ()
    {
        EntryList elist;
        Category[] cats = Chooser.model.getCategories();

        // create a tab for each category
        for (int i = 0; i < cats.length; i++) {
            elist = new CategoryEntryList(cats[i].categoryid);
            String tip = "Browse entries in '" + cats[i].name + "' category.";
            addTab(cats[i].name, null, elist, tip);
        }

        // and add one for uncategorized entries
        elist = new CategoryEntryList(-1);
        addTab("Uncategorized", null, elist,
               "Browse uncategorized entries.");

        setSelectedIndex(0);
    }
}

@@ -29,29 +29,29 @@
 v 1.
-2
+3
  2002/
-02/22 07:06:33
+11/11 17:04:12
  mdb
@@ -293,24 +293,173 @@
 egories();%0A%0A
+        // stick our tabs along the side and scroll if they don't fit%0A        setTabPlacement(LEFT);%0A        setTabLayoutPolicy(SCROLL_TAB_LAYOUT);%0A%0A
         // c

Put the category tabs on the left and scroll them if they are too many.