Revision: 4358 http://vexi.svn.sourceforge.net/vexi/?rev=4358&view=rev Author: clrg Date: 2012-02-21 11:15:24 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Tsk tsk add with comment
Modified Paths: -------------- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java =================================================================== --- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java 2012-02-21 11:07:54 UTC (rev 4357) +++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java 2012-02-21 11:15:24 UTC (rev 4358) @@ -513,9 +513,13 @@ super(root); try { if (framed) { - frame = new InnerFrame(); + window = frame = new InnerFrame(); + + // this indicates that a frame should not close when the user + // instructs it to close, but await a call to dispose() from + // the core i.e. so an application can block close requests frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); - window = frame; + // ensures user cannot resize frame to be smaller than contents // FIXME: this does not work on Linux // frame.addComponentListener(((InnerFrame)frame).enforceMinSize); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn