super(viewContext);
}
protected Component initComponent() {
// Setup welcome panel...
JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1, 100, 5, 160, 3, 100, 5, 160, -1},
{-1, 5, 60, 5, 60, 5, 60, 5, 60, 5, -1}})) {
public void setUI(PanelUI ui) {
if (getUI() == null)
super.setUI(ui);
}
};
panel.setBackground(Colors.blu);
panel.add(renderButton("Manager", ToolWindowManager.class),
"1,2,FULL,FULL");
panel.add(renderLabel("<html>Edit <br>ToolWindowManager <br> properties </html>"),
"3,2,FULL,FULL");
panel.add(renderButton("Tools", ToolWindow.class),
"1,4,FULL,FULL");
panel.add(renderLabel("<html>Edit <br>ToolWindows <br> properties</html>"),
"3,4,FULL,FULL");
panel.add(renderButton("Contents", Content.class),
"1,6,FULL,FULL");
panel.add(renderLabel("<html>Edit <br>Contents <br> properties</html>"),
"3,6,FULL,FULL");
panel.add(renderButton("<html>Nested<br> Tool Manager", MyDoggySetContext.ActionKey.NEST_TOOLMANAGER),
"1,8,FULL,FULL");
panel.add(renderLabel("<html>Nested <br>ToolWindowManager</html>"),
"3,8,FULL,FULL");
panel.add(renderButton("Groups", ToolWindowGroup.class),
"5,2,FULL,FULL");
panel.add(renderLabel("<html>Edit <br>Groups <br> properties</html>"),
"7,2,FULL,FULL");
panel.add(renderButton("ITests", InteractiveTest.class),
"5,4,FULL,FULL");
panel.add(renderLabel("<html>Run <br>Interactive <br> Tests</html>"),
"7,4,FULL,FULL");
panel.add(renderButton("Customize", ResourceManager.class),
"5,6,FULL,FULL");
panel.add(renderLabel("<html>Customize <br>MyDoggy</html>"),
"7,6,FULL,FULL");
// Setup main panel
JPanel main = new JPanel(new ExtendedTableLayout(new double[][]{{3, -1, 3}, {3, 93, 5, -1, 3}}));
main.add(new JImage("org/noos/xing/mydoggy/mydoggyset/images/banner.jpg"), "1,1,FULL,FULL");
main.add(panel, "1,3,FULL,FULL");
return new JScrollPane(main);
}