new BasicArrowButton(BasicArrowButton.WEST) : BasicArrowButton « javax.swing.plaf.basic « Java by API






new BasicArrowButton(BasicArrowButton.WEST)

import java.awt.BorderLayout;

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

public class MainClass {

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

    frame.add(new BasicArrowButton(BasicArrowButton.NORTH), BorderLayout.NORTH);
    frame.add(new BasicArrowButton(BasicArrowButton.EAST), BorderLayout.EAST);
    frame.add(new BasicArrowButton(BasicArrowButton.SOUTH), BorderLayout.SOUTH);
    frame.add(new BasicArrowButton(BasicArrowButton.WEST), BorderLayout.WEST);
    frame.setSize(300, 200);
    frame.setVisible(true);

  }

}

           
       








Related examples in the same category

1.new BasicArrowButton(BasicArrowButton.EAST)
2.new BasicArrowButton(BasicArrowButton.SOUTH)
3.new BasicArrowButton(BasicArrowButton.NORTH)