private void addComponentsToPanel() { final int row = getFormRow(); panel.add(rowNumber, cc.xy(1, row)); panel.add(pickColor, cc.xy(3, row)); panel.add(moveColorUp, cc.xy(5, row)); panel.add(moveColorDown, cc.xy(7, row)); panel.add(deleteColor, cc.xy(9, row)); panel.add(addNextColor, cc.xy(11, row)); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout( "FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE", //$NON-NLS-1$ "FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(new JButton(previousMonthAction), cc.xy(1, 1)); builder.add(new JButton(nextMonthAction), cc.xy(3, 1)); builder.add(label, cc.xy(2, 1)); builder.add(buildDays(), cc.xyw(1, 2, 3)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:NONE", //$NON-NLS-1$ "FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(monthView, cc.xy(1, 1)); builder.add(new JButton(nullAction), cc.xywh(1, 2, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); return builder.getPanel(); }
PluginPane () { final Collection<String> ids = PluginsManager.getInstance().getPluginIds(); box = new JComboBox<>(ids.toArray(new String[ids.size()])); box.setToolTipText("Default plugin to be launched"); box.setSelectedItem(PluginsManager.defaultPluginId.getValue()); PanelBuilder builder = new PanelBuilder(layout2, this); CellConstraints cst = new CellConstraints(); final int r = 1; builder.add(box, cst.xy(1, r)); builder.add(new JLabel("Plugin launched on MusicXML output"), cst.xy(3, r)); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:NONE,FILL:250DLU:GROW(1.0)", //$NON-NLS-1$ "CENTER:DEFAULT:NONE,FILL:250DLU:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(enableButton, cc.xy(1, 1)); builder.add(new JScrollPane(ta), cc.xyw(1, 2, 2)); return builder.getPanel(); }
private JComponent buildEditorPanel() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:" //$NON-NLS-1$ + CENTER_WIDTH + "PX:NONE,FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(leftScrollPane, cc.xy(1, 1)); builder.add(centerScrollPane, cc.xy(2, 1)); builder.add(rightScrollPane, cc.xy(3, 1)); return builder.getPanel(); }
private JComponent buildContentsLeftRight() { FormLayout layout = new FormLayout("FILL:20PX", //$NON-NLS-1$ "CENTER:DEFAULT:GROW(0.35),FILL:20PX,CENTER:DEFAULT:GROW(0.15),FILL:DEFAULT:NONE,CENTER:DEFAULT:GROW(0.15),FILL:20PX,CENTER:DEFAULT:GROW(0.35)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(upLabel, cc.xy(1, 2)); builder.add(textLabel, cc.xy(1, 4)); builder.add(downLabel, cc.xy(1, 6)); return builder.getPanel(); }
private void addAddColorButton() { formlayout.appendRow(RowSpec.decode("CENTER:DEFAULT:NONE")); JButton addColor = new JButton(); addColor.addActionListener(new ColorAdder(0)); addColor.setName("addColor"); addColor.setFont(BUTTON_FONT); addColor.setText(ADD); panel.add(addColor, cc.xy(11, 1)); }
private JComponent buildHeader() { FormLayout layout = new FormLayout("FILL:24PX", //$NON-NLS-1$ "FILL:DEFAULT:NONE,2DLU,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(new JButton(showFavoritesAction), cc.xy(1, 1)); builder.add(showButton, cc.xy(1, 3)); // builder.add(new JButton(clearAction), cc.xy(1, 3)); return builder.getPanel(); }
private void defineLayout () { final FormLayout layout = Panel.makeFormLayout(1, 3); final PanelBuilder builder = new PanelBuilder(layout, getBody()); final CellConstraints cst = new CellConstraints(); int r = 1; // -------------------------------- builder.add(rStart.getLabel(), cst.xy(1, r)); builder.add(rStart.getField(), cst.xy(3, r)); builder.add(rLength.getLabel(), cst.xy(5, r)); builder.add(rLength.getField(), cst.xy(7, r)); } }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:DEFAULT:NONE,3DLU,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(pathBar, cc.xy(1, 1)); builder.add(cardPanel, cc.xy(1, 3)); return builder.getPanel(); }
@Override protected JComponent buildEditorPanel() { FormLayout layout = new FormLayout("CENTER:DEFAULT:GROW(1.0)", "FILL:DEFAULT:NONE,4DLU,FILL:DEFAULT:NONE"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(pageSizeSlider, cc.xy(1, 1)); builder.add(pageSizeLabel, cc.xy(1, 3)); return builder.getPanel(); }
private JComponent buildContents() { FormLayout layout = new FormLayout("p,3dlu,p", "p"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(label, cc.xy(1, 1)); builder.add(new JTabButton(closeAction), cc.xy(3, 1)); JPanel panel = builder.getPanel(); panel.setOpaque(false); return panel; }
private JPanel buildContents() { FormLayout layout = new FormLayout("FILL:75DLU:NONE,FILL:4DLU:NONE,FILL:75DLU:NONE", "CENTER:DEFAULT:NONE"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(date1Field, cc.xy(1, 1)); builder.add(date2Field, cc.xy(3, 1)); return builder.getPanel(); }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:MAX(75DLU;PREF):GROW(1.0)", //$NON-NLS-1$ "CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(ToolBarFactory.buildToolBar(selectAllAction, unSelectAllAction), cc.xy(1, 1)); builder.add(panel, cc.xy(1, 2)); return builder.getPanel(); }
protected JPanel buildContents() { FormLayout formLayout = new FormLayout("p,4dlu,fill:100dlu:grow", // columns //$NON-NLS-1$ "p" // rows //$NON-NLS-1$ ); PanelBuilder builder = new PanelBuilder(formLayout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(comparaisonTypeBox, cc.xy(1, 1)); builder.add(textField, cc.xy(3, 1)); return builder.getPanel(); }
private JComponent buildContents() { FormLayout layout = new FormLayout("FILL:150DLU", "FILL:DEFAULT"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(list, cc.xy(1, 1)); builder.setBorder(BorderFactory.createLineBorder(new Color(0x777777), 1)); return builder.getPanel(); }
/** * Reloads the toolbar */ public void reload() { m_factories.clear(); removeAll(); CellConstraints cc = new CellConstraints(); add(createToolbar(), cc.xy(1, 1)); revalidate(); }
private JPanel buildContents() { FormLayout layout = new FormLayout("FILL:DEFAULT:GROW(1.0)", //$NON-NLS-1$ "FILL:PREF:GROW(1.0),CENTER:3DLU:NONE,FILL:MAX(22DLU;PREF):NONE"); //$NON-NLS-1$ PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(new IconFeedbackComponentValidationResultPanel(validationResultModel, buildEditorPanel()), cc.xy(1, 1)); builder.add(keyTypedResultView, cc.xy(1, 3)); return builder.getPanel(); }
private void prepareScriptAreas() { for(String key : DbAdapterInfo.getStandardAdapters()) { JCayenneTextPane currPane = new JUndoableCayenneTextPane(new SQLSyntaxConstants()); currPane.setName(key); currPane.getDocument().addDocumentListener(new CustomListener(currPane.getName())); builder.add(currPane.getScrollPane(), cc.xy(3, 2)); panes.add(currPane); } }