Swing Arrow Buttons : Arrow Button « Swing « Java Tutorial






Swing Arrow Buttons
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.plaf.basic.BasicArrowButton;

public class BasicArrowButtonSample {
  public static void main(String args[]) {
    JFrame frame = new JFrame("Popup JComboBox");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    frame.setLayout(new GridLayout(0,5));
    frame.add(new BasicArrowButton(BasicArrowButton.EAST));
    frame.add(new BasicArrowButton(BasicArrowButton.NORTH));
    frame.add(new BasicArrowButton(BasicArrowButton.SOUTH));
    frame.add(new BasicArrowButton(BasicArrowButton.WEST));
    frame.setSize(300, 200);
    frame.setVisible(true);
  }

}








14.7.Arrow Button
14.7.1.Swing Arrow ButtonsSwing Arrow Buttons