Revision: 4026 http://vexi.svn.sourceforge.net/vexi/?rev=4026&view=rev Author: clrg Date: 2011-02-09 13:51:39 +0000 (Wed, 09 Feb 2011)
Log Message: ----------- More robust ToFront mechanism Modified Paths: -------------- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java =================================================================== --- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java 2011-02-09 01:52:06 UTC (rev 4025) +++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java 2011-02-09 13:51:39 UTC (rev 4026) @@ -392,7 +392,11 @@ Dimension singleSize = new Dimension(); public void toBack() { if (window != null) window.toBack(); } - public void toFront() { if (window != null) window.toFront(); } + public void toFront() { + // window.toFront() does not work well + //if (window != null) window.toFront(); + if (window != null) { window.setVisible(false); window.setVisible(true); } + } public void requestFocus() { if (window != null) window.requestFocus(); } public void setLocation() { if (window != null) window.setLocation(x, y); } public void setTitleBarText(String s) { if (frame != null) frame.setTitle(s); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn