protected void buildOptionsPanel() { final BuPanel pn = new BuPanel(new BuVerticalLayout()); pn.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), CtuluLib.getS("Options"))); pn.add(btIdx_); pn.add(btExpr_); add(pn, BuBorderLayout.SOUTH); }
lbExemple_.setBorder(new BuLightBorder(BuLightBorder.LOWERED, 5)); lbExemple_.setPreferredSize(new Dimension(150, 75)); final BuVerticalLayout lo = new BuVerticalLayout(); lo.setVgap(5); setLayout(lo); add(chPolice_);
public BuColumn() { super(); buttons_ = new Hashtable(); views_ = new Hashtable(); top_ = null; compact_ = BuPreferences.BU.getBooleanProperty("column.compact", false); BuVerticalLayout layout = new BuVerticalLayout(); layout.setVgap(2); layout.setHfilled(true); layout.setVfilled(true); setLayout(layout); if (compact_) layout.setVgap(0); if (!BuPreferences.BU.getBooleanProperty("button.text", true)) { top_ = new BuPanel(); top_.setLayout(new BuHorizontalLayout(2, false, true)); add(top_); } }
if (info_.logo != null) ml_logo = new BuPicture(info_.logo); BuVerticalLayout leftlo = new BuVerticalLayout(); leftlo.setVfilled(false); leftlo.setVgap(5); l4.setFont(BuLib.deriveFont("Label", Font.PLAIN, -2)); BuVerticalLayout lol = new BuVerticalLayout(); lol.setVgap(5); lol.setVfilled(false);
cbAireMaxi.setSelected(false); lyProprietes.setVgap(5); pnProprietes.setLayout(lyProprietes); pnProprietes.add(pnOptions, null);
r0=new JPanel(new BuVerticalLayout(10));//GridLayout(0, 1, 10, 10)); r0.add(rb0_0); r0.add(rb0_1); r1=new JPanel(new BuVerticalLayout(10));//new BorderLayout(10, 10));
final BuVerticalLayout lo= new BuVerticalLayout(); lo.setVgap(5); setLayout(lo);
public static final JComponent launch(String argv[]) { JComponent content = new JPanel(); BuVerticalLayout lo = new BuVerticalLayout(); lo.setVgap(5); lo.setHfilled(true); lo.setVfilled(false); content.setLayout(lo); content.setBorder(BuBorders.EMPTY5555);
public BControleLumiere() { pcs_ = new PropertyChangeSupport(this); this.setPreferredSize(new Dimension(200, 130)); /* mode= XY; */ vecteur_ = new Vector3f(); final Listener lis = new Listener(); xy_ = new Carre(XY); xy_.addMouseListener(lis); yz_ = new Carre(YZ); yz_.addMouseListener(lis); final JPanel carres = new JPanel(new FlowLayout()); carres.add(xy_); carres.add(yz_); final JPanel intensite = new JPanel(new BuVerticalLayout()); final JLabel lbIntensite = new JLabel("Intensit"); final JSlider slIntensite = new JSlider(0, 25, 25); slIntensite.addChangeListener(new IntensiteListener()); lbIntensite_ = new JLabel("1.00"); intensite.add(lbIntensite); intensite.add(slIntensite); intensite.add(lbIntensite_); setLayout(new BuVerticalLayout()); add(carres); add(intensite); doLayout(); // setSize(getPreferredSize()); }
pb.add(detruire_); pb.add(appliquer_); final BuVerticalLayout lo = new BuVerticalLayout(); lo.setVgap(5); setLayout(lo); add(sp);
final JPanel controle = new JPanel(new FlowLayout()); controle.add(marche_); final JPanel main = new JPanel(new BuVerticalLayout()); main.add(fichier); main.add(new JSeparator());
transp_.addChangeListener(tl_); lbTranspValue_ = new JLabel("" + ((double) _transp / 10)); final JPanel main = new JPanel(new BuVerticalLayout()); final JPanel ligne1 = new JPanel(new FlowLayout()); final JPanel modePanel1 = new JPanel(new GridLayout(1, 2));
public BuDesktopPreferencesPanel(BuCommonInterface _appli) { super(); appli_ =_appli; options_ =BuPreferences.BU; setLayout(new BuVerticalLayout(5,true,false)); setBorder(EMPTY5555); build(); //for(int i=0;i<NBL;i++) //cbEtats_[i].setSelected(DEFAUTS[i]); updateComponents(); }
JPanel pnLeft=new JPanel(); pnLeft.setBorder(BorderFactory.createEmptyBorder(0,3,0,0)); pnLeft.setLayout(new BuVerticalLayout(1,true,true)); pnLeft.setOpaque(false);
public JComponent getComponent() { if (pn_ == null) { pn_ = new BuPanel(new BuBorderLayout(0, 5)); pn_.setBorder(BuBorders.EMPTY3333); final JTree tree = model_.createView(false, true); selection_ = tree.getSelectionModel(); final BuScrollPane sc = new BuScrollPane(tree); sc.setPreferredHeight(80); sc.setPreferredWidth(60); pn_.add(sc, BuBorderLayout.CENTER); final BuPanel pnCb = new BuPanel(new BuVerticalLayout(1)); pnCb.add(new BuLabel(EbliLib.getS("Une ligne est slectionne si:"))); pnCb.add(cb_); pn_.add(pnCb, BuBorderLayout.SOUTH); } return pn_; }
public VolumePreferencesPanel(final BuCommonImplementation _appli) { options_= EbliPreferences.EBLI; appli_= _appli; final BuVerticalLayout lo= new BuVerticalLayout(5, true, false); setLayout(lo); int n= 0; cbRapide_= new JCheckBox("Desactiver le mode d'affichage 'Rapide' pendant les dplacements"); cbRapide_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent _evt) { setDirty(true); } }); add(cbRapide_, n++); coul_= new BSelecteurCouleur(); coul_.addPropertyChangeListener("couleur",new PropertyChangeListener() { public void propertyChange(final PropertyChangeEvent _evt) { setDirty(true); } }); final JLabel label= new JLabel("Couleur du fond"); add(label, n++); add(coul_, n++); updateComponents(); } public String getToolTipText() {
scp_.setLayout(new BuVerticalLayout(2,true,false)); scp_.setBorder(BuBorders.EMPTY2222); add(scp_,BuBorderLayout.WEST);
public BPaletteEdition() { super(); setLayout(new BuVerticalLayout(0, true, false)); buildGlobalsActions(this); editorPanel_ = new BuPanel(); editorPanel_.setLayout(new BuBorderLayout()); editorPanel_.setBorder(BorderFactory.createEtchedBorder()); editorPanel_.setVisible(false); add(editorPanel_); }
/** * @param _values les valeurs parmi lesquelles on veut choisir * @param _parent le composant parent * @param _title le titre du dialog * @param _lb le label * @param _vert true si on veut que le label est le com soit place verticalement * @return l'indice de l'objet slectionne au -1 si l'utilisateur a refuse */ public static int chooseValue(Object[] _values, Component _parent, String _title, String _lb, boolean _vert) { CtuluDialogPanel pn = new CtuluDialogPanel(); if (_vert) { pn.setLayout(new BuVerticalLayout(5)); } else { pn.setLayout(new BuGridLayout(2)); } pn.addLabel(_lb); JComboBox res = pn.addComboBox(_values, pn); if (pn.afficheModaleOk(_parent, _title)) { return res.getSelectedIndex(); } return -1; }
/** * @param _nbFrame le nombre de pas */ public EditPanel(final int _nbFrame) { super(true); setLayout(new BuBorderLayout()); pn_ = new EbliAnimationVideoEditPanel(_nbFrame, EbliAnimationOutputFlash.this); add(pn_, BuBorderLayout.NORTH); final BuPanel top = new BuPanel(); top.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(BorderFactory .createEtchedBorder(), EbliLib.getS("fichier html")), BorderFactory.createEmptyBorder(5, 5, 5, 5))); top.setLayout(new BuVerticalLayout(5)); addLabel(top, EbliLib.getS("Titre:")); txtTitle_ = addStringText(top); txtTitle_.setText(EbliAnimationOutputFlash.this.title_); addLabel(top, EbliLib.getS("Commentaires:")); txtComment_ = new BuTextArea(10, 15); top.add(new BuScrollPane(txtComment_)); txtComment_.setText(comment_); txtComment_.setWrapStyleWord(true); txtComment_.setLineWrap(true); cbWeb_ = new BuCheckBox(EbliLib.getS("Ouvrir automatiquement l'animation flash")); cbWeb_.setSelected(launchWeb_); top.add(cbWeb_); cbZip_ = new BuCheckBox(EbliLib.getS("Crer un fichier zip")); cbZip_.setToolTipText(EbliLib.getS("Le fichier zip contiendra le fichier html et le fichier flash.")); cbZip_.setSelected(zip_); top.add(cbZip_); add(top, BuBorderLayout.CENTER); }