Java by API/javax.swing.plaf.basic/BasicArrowButton — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 14:15, 31 мая 2010
Содержание
new BasicArrowButton(BasicArrowButton.EAST)
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);
}
}
new BasicArrowButton(BasicArrowButton.NORTH)
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);
}
}
new BasicArrowButton(BasicArrowButton.SOUTH)
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);
}
}
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);
}
}