< prev index next >

src/demo/share/jfc/J2Ddemo/java2d/Tools.java

Print this page

        

*** 92,102 **** private ToggleIcon bumpyIcon, rolloverIcon; private DecimalFormat decimalFormat = new DecimalFormat("000"); protected boolean focus; public JToggleButton toggleB; public JButton printB; ! public JComboBox screenCombo; public JToggleButton renderB, aliasB; public JToggleButton textureB, compositeB; public JButton startStopB; public JButton cloneB; public boolean issueRepaint = true; --- 92,102 ---- private ToggleIcon bumpyIcon, rolloverIcon; private DecimalFormat decimalFormat = new DecimalFormat("000"); protected boolean focus; public JToggleButton toggleB; public JButton printB; ! public JComboBox<String> screenCombo; public JToggleButton renderB, aliasB; public JToggleButton textureB, compositeB; public JButton startStopB; public JButton cloneB; public boolean issueRepaint = true;
*** 165,175 **** Image stopImg = DemoImages.getImage("stop.gif", this); startStopB = addTool(stopImg, "Stop Animation", this); toolbar.setPreferredSize(new Dimension(6*25, 26)); } ! screenCombo = new JComboBox(); screenCombo.setPreferredSize(new Dimension(100, 18)); screenCombo.setFont(font); for (String name : GlobalControls.screenNames) { screenCombo.addItem(name); } --- 165,175 ---- Image stopImg = DemoImages.getImage("stop.gif", this); startStopB = addTool(stopImg, "Stop Animation", this); toolbar.setPreferredSize(new Dimension(6*25, 26)); } ! screenCombo = new JComboBox<>(); screenCombo.setPreferredSize(new Dimension(100, 18)); screenCombo.setFont(font); for (String name : GlobalControls.screenNames) { screenCombo.addItem(name); }
< prev index next >