public void buildPanel(final JPanel _pn, final boolean _layout) { if (_layout) { _pn.setLayout(new BuGridLayout(3, 3, 3, true, false)); } _pn.add(cbType_); _pn.add(spTaille_); _pn.add(btColor_.getPn()); }
private LayoutManager buildLayout() { final BuGridLayout layout = new BuGridLayout(5, 0, 0, false, false, false, true, true); layout.setCfilled(false); return layout; }
dirOpen_ = null; final BuGridLayout lo = new BuGridLayout(); lo.setColumns(3); lo.setVgap(5); lo.setHgap(5); final JPanel panel = new JPanel(); panel.setLayout(lo);
public void jbInit() { cb2Fc= new Hashtable(); bt2Fc= new Hashtable(); tp2Fc= new Hashtable(); di2Exts= new Hashtable(); lyFichiers.setHgap(3); lyFichiers.setColumns(3); lyFichiers.setVgap(3); pnFichiers.setLayout(lyFichiers); pnAffichage_.add("Center", pnFichiers); setResizable(false); // pack(); // setSize(getPreferredSize()); } /**
private void jbInit() throws Exception { bdThis = BorderFactory.createEmptyBorder(5,5,5,5); lbType.setHorizontalAlignment(SwingConstants.RIGHT); lbType.setText("Type de modle :"); lyThis.setColumns(3); lyThis.setHfilled(true); lyThis.setHgap(3); lyThis.setVfilled(false); lyThis.setVgap(5); this.setLayout(lyThis); lbFichiers.setHorizontalAlignment(SwingConstants.RIGHT); lbFichiers.setText("Gomtrie :"); btFichiers.setText("..."); btFichiers.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { btFichiers_actionPerformed(e); } }); tfFichiers.setPreferredSize(new Dimension(200, 21)); tfFichiers.setText(""); btDummy.setText(""); this.setBorder(bdThis); this.add(lbType, null); this.add(coType, null); this.add(btDummy, null); this.add(lbFichiers, null); this.add(tfFichiers, null); this.add(btFichiers, null); }
final BuGridLayout ppl = new BuGridLayout(); ppl.setColumns(2); ppl.setVgap(5); ppl.setHgap(5); ppl.setCfilled(true); ppl.setRfilled(false); pp.setLayout(ppl); final String s = ":"; bcSelecteurCouleurMax_.addPropertyChangeListener(this); final JPanel scp = new JPanel(); final BuGridLayout scl = new BuGridLayout(); scl.setColumns(2); scl.setHgap(2); scl.setVgap(2); scl.setCfilled(false); scl.setRfilled(true); scp.setLayout(scl); scp.setBorder(new EmptyBorder(2, 2, 2, 2));
coType.addItem(lbGrps[i]); sspnProprietes= new JPanel(); sslyProprietes= new BuGridLayout(3, 5, 5, false, false); sslyProprietes.setXAlign(0); sspnProprietes.setLayout(sslyProprietes); pnProprietes.add(sspnProprietes, new Integer(i + 1).toString());
private void jbInit() throws Exception { // Graphiques BorderLayout lyThis= new BorderLayout(); BuGridLayout lyPlages= new BuGridLayout(); Border bdPlages; bdPlages= BorderFactory.createEmptyBorder(5, 5, 5, 5); bxTitres= Box.createVerticalBox(); setLayout(lyThis); lbTitre.setHorizontalAlignment(SwingConstants.CENTER); lbTitre.setFont(new java.awt.Font("Dialog", 0, 10)); lbTitre.setAlignmentX((float)0.5); lbTitre.setText(titre_); pnPlages.setLayout(lyPlages); lyPlages.setColumns(1); lyPlages.setHgap(5); pnPlages.setBorder(bdPlages); pnPlages.setOpaque(false); lbSSTitre.setHorizontalAlignment(SwingConstants.CENTER); lbSSTitre.setFont(new java.awt.Font("Dialog", 0, 10)); lbSSTitre.setAlignmentX((float)0.5); lbSSTitre.setText(ssTitre_); this.setOpaque(false); add(pnPlages, BorderLayout.CENTER); this.add(bxTitres, BorderLayout.NORTH); bxTitres.add(lbTitre, null); bxTitres.add(lbSSTitre, null); } /**
pnProprietes.setToolTipText("Proprits du domaine"); pnPlan.setLayout(lyPlan); lyPlan.setColumns(1); lyPlan.setHgap(5); lyPlan.setVgap(2); lyGeometrie.setColumns(2); lyGeometrie.setCfilled(false); pnLimites.add(lbXmin, null); pnLimites.add(tfXmin, null); bdpnProprietes= BorderFactory.createEmptyBorder(5, 5, 5, 5); pnProprietes.setLayout(lyProprietes); lyProprietes.setColumns(2); lyProprietes.setHgap(5); lyProprietes.setVgap(5); lbPorosite.setHorizontalAlignment(SwingConstants.RIGHT); lbPorosite.setText("Porosit :"); tfCm.setColumns(8); pnLimites.setLayout(lyGeometrie); lyGeometrie.setHgap(5); lyGeometrie.setVgap(5); lbXmin.setText("X min :"); tfXmin.setColumns(12);
protected void build() { BuGridLayout lo=new BuGridLayout(2,5,5,true,true,false,false); lo.setSameWidth(true); lo.setSameHeight(true); BuPanel p1=new BuPanel(lo); p1.setBorder (new CompoundBorder (new BuTitledBorder(getTitle()), EMPTY5555)); cbEtats_=new BuCheckBox[NBL]; for(int i=0;i<NBL;i++) { cbEtats_[i]=new BuCheckBox(getS(INTITULES[i])); cbEtats_[i].setName("cb"+CODES[i].replace('.','_').toUpperCase()); cbEtats_[i].setActionCommand(CODES[i].replace('.','_').toUpperCase()); cbEtats_[i].addActionListener(this); p1.add(cbEtats_[i]); } add(p1); }
int nGraphe= 0; final BuPanel pnGrapheEd= new BuPanel(); BuGridLayout lo= new BuGridLayout(2, 5, 5, false, true); lo.setCfilled(false); lo.setXAlign(0); pnGrapheEd.setLayout(lo); pnGrapheEd.setBorder(new TitledBorder("Graphe")); int nAxe= 0; final BuPanel pnAxeEd= new BuPanel(); lo= new BuGridLayout(2, 5, 5, false, true); lo.setCfilled(false); lo.setXAlign(0); pnAxeEd.setLayout(lo); createAxeTitre(); int nCourbe= 0; final BuPanel pnCourbeEd= new BuPanel(); lo= new BuGridLayout(2, 5, 5, false, true); lo.setCfilled(false); lo.setXAlign(0); pnCourbeEd.setLayout(lo); createCourbeTitre();
new Color(134, 134, 134)), BorderFactory.createEmptyBorder(5, 5, 5, 5)); lyPrincipal.setColumns(1); lyPrincipal.setHgap(5); lyPrincipal.setCfilled(false); pnPrincipal.setLayout(lyPrincipal); pnPrincipal.setBorder(bdThis);
final BuGridLayout col1 = new BuGridLayout(2, 4, 5, true, true); col1.setRfilled(false); col1.setCfilled(false); final BuGridLayout col2 = new BuGridLayout(2, 4, 5, true, true); col2.setRfilled(false); col2.setCfilled(false); final BuPanel pFormatPageInfosCol1 = new BuPanel(); pFormatPageInfosCol1.setLayout(col1);
text_ =new BuTextField[NB]; BuGridLayout lo=new BuGridLayout(2,5,5,false,false,true,false); lo.setColumnXAlign(new float[] { 1.f,0.f }); BuPanel p=new BuPanel(lo);
private void jbInit() { BuGridLayout lyGene= new BuGridLayout(2, 5, 5); pnParams.add(pnParamsHR, "pnParamsHR"); pnParams.add(pnParamsHA, "pnParamsHA"); lyHoule.setRfilled(true); pnHoule.setLayout(lyHoule); pnHoule.add(pnCasCalcul); coFormule.addItem("Miche modifie"); coFormule.addItem("Munk"); lyFormule.setRfilled(true); pnFormule.setLayout(lyFormule); pnFormule.add(lbFormule);
titledBorder1= new TitledBorder(""); titledBorder2= new TitledBorder(""); lyPanel.setColumns(4); lyPanel.setHgap(5); setLayout(lyPanel); setBorder(bdPanel); btPlNumTroncon.setText("+"); btPlNumTroncon.addActionListener(this); lyNumTroncon.setHgap(1); add(lbTroncon, null); add(pnNumTroncon, null);
tfXPt.setColumns(12); lbXPt.setText("X :"); lyPlan.setHgap(5); lyPlan.setVgap(2); lyPlan.setVfilled(false); tfYPt.setColumns(12); lbYPt.setText("Y :");
/** * @param _r * @param _titre */ private void affiche(final String[] _r, final String _titre) { setTitle(_titre); pnMain_.removeAll(); // pnMain_.setBackground(Color.white); // pnMain_.setOpaque(true); final BuGridLayout glayout= new BuGridLayout(1, 5, 5, false, false, false, false); glayout.setXAlign(LEFT_ALIGNMENT); pnMain_.setLayout(glayout); if (_r == null) { pnMain_.add(new BuLabel("Liste vide")); } else { for (int i= 0; i < _r.length; i++) { pnMain_.add(new BuLabel(_r[i])); } } pack(); pnMain_.repaint(); } /**
lbTitre_.setFont(getFont()); lbTitre_.setAlignmentX((float) 0.5); final BuGridLayout lyPlages = new BuGridLayout(); lyPlages.setColumns(1); lyPlages.setHgap(5); pnPlages_.setLayout(lyPlages); pnPlages_.setBorder(bdPlages);
"Taille maxi"); pnPlages.setLayout(lyPlages); lyPlages.setColumns(1); lyPlages.setHgap(5); lyPlages.setVgap(5); lbNbPlages.setText("Nb plages"); tfNbPlages.setMinimumSize(new Dimension(50, 21)); lyNbPlages.setColumns(2); lyNbPlages.setHgap(5); pnNbPlages.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); pnNbPlages.setToolTipText(""); pnBornes.setLayout(lyBornes); lyBornes.setColumns(2); lyBornes.setHgap(5); lyBornes.setVgap(5); lbBorneMin.setText("Min"); lbBorneMax.setText("Max"); lyCouleurs.setColumns(1); lyCouleurs.setHgap(5); lyCouleurs.setVgap(5); rbMinMax.setText("Du min au max"); rbMinMax.addItemListener(new java.awt.event.ItemListener() { pnAjust.setBorder(bdAjust); pnAjust.setLayout(lyAjust); lyAjust.setColumns(1); rbAjustAucun.setToolTipText("Aucun ajustement des bornes de la palette");