/** @return JComponent with titlePane, widgetContent and border. */ private JComponent createComponent() { JPanel titlePaneContainer = new JPanel(new BorderLayout()); titlePaneContainer.add(titlePane.getControl()); titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH); JPanel pageControl = new JPanel(new BorderLayout()); pageControl.add(titlePaneContainer, BorderLayout.NORTH); JComponent content = createWidgetContent(); GuiStandardUtils.attachDialogBorder(content); pageControl.add(content); return pageControl; }
/* (non-Javadoc) * @see org.springframework.richclient.form.AbstractForm#createFormControl() */ @Override protected JComponent createFormControl() { JPanel panel = getComponentFactory().createPanel(new BorderLayout()); textArea = (JTextArea) getBindingFactory().createBinding(JTextArea.class, "content").getControl(); JScrollPane scrollPane = getComponentFactory().createScrollPane(textArea); scrollPane.setPreferredSize(new Dimension(600, 400)); panel.add(scrollPane, BorderLayout.CENTER); CommandGroup cg = CommandGroup.createCommandGroup(null, getTranscodeCommands()); JComponent buttonBar = cg.createButtonBar(); GuiStandardUtils.attachDialogBorder(buttonBar); panel.add(buttonBar, BorderLayout.SOUTH); return panel; }