< prev index next >
src/demo/share/jfc/J2Ddemo/java2d/demos/Paint/TextureAnim.java
Print this page
*** 297,307 ****
final class DemoControls extends CustomControls implements ActionListener {
TextureAnim demo;
JToolBar toolbar;
! JComboBox combo;
JMenu menu;
JMenuItem[] menuitems;
int iconSize = 20;
ButtonBorder buttonBorder = new ButtonBorder();
--- 297,307 ----
final class DemoControls extends CustomControls implements ActionListener {
TextureAnim demo;
JToolBar toolbar;
! JComboBox<String> combo;
JMenu menu;
JMenuItem[] menuitems;
int iconSize = 20;
ButtonBorder buttonBorder = new ButtonBorder();
*** 316,326 ****
addTool("SA", "show anchor", true);
addTool("RS", "resize", false);
addTool("RO", "rotate", false);
addTool("SX", "shear x", false);
addTool("SY", "shear y", false);
! add(combo = new JComboBox());
combo.addActionListener(this);
combo.addItem("8");
combo.addItem("16");
combo.addItem("32");
combo.addItem("64");
--- 316,326 ----
addTool("SA", "show anchor", true);
addTool("RS", "resize", false);
addTool("RO", "rotate", false);
addTool("SX", "shear x", false);
addTool("SY", "shear y", false);
! add(combo = new JComboBox<>());
combo.addActionListener(this);
combo.addItem("8");
combo.addItem("16");
combo.addItem("32");
combo.addItem("64");
< prev index next >