< prev index next >

test/java/awt/im/6396526/IMLookAndFeel.java

Print this page
rev 17565 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
Reviewed-by: serb, mbaesken


   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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 /*
  25  * @test

  26  * @bug  6396526
  27  * @summary  Verify below-the-spot IM in the swing L&F JFrame.
  28  *           Although the swing component is decorated with L&F
  29  *           the IM window should have no decoration.
  30  * @author yuriko.yamasaki
  31  */
  32 
  33 import java.awt.*;
  34 import javax.swing.*;
  35 
  36 public class IMLookAndFeel {
  37     /**
  38      * Create the GUI and show it.  For thread safety,
  39      * this method should be invoked from the
  40      * event-dispatching thread.
  41      */
  42     private static void createAndShowGUI() {
  43         //Suggest that the L&F (rather than the system)
  44         //decorate all windows.  This must be invoked before
  45         //creating the JFrame.  Native look and feels will




   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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 /**
  25  * @test
  26  * @key headful
  27  * @bug 6396526
  28  * @summary Verify below-the-spot IM in the swing L&F JFrame.
  29  *          Although the swing component is decorated with L&F
  30  *          the IM window should have no decoration.
  31  * @author yuriko.yamasaki
  32  */
  33 
  34 import java.awt.*;
  35 import javax.swing.*;
  36 
  37 public class IMLookAndFeel {
  38     /**
  39      * Create the GUI and show it.  For thread safety,
  40      * this method should be invoked from the
  41      * event-dispatching thread.
  42      */
  43     private static void createAndShowGUI() {
  44         //Suggest that the L&F (rather than the system)
  45         //decorate all windows.  This must be invoked before
  46         //creating the JFrame.  Native look and feels will


< prev index next >