Create the top panel

@return A fully configured component
484109
private DefaultPanel createTopPanel() {
		DefaultPanel top = new DefaultPanel();
		top.setLayout(new BoxLayout(top, BoxLayout.X_AXIS));
		top.setAlignmentX(Component.LEFT_ALIGNMENT);
		top.setPreferredSize(new Dimension(Short.MAX_VALUE, 40));

		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// property label
		JLabel propLabel = new JLabel("Property");
		propLabel.setBounds(10, 20, 40, 20);
		propLabel.setForeground(COLOR_LABEL);
		top.add(propLabel);
		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// add properties combobox
		properties = new JComboBox();
		properties.setMaximumSize(new Dimension(100, 20));
		properties.setMinimumSize(new Dimension(100, 20));
		properties.setPreferredSize(new Dimension(100, 20));
		properties.addItemListener(new ItemListener() {
			public void itemStateChanged(ItemEvent event) {
				String item = (String) event.getItem();
				LinearInterpolator currentValue = (LinearInterpolator) values
						.get(item);
				panel.setInterpolator(currentValue);
			}
		});
		top.add(properties);
		top.add(Box.createRigidArea(new Dimension(10, 0)));

		// min label
		JLabel minLabel = new JLabel("Min");
		minLabel.setMaximumSize(new Dimension(100, 20));
		minLabel.setForeground(COLOR_LABEL);
		top.add(minLabel);
		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// min spinner
		minSpinner = new JSpinner(new SpinnerNumberModel(0, -1000, 1000, 1));
		minSpinner.setMaximumSize(new Dimension(100, 20));
		minSpinner.addChangeListener(new ChangeListener() {
			public void stateChanged(ChangeEvent e) {
				fireUpdated(e.getSource());
			}
		});
		top.add(minSpinner);
		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// max label
		JLabel maxLabel = new JLabel("Max");
		maxLabel.setMaximumSize(new Dimension(100, 20));
		maxLabel.setForeground(COLOR_LABEL);
		top.add(maxLabel);
		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// max spinner
		maxSpinner = new JSpinner(new SpinnerNumberModel(255, -1000, 1000, 1));
		maxSpinner.setMaximumSize(new Dimension(100, 20));
		maxSpinner.addChangeListener(new ChangeListener() {
			public void stateChanged(ChangeEvent e) {
				fireUpdated(e.getSource());
			}
		});
		top.add(maxSpinner);
		top.add(Box.createRigidArea(new Dimension(5, 0)));

		// spacer
		top.add(Box.createHorizontalGlue());

		// value x label
		valueXLabel = new JLabel(TEXT_CURRENT_X);
		valueXLabel.setMaximumSize(new Dimension(100, 20));
		valueXLabel.setForeground(COLOR_LABEL);
		top.add(valueXLabel);
		top.add(Box.createRigidArea(new Dimension(10, 0)));

		// value y label
		valueYLabel = new JLabel(TEXT_CURRENT_Y);
		valueYLabel.setMaximumSize(new Dimension(100, 20));
		valueYLabel.setForeground(COLOR_LABEL);
		top.add(valueYLabel);
		top.add(Box.createRigidArea(new Dimension(10, 0)));

		return top;
	}
1007995
private JPanel getPanelMisc() {
		if (panelMisc == null) {
			panelMisc = new JPanel();
			panelMisc.setLayout(new GridBagLayout());
			
			JPanel zapPanel = new JPanel();
			zapPanel.setLayout(new GridBagLayout());
			zapPanel.setBorder(
					BorderFactory.createTitledBorder(
							null, Constant.messages.getString("cfu.options.zap.border"), TitledBorder.DEFAULT_JUSTIFICATION,
							javax.swing.border.TitledBorder.DEFAULT_POSITION,
							FontUtils.getFont(FontUtils.Size.standard),
							java.awt.Color.black));
			
			zapPanel.add(getChkDownloadNewRelease(), LayoutHelper.getGBC(0, 1, 1, 1.0D));

			JPanel updPanel = new JPanel();
			updPanel.setLayout(new GridBagLayout());
			updPanel.setBorder(
					BorderFactory.createTitledBorder(
							null, Constant.messages.getString("cfu.options.updates.border"), TitledBorder.DEFAULT_JUSTIFICATION,
							javax.swing.border.TitledBorder.DEFAULT_POSITION,
							FontUtils.getFont(FontUtils.Size.standard),
							java.awt.Color.black));
			
			updPanel.add(getChkCheckAddonUpdates(), LayoutHelper.getGBC(0, 0, 1, 1.0D));
			updPanel.add(getChkInstallAddonUpdates(), LayoutHelper.getGBC(0, 1, 1, 1.0D));
			updPanel.add(getChkInstallScannerRules(), LayoutHelper.getGBC(0, 2, 1, 1.0D));
			
			JPanel newPanel = new JPanel();
			newPanel.setLayout(new GridBagLayout());
			newPanel.setBorder(
					BorderFactory.createTitledBorder(
							null, Constant.messages.getString("cfu.options.new.border"), TitledBorder.DEFAULT_JUSTIFICATION,
							javax.swing.border.TitledBorder.DEFAULT_POSITION,
							FontUtils.getFont(FontUtils.Size.standard),
							java.awt.Color.black));

			newPanel.add(getChkReportReleaseAddons(), LayoutHelper.getGBC(0, 0, 1, 1.0D));
			newPanel.add(getChkReportBetaAddons(), LayoutHelper.getGBC(0, 1, 1, 1.0D));
			newPanel.add(getChkReportAlphaAddons(), LayoutHelper.getGBC(0, 2, 1, 1.0D));

			JPanel dirsPanel = new JPanel();
			dirsPanel.setLayout(new GridBagLayout());
			dirsPanel.setBorder(
					BorderFactory.createTitledBorder(
							null, Constant.messages.getString("cfu.options.dir.border"), TitledBorder.DEFAULT_JUSTIFICATION,
							javax.swing.border.TitledBorder.DEFAULT_POSITION,
							FontUtils.getFont(FontUtils.Size.standard),
							java.awt.Color.black));
			
			dirsPanel.add(new CfuDirsOptionsPanel(getScriptDirModel()), LayoutHelper.getGBC(0, 0, 2, 1.0D, 1.0D));
			JLabel downloadDirLabel = new JLabel(Constant.messages.getString("cfu.options.downloaddir.label"));
			downloadDirLabel.setLabelFor(getDownloadDirCombo());
			dirsPanel.add(downloadDirLabel, LayoutHelper.getGBC(0, 1, 1, 0.5D));
			dirsPanel.add(getDownloadDirCombo(), LayoutHelper.getGBC(1, 1, 1, 0.5D));

			panelMisc.add(getChkCheckOnStart(), LayoutHelper.getGBC(0, 0, 1, 1.0D));
			panelMisc.add(zapPanel, LayoutHelper.getGBC(0, 1, 1, 1.0D));
			panelMisc.add(updPanel, LayoutHelper.getGBC(0, 2, 1, 1.0D));
			panelMisc.add(newPanel, LayoutHelper.getGBC(0, 3, 1, 1.0D));
			panelMisc.add(dirsPanel, LayoutHelper.getGBC(0, 4, 1, 1.0D, 1.0D));

		}
		return panelMisc;
	}
39793
public Canvas getViewPanel() {
		VLayout layout = new VLayout(5);
		layout.setPadding(5);

		MapWidget mapWidget = new MapWidget("mapGuwOsm", "appGuw");
		final RibbonBarLayout ribbonBar = new RibbonBarLayout(mapWidget, "appGuw", "guwRibbonBar1");
		ribbonBar.setSize("100%", "94px");

		ToolStrip toolStrip = new ToolStrip();
		toolStrip.setWidth100();
		ToolStripButton btn1 = new ToolStripButton("Toggle group title");
		btn1.addClickHandler(new ClickHandler() {

			public void onClick(ClickEvent event) {
				ribbonBar.setShowGroupTitles(!ribbonBar.isShowGroupTitles());
			}
		});
		toolStrip.addButton(btn1);
		layout.addMember(toolStrip);
		layout.addMember(ribbonBar);
		layout.addMember(mapWidget);
		return layout;
	}
315235
private Grid makeStylePanel() {
    for (Entry<String, Integer> item : stylesMap.entrySet()) {
      styles.insertItem(item.getKey(), item.getValue());
    }
    final Grid grid = new Grid(5, 3);
    grid.setText(0, 1, "Smooth");
    grid.setWidget(0, 2, smooth);
    grid.setText(1, 1, "Style");
    grid.setWidget(1, 2, styles);
    return grid;
  }
1099227
public Container addBackground(Container panelTop)
    {
        Color colorBackground = this.getBackgroundColor();
        String strBackgroundImageName = this.getBackgroundImageName();
        if (strBackgroundImageName != null)
            m_imageBackground = this.loadImageIcon(strBackgroundImageName, "background");
        if (panelTop instanceof JApplet)
            panelTop = ((JApplet)panelTop).getContentPane();
        Container panelContainer = null;
        if ((this.getBackgroundImage() == null) && (colorBackground == null))
            panelContainer = panelTop;
        else
        {
                // 2nd level an overlay panel
            panelTop.setLayout(new OverlayLayout(panelTop));
                // 3rd level - a panel to hold all the display panels
            panelContainer = new JPanel();
          ((JPanel)panelContainer).setOpaque(false);
            panelTop.add(panelContainer);
			panelContainer.setLayout(new BoxLayout(panelContainer, BoxLayout.Y_AXIS));
                // 3rd level - Background for other components
            JTiledImage background = new JTiledImage(m_imageBackground, colorBackground); // Tiled Background
            panelTop.add(background);
        }
        // Add a status bar and a help pane (note: this also fixes the applet alignment problems
        JPanel panelMain = new JPanel();
        panelMain.setOpaque(false);
        panelContainer.setLayout(new BorderLayout());
        panelContainer.add(panelMain, BorderLayout.CENTER);
        // if (this.getApplet() == null)    // Always display status bar (Since I can't tell the difference between a standalone and applet)
        	if (m_bAddStatusbar)
        		panelContainer.add(m_statusbar = new JStatusbar(null), BorderLayout.SOUTH);
        JBaseHelpPane helpPane = (JBaseHelpPane)ClassServiceUtility.getClassService().makeObjectFromClassName("org.jbundle.thin.base.screen.util.html.JHelpPane");
        if (helpPane != null)
        {   // Always
            helpPane.init(null, null);
            panelContainer.add(helpPane, BorderLayout.EAST);
            this.setHelpView(helpPane.getHelpView().getHtmlEditor());
            helpPane.setVisible(false);
            if (this.getProperty("displayInitialHelp") != null)
            	this.getHelpView().getHelpPane().setVisible(true);	// Hack - this is a weird place for this, but it works
        }
        panelContainer = panelMain;
        
        return panelContainer;
    }
1306404
protected void buildComponent() {
        addComponent(titleLayout);
        setComponentAlignment(titleLayout, Alignment.TOP_LEFT);
        setWidth(100, Unit.PERCENTAGE);
        setImmediate(true);
        addStyleName("action-history-header");
        addStyleName("bordered-layout");
        addStyleName("no-border-bottom");
    }
734393
private FlowPanel createTab() {

        FlowPanel tabPanel;
        tabPanel = new FlowPanel();
        tabPanel.addStyleName(ENTITY_CLASS);
        tabPanel.addStyleName(I_CmsLayoutBundle.INSTANCE.form().formParent());
        tabPanel.getElement().getStyle().setMargin(0, Unit.PX);
        return tabPanel;
    }
895043
protected JScrollPane createScroller() {
    JScrollPane sp = new JScrollPane(tree, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    sp.setHorizontalScrollBar(null);
    sp.setName("TreePopup.scrollPane");
    sp.setFocusable(false);
    sp.getVerticalScrollBar().setFocusable(false);
    sp.setBorder(null);
    return sp;
  }
624619
private JPanel getButtonPanel() {
    if (buttonPanel == null) {
      buttonPanel = new JPanel();
      buttonPanel.setLayout(new GridBagLayout());

      GridBagConstraints c1 = new GridBagConstraints();
      c1.anchor = GridBagConstraints.EAST;
      c1.gridx = 0;
      c1.gridy = 0;
      c1.weightx = 1.0D;
      c1.insets = new Insets(5, 5, 5, 5);
      buttonPanel.add(getOkButton(), c1);

      GridBagConstraints c2 = new GridBagConstraints();
      c2.gridx = 1;
      c2.gridy = 0;
      c2.weightx = 0.0D;
      c2.insets = new Insets(5, 5, 5, 5);
      buttonPanel.add(getCancelButton(), c2);
    }
    return buttonPanel;
  }
554072
@Override
	protected Control createContents(Composite parent) {
		Composite top = new Composite(parent, SWT.LEFT);

		// Sets the layout data for the top composite's 
		// place in its parent's layout.
		top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

		// Sets the layout for the top composite's 
		// children to populate.
		top.setLayout(new GridLayout());
			
		if(Platform.getOS().equalsIgnoreCase(Platform.OS_MACOSX)){
			vdmPathMac = new DirectoryFieldEditor(ICskConstants.VSLGDE_PATH, "Path to VDM Tools for VDM-SL (vdmgde):", top);
			vdmPathMac.setPage(this);
			vdmPathMac.setPreferenceStore(getPreferenceStore());
			vdmPathMac.load();
			
			vppPathMac = new DirectoryFieldEditor(ICskConstants.VPPGDE_PATH, "Path to VDM Tools for VDM-PP (vppgde):", top);
			vppPathMac.setPage(this);
			vppPathMac.setPreferenceStore(getPreferenceStore());
			vppPathMac.load();
			
//			vicePathMac = new DirectoryFieldEditor(ICskConstants.VRTGDE_PATH, "Path to VDMTools for VICE  (vicegde):", top);
//			vicePathMac.setPage(this);
//			vicePathMac.setPreferenceStore(getPreferenceStore());
//			vicePathMac.load();
			
			Label listLabel = new Label(top, SWT.BOLD);
			listLabel.setText("NOTE: select the \"bin\" folder just above \"vxxgde\"");
		}
		else
		{
			vdmPath = new FileFieldEditor(ICskConstants.VSLGDE_PATH, "Path to VDM Tools for VDM-SL (vdmgde):", top);
			vdmPath.setPage(this);
			vdmPath.setPreferenceStore(getPreferenceStore());
			vdmPath.load();
			
			vppPath = new FileFieldEditor(ICskConstants.VPPGDE_PATH, "Path to VDM Tools for VDM-PP (vppgde):", top);
			vppPath.setPage(this);
			vppPath.setPreferenceStore(getPreferenceStore());
			vppPath.load();
			
//			vicePath = new FileFieldEditor(ICskConstants.VRTGDE_PATH, "Path to VDMTools for VICE  (vicegde):", top);
//			vicePath.setPage(this);
//			vicePath.setPreferenceStore(getPreferenceStore());
//			vicePath.load();
		}
		
		return top;
	}
308758
function createTableLayout(){
    var tableItem = {
        type: 'component',
        componentName: 'Table'
    };

    var stackItem = myLayout.root.getItemsById('stack-topleft')[0];
    stackItem.addChild(tableItem);
    // get focus on the search tab
    stackItem.setActiveContentItem(myLayout.root.getItemsById('node-list')[0]);
    globalFunc.initTable();
}
256221
private JPanel getConfigContainerPanel() {
		if (configContainerPanel == null) {
			configContainerPanel = new JPanel(new BorderLayout());
			configContainerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
					Constant.messages.getString("sessionmanagement.panel.config.title"),
					javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
					javax.swing.border.TitledBorder.DEFAULT_POSITION, 
					FontUtils.getFont(FontUtils.Size.standard), java.awt.Color.black));
		}
		return configContainerPanel;
	}
131991
protected Component createContentPane() {
        JPanel content = new JPanel(new BorderLayout());
        Component component = super.createContentPane();
        if(component != null)
            content.add(component);

        JProgressBar progressBar = getProgressBar();
        progressBar.setIndeterminate(isIndeterminate());
        progressBar.setStringPainted(isShowProgressLabel());

        content.add(progressBar, BorderLayout.SOUTH);

        return content;
    }
237111
private JPanel getJPanel1() {
        if (jPanel1 == null) {
            jPanel1 = new JPanel();
            jPanel1.setLayout(new CardLayout());
            jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jPanel1.add(getJScrollPane1(), getJScrollPane1().getName());
        }
        
        return jPanel1;
    }
1200524
public function build()
    {
        if ($this->use_panel == true) {

            // Bootstrap panel template
            $this->inner .= '<div class="panel panel-' . $this->panel_type . '">';

            if (isset($this->heading_text)) {
                $this->inner .= '{heading}';
            }

            $this->inner .= '<div class="panel-body">';

            if (isset($this->description)) {
                $this->inner .= '{description}';
            }

            if ($this->row) {
                $this->inner .= '<div class="row">';
            }

            $this->inner .= '{content}</div>';

            if ($this->row) {
                $this->inner .= '</div>';
            }

            if (isset($this->footer)) {
                $this->inner .= '{footer}';
            }

            $this->inner .= '</div>';
        }
        else {

            if ($this->row) {
                $this->inner .= '<div class="row';
            }

            if (isset($this->heading_text)) {
                $this->inner .= '{heading}';
            }

            if (isset($this->description)) {
                $this->inner .= '{description}';
            }

            $this->inner .= '{content}';

            if (isset($this->footer)) {
                $this->inner .= '{footer}';
            }

            if ($this->row) {
                $this->inner .= '</div>';
            }
        }

        // Create possible heading
        if (isset($this->heading_text)) {

            // Heading: plain or withe BS title?
            $heading = '<h' . $this->heading_size . ($this->use_panel == true ? ' class="panel-title"' : '') . '>' . $this->heading_text . '</h' . $this->heading_size . '>';

            // Replace heading in BS panel template...
            $this->inner = str_replace('{heading}', $this->use_panel == true ? '<div class="panel-heading">' . $heading . '</div>' : $heading, $this->inner);
        }

        // Is there a description do create?
        if (isset($this->description)) {

            // The description with small
            $description = '<p class="small">' . $this->description . '</p>';

            // Into the panel template...
            $this->inner = str_replace('{description}', $description, $this->inner);
        }

        // Add the content
        $this->inner = str_replace('{content}', $this->content, $this->inner);

        if (isset($this->footer)) {
            $footer = '<span class="help-block">' . $this->description . '</span>';
            $this->inner = str_replace('{footer}', $this->use_panel == true ? '<div class="panel-footer">' . $footer . '</div>' : $footer, $this->inner);
        }

        return parent::build();
    }
1012992
private ModalPanel getModalPanel() {
	if (modalPanel == null) {
	  modalPanel = new ModalPanel();
	  modalPanel.setLayout(new ModalLayout());
	}
	return modalPanel;
  }
909345
protected Component createCustomEditor() {
		JPanel			panel;

		panel = new JPanel(new BorderLayout());
		panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
		m_EditComponent = (ClassOptionEditComponent) getEditComponent((ClassOption) getValue());
		m_EditComponent.addChangeListener(new ChangeListener() {
			public void stateChanged(ChangeEvent e) {
				m_EditComponent.applyState();
				setValue(m_EditComponent.getEditedOption());
			}
		});
		panel.add(m_EditComponent, BorderLayout.CENTER);

		return panel;
	}