[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java,1.52,1.53
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2006-01-30 12:35:59
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6908 Modified Files: View.java Log Message: changed toolbar buttons to togglebuttons Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** View.java 30 Jan 2006 10:04:45 -0000 1.52 --- View.java 30 Jan 2006 12:35:48 -0000 1.53 *************** *** 37,41 **** import javax.swing.Action; import javax.swing.ImageIcon; ! import javax.swing.JButton; import net.java.games.jogl.GL; --- 37,42 ---- import javax.swing.Action; import javax.swing.ImageIcon; ! import javax.swing.JToggleButton; ! import javax.swing.ButtonGroup; import net.java.games.jogl.GL; *************** *** 367,375 **** Toolbar tb = Toolbar.getInstance(); ! JButton but = tb.registerAction(new ViewWireframe(glv)); but.setToolTipText("Wireframe"); but = tb.registerAction(new ViewSolid(glv)); but.setToolTipText("Solid"); but = tb.registerAction(new ViewLighting(glv)); but.setToolTipText("Shading"); } --- 368,380 ---- Toolbar tb = Toolbar.getInstance(); ! ButtonGroup bg = new ButtonGroup(); ! JToggleButton but = tb.registerAction(new ViewWireframe(glv)); ! bg.add(but); but.setToolTipText("Wireframe"); but = tb.registerAction(new ViewSolid(glv)); + bg.add(but); but.setToolTipText("Solid"); but = tb.registerAction(new ViewLighting(glv)); + bg.add(but); but.setToolTipText("Shading"); } |