mainLayout.setVgap(vGap); buttonLayout.setHgap(hGap); gui.setBorder(new EmptyBorder(vBorder,hBorder,vBorder,hBorder));
BorderLayout layout = new BorderLayout(); layout.setHgap(0); layout.setVgap(0); this.setLayout(layout);
/** * Return the StatePanelBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getStatePanelBorderLayout() { java.awt.BorderLayout ivjStatePanelBorderLayout = null; try { /* Create part */ ivjStatePanelBorderLayout = new java.awt.BorderLayout(); ivjStatePanelBorderLayout.setVgap(0); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjStatePanelBorderLayout; } /**
@ScriptFunction public void setVgap(int aValue) { ((BorderLayout) super.getLayout()).setVgap(aValue); super.revalidate(); super.repaint(); }
/** * This method initializes serverConfigurationTopPane * * @return javax.swing.JPanel */ private JPanel getServerConfigurationTopPane() { if (serverConfigurationTopPane == null) { BorderLayout borderLayout1 = new BorderLayout(); borderLayout1.setHgap(5); borderLayout1.setVgap(5); serverConfigurationTopPane = new JPanel(); serverConfigurationTopPane.setLayout(borderLayout1); serverConfigurationTopPane.add(getServerPanel(), java.awt.BorderLayout.CENTER); } return serverConfigurationTopPane; }
/** * Return the ConsolePanelBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getConsolePanelBorderLayout() { java.awt.BorderLayout ivjConsolePanelBorderLayout = null; try { /* Create part */ ivjConsolePanelBorderLayout = new java.awt.BorderLayout(); ivjConsolePanelBorderLayout.setVgap(0); ivjConsolePanelBorderLayout.setHgap(10); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjConsolePanelBorderLayout; } /**
/** * Return the POAManagerStateLabelBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getPOAManagerStateLabelBorderLayout() { java.awt.BorderLayout ivjPOAManagerStateLabelBorderLayout = null; try { /* Create part */ ivjPOAManagerStateLabelBorderLayout = new java.awt.BorderLayout(); ivjPOAManagerStateLabelBorderLayout.setVgap(10); ivjPOAManagerStateLabelBorderLayout.setHgap(10); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjPOAManagerStateLabelBorderLayout; } /**
/** * Return the ContentsPaneBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getContentsPaneBorderLayout() { java.awt.BorderLayout ivjContentsPaneBorderLayout = null; try { /* Create part */ ivjContentsPaneBorderLayout = new java.awt.BorderLayout(); ivjContentsPaneBorderLayout.setVgap(0); ivjContentsPaneBorderLayout.setHgap(0); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjContentsPaneBorderLayout; } /**
StartupStatus (final ResourceBundle resourceBundle) { LOAD_SYSTEM_FONTS = new Task( 2, resourceBundle.getString("startupStatus.loadSystemFonts") ); allTasks_.add(LOAD_SYSTEM_FONTS); CREATE_WIDGETS = new Task( 2, resourceBundle.getString("startupStatus.createWidgets") ); allTasks_.add(CREATE_WIDGETS); int taskWeightSummation = 0; for (int i=0; i < allTasks_.size(); i++) { taskWeightSummation += ((Task)allTasks_.get(i)).weight_; } progressBar_ = new JProgressBar(0, taskWeightSummation); progressBar_.setStringPainted(true); progressBar_.setString(((Task)allTasks_.get(0)).inProgressMessage_); final BorderLayout borderLayout = new BorderLayout(); borderLayout.setVgap(6); final JPanel panel = new JPanel(borderLayout); panel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11)); final JLabel label = new JLabel(resourceBundle.getString("startupStatus.label")); label.setHorizontalAlignment(SwingConstants.CENTER); panel.add(label, BorderLayout.NORTH); panel.add(progressBar_, BorderLayout.SOUTH); this.getContentPane().add(panel); } private int currentTask_;
/** * Return the POAManagerFrameBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getPOAManagerFrameBorderLayout() { java.awt.BorderLayout ivjPOAManagerFrameBorderLayout = null; try { /* Create part */ ivjPOAManagerFrameBorderLayout = new java.awt.BorderLayout(); ivjPOAManagerFrameBorderLayout.setVgap(0); ivjPOAManagerFrameBorderLayout.setHgap(0); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjPOAManagerFrameBorderLayout; } /**
/** * Return the RegisterPanelBorderLayout property value. * @return java.awt.BorderLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.BorderLayout getRegisterPanelBorderLayout() { java.awt.BorderLayout ivjRegisterPanelBorderLayout = null; try { /* Create part */ ivjRegisterPanelBorderLayout = new java.awt.BorderLayout(); ivjRegisterPanelBorderLayout.setVgap(0); ivjRegisterPanelBorderLayout.setHgap(0); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjRegisterPanelBorderLayout; } /**
public static void init(BorderLayout comp, Thing thing, Container parent, ActionContext actionContext){ Integer hgap = JavaCreator.createInteger(thing, "hgap"); if(hgap != null){ comp.setHgap(hgap); } Integer vgap = JavaCreator.createInteger(thing, "vgap"); if(vgap != null){ comp.setVgap(vgap); } } }
private void initComponents() { panel = new JPanel(); setLayout(new BorderLayout()); BorderLayout bl = new BorderLayout(); panel.setLayout(bl); bl.setVgap(10); add(panel, BorderLayout.CENTER); BeanTreeView btv = new BeanTreeView(); btv.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); btv.getAccessibleContext(). setAccessibleName(NbBundle.getMessage(SelectHandlerPanel.class,"LBL_Class_Tree")); btv.getAccessibleContext().setAccessibleDescription (NbBundle.getMessage(SelectHandlerPanel.class,"ACSD_SelectHandler")); String projectName = project.getProjectDirectory().getName(); String classesLabel = projectName + " " + NbBundle.getMessage(SelectHandlerPanel.class, "LBL_PROJECT_CLASSES") + ":"; JLabel label = new JLabel(); org.openide.awt.Mnemonics.setLocalizedText(label, classesLabel); label.setLabelFor(btv.getViewport().getView()); panel.add(label, BorderLayout.NORTH); panel.add(btv, BorderLayout.CENTER); //NOI18N panel.validate(); validate(); }
/** Build window list display and button controls. * Create Hashtable that connects list entries to window IDs.*/ protected Panel controlPanel() { Panel p = new Panel(); BorderLayout layout = new BorderLayout(); layout.setVgap(3); p.setLayout(layout); p.add(buildWindowList(), BorderLayout.NORTH,0); p.add(buildControlPanel(), BorderLayout.CENTER,1); return p; }
/** Build window list display and button controls. * Create Hashtable that connects list entries to window IDs.*/ protected Panel controlPanel() { Panel p = new Panel(); BorderLayout layout = new BorderLayout(); layout.setVgap(3); p.setLayout(layout); p.add(buildWindowList(), BorderLayout.NORTH,0); p.add(buildControlPanel(), BorderLayout.CENTER,1); return p; }
private void initialize() { final BorderLayout borderLayout = new BorderLayout(); borderLayout.setHgap(0); borderLayout.setVgap(5); this.setLayout(borderLayout); this.setSize(600, 320); this.setMaximumSize(new Dimension(1600, 400)); this.setMinimumSize(new Dimension(400, 320)); this.setPreferredSize(new Dimension(600, 320)); this.add(getTitlePanel(), BorderLayout.NORTH); this.add(getButtonPanel(), BorderLayout.SOUTH); this.add(getPanelCenter(), BorderLayout.CENTER); }
public BControleNavigation(final AbstractVueCalque _vue) { super(); final BorderLayout l2 = new BorderLayout(); l2.setHgap(2); l2.setVgap(2); setLayout(l2); td_ = new BTransformationDomaine(); td_.setVueCalque(_vue); td_.setPreferredSize(new Dimension(46, 66)); listener_ = new CtuluPopupListener(this, this); td_.addMouseListener(listener_); setAffichage(EbliPreferences.EBLI.getStringProperty(PREFERENCE_KEY, MOLETTE)); }
private void collapseTop( ICaptionedPanel captionedPanel ) { if( getBottomMin() != null ) { setBottomMin( null ); } ICaptionBar minLabel = makeMinLabel( captionedPanel, true ); setTopMin( captionedPanel ); removeAll(); BorderLayout bl = new BorderLayout(); setLayout( bl ); if( getOrientation() == HORIZONTAL ) { bl.setHgap( 4 ); bl.setVgap( 4 ); add( (Component)minLabel, BorderLayout.WEST ); } else { bl.setVgap( 4 ); bl.setHgap( 4 ); add( (Component)minLabel, BorderLayout.NORTH ); } ICaptionedPanel bottomCaptionedPanel = findCaptionedPanel( _comp2 ); if( bottomCaptionedPanel != null ) { bottomCaptionedPanel.getCaption().setCaptionType( ICaptionActionListener.ActionType.MAXIMIZE ); } add( _comp2, BorderLayout.CENTER ); }
public void collapseBottom( ICaptionedPanel bottomCaptionedPanel ) { if( getTopMin() != null ) { setTopMin( null ); } ICaptionBar minLabel = makeMinLabel( bottomCaptionedPanel, false ); setBottomMin( bottomCaptionedPanel ); removeAll(); BorderLayout bl = new BorderLayout(); setLayout( bl ); int iGap = minLabel instanceof EmptyCaptionBar ? 0 : 4; String location = getOrientation() == HORIZONTAL ? BorderLayout.EAST : BorderLayout.SOUTH; bl.setHgap( iGap ); bl.setVgap( iGap ); add( (Component)minLabel, location ); ICaptionedPanel topCaptionedPanel = findCaptionedPanel( _comp1 ); if( topCaptionedPanel != null ) { topCaptionedPanel.getCaption().setCaptionType( ICaptionActionListener.ActionType.MAXIMIZE ); } add( _comp1, BorderLayout.CENTER ); }
public void collapseBottom( ICaptionedPanel bottomCaptionedPanel ) { if( getTopMin() != null ) { setTopMin( null ); } ICaptionBar minLabel = makeMinLabel( bottomCaptionedPanel, false ); setBottomMin( bottomCaptionedPanel ); removeAll(); BorderLayout bl = new BorderLayout(); setLayout( bl ); int iGap = minLabel instanceof EmptyCaptionBar ? 0 : 4; String location = getOrientation() == HORIZONTAL ? BorderLayout.EAST : BorderLayout.SOUTH; bl.setHgap( iGap ); bl.setVgap( iGap ); add( (Component)minLabel, location ); ICaptionedPanel topCaptionedPanel = findCaptionedPanel( _comp1 ); if( topCaptionedPanel != null ) { topCaptionedPanel.getCaption().setCaptionType( ICaptionActionListener.ActionType.MAXIMIZE ); } add( _comp1, BorderLayout.CENTER ); }