Put the category tabs on the left and scroll them if they are too many.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@907 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: BrowsePanel.java,v 1.2 2002/02/22 07:06:33 mdb Exp $
|
||||
// $Id: BrowsePanel.java,v 1.3 2002/11/11 17:04:12 mdb Exp $
|
||||
|
||||
package robodj.chooser;
|
||||
|
||||
@@ -14,6 +14,10 @@ public class BrowsePanel extends JTabbedPane
|
||||
EntryList elist;
|
||||
Category[] cats = Chooser.model.getCategories();
|
||||
|
||||
// stick our tabs along the side and scroll if they don't fit
|
||||
setTabPlacement(LEFT);
|
||||
setTabLayoutPolicy(SCROLL_TAB_LAYOUT);
|
||||
|
||||
// create a tab for each category
|
||||
for (int i = 0; i < cats.length; i++) {
|
||||
elist = new CategoryEntryList(cats[i].categoryid);
|
||||
|
||||
Reference in New Issue
Block a user