The Project        Download   Javadoc   SourceForge

ArrowButton

Button with a arrow shape

Example 1

 JPanel panel = new JPanel();
 
 panel.add(new ArrowButton(ArrowButton.FIRST));
 panel.add(new ArrowButton(ArrowButton.DOUBLE_LEFT));
 panel.add(new ArrowButton(ArrowButton.LEFT));
 panel.add(new ArrowButton(ArrowButton.RIGHT));
 panel.add(new ArrowButton(ArrowButton.DOUBLE_RIGHT));
 panel.add(new ArrowButton(ArrowButton.DOUBLE_UP));
 panel.add(new ArrowButton(ArrowButton.UP));
 panel.add(new ArrowButton(ArrowButton.DOWN));
 panel.add(new ArrowButton(ArrowButton.DOUBLE_DOWN));
 panel.add(new ArrowButton(ArrowButton.LAST));


Example 2: choosing the arrow size

 panel.add(new ArrowButton(8)); 
 panel.add(new ArrowButton(14)); 
 panel.add(new ArrowButton(22)); 
 panel.add(new ArrowButton(32)); 


Example 3: adding listener

 ArrowButton ab = new ArrowButton(ArrowButton.UP); 
 ab.addActionListener(new ActionListener() { 
   @Override 
   public void actionPerformed(ActionEvent e) { 
    System.out.println("action"); 
   } 
 }); 

Util

Partners / Users









Jeboorker