From 27e3256577999d8beb4413a248fa88684cb50d04 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 1 Aug 2011 22:45:18 +0000 Subject: [PATCH] SDK : - fixed issue 374...maybe git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7964 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../scene/controller/toolbars/CameraToolbar.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java index 8a14996c0..5305c95a0 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java @@ -177,7 +177,7 @@ public class CameraToolbar extends javax.swing.JToolBar { }// //GEN-END:initComponents private void viewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewButtonActionPerformed - viewMenu.show(viewButton, 0,- viewMenu.getHeight()); + viewMenu.show(viewButton, 0, -viewMenu.getHeight()); }//GEN-LAST:event_viewButtonActionPerformed private void frontMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_frontMenuItemActionPerformed @@ -248,7 +248,15 @@ private void bottomMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GE }//GEN-LAST:event_bottomMenuItemActionPerformed private void enableOrthoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_enableOrthoActionPerformed - toggleOrthoPerspAction.actionPerformed(evt); + SceneViewerTopComponent.findInstance().requestActive(); + final java.awt.event.ActionEvent e = evt; + java.awt.EventQueue.invokeLater(new Runnable() { + + public void run() { + toggleOrthoPerspAction.actionPerformed(e); + } + }); + }//GEN-LAST:event_enableOrthoActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JMenuItem backMenuItem;