国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javabasicJava Swing - 如何創(chuàng)建箭頭按鈕

Java Swing - 如何創(chuàng)建箭頭按鈕

我們想知道如何創(chuàng)建箭頭按鈕。
import java.awt.BorderLayout;

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

public class Main extends JPanel {
  public Main() {
    setLayout(new BorderLayout());


    JPanel east = new JPanel(new BorderLayout());
    add(east, BorderLayout.EAST);

    BasicArrowButton north = new BasicArrowButton(BasicArrowButton.NORTH);

    east.add(north, BorderLayout.NORTH);

    BasicArrowButton south = new BasicArrowButton(BasicArrowButton.SOUTH);
    east.add(south, BorderLayout.SOUTH);
  }

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

    frame.add(new Main());
    frame.setSize(200, 300);
    frame.setLocationByPlatform(true);
    frame.setVisible(true);
  }
}