01: package net.ar.webonswing.petstore;
02:
03: import javax.swing.*;
04:
05: import net.ar.webonswing.petstore.contributors.*;
06:
07: public class Home extends ApplicationFrame {
08: public Home() {
09: init();
10: }
11:
12: protected JComponent getBody() {
13: CategoriesPanel categoriesPanel = new CategoriesPanel(getDao()
14: .getCategories(), LabelUIContributor.class, false);
15:
16: JPanel map = new JPanel();
17: map.setLayout(ApplicationFrame.getCurrentSkin()
18: .getCurrentPropagateTemplateFor("Home.main"));
19: map.add(categoriesPanel).setName("estoremap");
20:
21: return map;
22: }
23:
24: }
|