private void affectLibelle() { setTitle(ConcoursJeunes.ajrLibelle.getResourceString("criterion.titre")); jlCode.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.code")); jlLibelle.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.libelle")); jlSortOrder.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri")); jcbSortOrder.removeAllItems(); jcbSortOrder.addItem(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri.asc")); jcbSortOrder.addItem(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri.desc")); jcbPlacementCriterion.setText( ConcoursJeunes.ajrLibelle.getResourceString("criterion.placement")); jcbClassementCriterion.setText( ConcoursJeunes.ajrLibelle.getResourceString("criterion.classement")); jbValider.setText(ConcoursJeunes.ajrLibelle.getResourceString("bouton.valider")); jbAnnuler.setText(ConcoursJeunes.ajrLibelle.getResourceString("bouton.annuler")); }
private void init() { // Layout Manager GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); JPanel jpGeneral = new JPanel(); JPanel jpOperation = new JPanel(); jpGeneral.setLayout(gridbag); jpOperation.setLayout(new FlowLayout(FlowLayout.RIGHT)); jbValider.addActionListener(this); jbAnnuler.addActionListener(this); c.gridy = 0; c.anchor = GridBagConstraints.WEST; // Défaut,Haut AJToolKit.addComponentIntoGrid(jpGeneral, jlIndex, gridbag, c); c.gridy++; AJToolKit.addComponentIntoGrid(jpGeneral, jlCode, gridbag, c); AJToolKit.addComponentIntoGrid(jpGeneral, jtfCode, gridbag, c); c.gridy++; AJToolKit.addComponentIntoGrid(jpGeneral, jlLibelle, gridbag, c); AJToolKit.addComponentIntoGrid(jpGeneral, jtfLibelle, gridbag, c); c.gridy++; AJToolKit.addComponentIntoGrid(jpGeneral, jlSortOrder, gridbag, c); AJToolKit.addComponentIntoGrid(jpGeneral, jcbSortOrder, gridbag, c); c.gridy++; AJToolKit.addComponentIntoGrid(jpGeneral, jcbPlacementCriterion, gridbag, c); c.gridy++; AJToolKit.addComponentIntoGrid(jpGeneral, jcbClassementCriterion, gridbag, c); jpOperation.add(jbValider); jpOperation.add(jbAnnuler); getContentPane().setLayout(new BorderLayout()); getContentPane().add(jpGeneral, BorderLayout.CENTER); getContentPane().add(jpOperation, BorderLayout.SOUTH); }