< prev index next >

test/jdk/javax/swing/JInternalFrame/6647340/bug6647340.java

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @key headful
  26  * @bug 6647340
  27  * @summary Checks that iconified internal frame follows
  28  *          the main frame borders properly.
  29  * @author Mikhail Lapshin
  30  * @library ../../../../lib/testlibrary/
  31  * @build ExtendedRobot
  32  * @run main bug6647340
  33  */
  34 
  35 import javax.swing.*;
  36 import java.awt.*;
  37 import java.beans.PropertyVetoException;
  38 
  39 public class bug6647340 {
  40     private JFrame frame;
  41     private Point location;
  42     private JInternalFrame jif;
  43     private static ExtendedRobot robot = createRobot();
  44 
  45     public static void main(String[] args) throws Exception {
  46         final bug6647340 test = new bug6647340();
  47         try {
  48             SwingUtilities.invokeAndWait(new Runnable() {
  49                 public void run() {
  50                     test.setupUI();




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @key headful
  26  * @bug 6647340
  27  * @summary Checks that iconified internal frame follows
  28  *          the main frame borders properly.
  29  * @author Mikhail Lapshin
  30  * @library ../../../../lib/client/
  31  * @build ExtendedRobot
  32  * @run main bug6647340
  33  */
  34 
  35 import javax.swing.*;
  36 import java.awt.*;
  37 import java.beans.PropertyVetoException;
  38 
  39 public class bug6647340 {
  40     private JFrame frame;
  41     private Point location;
  42     private JInternalFrame jif;
  43     private static ExtendedRobot robot = createRobot();
  44 
  45     public static void main(String[] args) throws Exception {
  46         final bug6647340 test = new bug6647340();
  47         try {
  48             SwingUtilities.invokeAndWait(new Runnable() {
  49                 public void run() {
  50                     test.setupUI();


< prev index next >