jdk/test/java/awt/Frame/FrameStateTest/FrameStateTest.html
author amurillo
Wed, 15 Aug 2012 16:49:38 -0700
changeset 13465 d3fc5d192448
parent 12525 93404c8fc9e6
permissions -rw-r--r--
7191765: make jdk8 the default jprt release for hs24 Reviewed-by: jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12525
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     1
<!--  
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     2
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     3
 Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     4
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     5
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     6
 This code is free software; you can redistribute it and/or modify it
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     7
 under the terms of the GNU General Public License version 2 only, as
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     8
 published by the Free Software Foundation.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
     9
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    10
 This code is distributed in the hope that it will be useful, but WITHOUT
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    11
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    12
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    13
 version 2 for more details (a copy is included in the LICENSE file that
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    14
 accompanied this code).
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    15
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    16
 You should have received a copy of the GNU General Public License version
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    17
 2 along with this work; if not, write to the Free Software Foundation,
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    18
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    19
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    20
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    21
 or visit www.oracle.com if you need additional information or have any
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    22
 questions.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    23
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    24
  @test
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    25
  @bug 4157271
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    26
  @summary Checks that when a Frame is created it honors the state it
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    27
  	was set to. The bug was that if setState(Frame.ICONIFIED) was 
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    28
  	called before setVisible(true) the Frame would be shown in NORMAL 
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    29
  	state instead of ICONIFIED.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    30
  @author JTG East Team: area=awt.Frame
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    31
  @run applet/manual=yesno FrameStateTest.html
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    32
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    33
 -->
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    34
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    35
<html>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    36
<head>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    37
<title> FrameStateTest </title>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    38
</head>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    39
<body>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    40
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    41
<h1>FrameStateTest<br>Bug ID: 4157271</h1>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    42
<p>This test checks that when setState(Frame.ICONIFIED) is called before
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    43
  	setVisible(true) the Frame is shown in the proper iconified state.
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    44
  	The problem was that it did not honor the initial iconic state, but
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    45
 	instead was shown in the NORMAL state.</p>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    46
<p>See the dialog box (usually in upper left corner) for instructions</p>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    47
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    48
<APPLET CODE="FrameStateTest.class" WIDTH=600 HEIGHT=200></APPLET>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    49
</body>
93404c8fc9e6 7150109: [macosx] the Frame showed incomplete.
anthony
parents:
diff changeset
    50
</html>