package fenetres; import java.awt.event.ContainerListener; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; import java.beans.PropertyChangeListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JToolBar; import javax.swing.event.AncestorListener; public class toolBarRecherche extends JToolBar{ /** * */ private static final long serialVersionUID = 1L; private JButton btnRechercheIndex; private JButton btnRechercheContenuExact; private JButton btnRechercheVoisin; public toolBarRecherche() { setRollover(true); setName("Recherche node"); btnRechercheIndex = new JButton(""); btnRechercheIndex.setEnabled(false); btnRechercheIndex.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheindex.png"))); add(btnRechercheIndex); btnRechercheContenuExact = new JButton(""); btnRechercheContenuExact.setEnabled(false); btnRechercheContenuExact.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenu.png"))); add(btnRechercheContenuExact); btnRechercheVoisin = new JButton(""); btnRechercheVoisin.setEnabled(false); btnRechercheVoisin.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenuplusprochevoisin.png"))); add(btnRechercheVoisin); } }