Author: rwhitcomb Date: Thu Feb 17 05:14:09 2022 New Revision: 1898141 URL: http://svn.apache.org/viewvc?rev=1898141&view=rev Log: Window.remove is unsupported to remove the content - add message to exception.
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java?rev=1898141&r1=1898140&r2=1898141&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java Thu Feb 17 05:14:09 2022 @@ -337,7 +337,7 @@ public class Window extends Container { for (int i = index, n = index + count; i < n; i++) { Component component = get(i); if (component == content) { - throw new UnsupportedOperationException(); + throw new UnsupportedOperationException("Window content cannot be removed."); } }