test/jdk/java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.java
author jdv
Wed, 15 May 2019 10:10:53 +0530
branchmetal-prototype-branch
changeset 57357 f3beca8f19fc
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15981
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     1
/*
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     4
 *
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     8
 *
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    13
 * accompanied this code).
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    14
 *
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    18
 *
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    21
 * questions.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    22
 */
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    23
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    24
/*
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    25
  test
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    26
  @bug 6243382 8006070
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    27
  @summary Dragging of mouse outside of a List and Choice area don't work properly on XAWT
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    28
  @author Dmitry.Cherepanov@SUN.COM area=awt.list
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    29
  @run applet/manual=yesno MouseDraggedOutCauseScrollingTest.html
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    30
*/
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    31
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    32
import java.applet.Applet;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    33
import java.awt.*;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    34
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    35
public class MouseDraggedOutCauseScrollingTest extends Applet
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    36
{
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    37
    Choice choice;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    38
    List singleList;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    39
    List multipleList;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    40
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    41
    public void init()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    42
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    43
        this.setLayout (new GridLayout (1, 3));
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    44
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    45
        choice = new Choice();
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    46
        singleList = new List(3, false);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    47
        multipleList = new List(3, true);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    48
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    49
        choice.add("Choice");
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    50
        for (int i = 1; i < 100; i++){
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    51
            choice.add(""+i);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    52
        }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    53
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    54
        singleList.add("Single list");
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    55
        for (int i = 1; i < 100; i++)
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    56
            singleList.add(""+i);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    57
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    58
        multipleList.add("Multiple list");
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    59
        for (int i = 1; i < 100; i++)
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    60
            multipleList.add(""+i);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    61
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    62
        this.add(choice);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    63
        this.add(singleList);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    64
        this.add(multipleList);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    65
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    66
        String toolkitName = Toolkit.getDefaultToolkit().getClass().getName();
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    67
        if (!toolkitName.equals("sun.awt.X11.XToolkit")) {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    68
            String[] instructions =
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    69
            {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    70
                "This test is not applicable to the current platform. Press PASS"
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    71
            };
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    72
            Sysout.createDialogWithInstructions( instructions );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    73
        } else {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    74
            String[] instructions =
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    75
            {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    76
                "0) Please note, that this is only Motif/XAWT test. At first, make the applet active",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    77
                "1.1) Click on the choice",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    78
                "1.2) Press the left button of the mouse and keep on any item of the choice, for example 5",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    79
                "1.3) Drag mouse out of the area of the unfurled list, at the same time hold the X coordinate of the mouse position about the same",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    80
                "1.4) To make sure, that when the Y coordinate of the mouse position higher of the upper bound of the list then scrolling UP of the list and selected item changes on the upper. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    81
                "1.5) To make sure, that when the Y coordinate of the mouse position under of the lower bound of the list then scrolling DOWN of the list and selected item changes on the lower. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    82
                "-----------------------------------",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    83
                "2.1) Click on the single list",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    84
                "2.2) Press the left button of the mouse and keep on any item of the list, for example 5",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    85
                "2.3) Drag mouse out of the area of the unfurled list, at the same time hold the X coordinate of the mouse position about the same",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    86
                "2.4) To make sure, that when the Y coordinate of the mouse position higher of the upper bound of the list then scrolling UP of the list and selected item changes on the upper. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    87
                "2.5) To make sure, that when the Y coordinate of the mouse position under of the lower bound of the list then scrolling DOWN of the list and selected item changes on the lower. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    88
                "-----------------------------------",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    89
                "3.1) Click on the multiple list",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    90
                "3.2) Press the left button of the mouse and keep on any item of the list, for example 5",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    91
                "3.3) Drag mouse out of the area of the unfurled list, at the same time hold the X coordinate of the mouse position about the same",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    92
                "3.4) To make sure, that when the Y coordinate of the mouse position higher of the upper bound of the list then scrolling of the list NO OCCURED and selected item NO CHANGES on the upper. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    93
                "3.5) To make sure, that when the Y coordinate of the mouse position under of the lower bound of the list then scrolling of the list NO OCCURED and selected item NO CHANGES on the lower. If not, the test failed",
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    94
                "4) Test passed."
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    95
            };
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    96
            Sysout.createDialogWithInstructions( instructions );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    97
        }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    98
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
    99
    }//End  init()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   100
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   101
    public void start ()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   102
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   103
        setSize (400,100);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   104
        setVisible(true);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   105
        validate();
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   106
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   107
    }// start()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   108
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   109
}// class ManualYesNoTest
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   110
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   111
/****************************************************
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   112
 Standard Test Machinery
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   113
 DO NOT modify anything below -- it's a standard
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   114
  chunk of code whose purpose is to make user
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   115
  interaction uniform, and thereby make it simpler
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   116
  to read and understand someone else's test.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   117
 ****************************************************/
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   118
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   119
/**
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   120
 This is part of the standard test machinery.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   121
 It creates a dialog (with the instructions), and is the interface
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   122
  for sending text messages to the user.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   123
 To print the instructions, send an array of strings to Sysout.createDialog
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   124
  WithInstructions method.  Put one line of instructions per array entry.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   125
 To display a message for the tester to see, simply call Sysout.println
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   126
  with the string to be displayed.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   127
 This mimics System.out.println but works within the test harness as well
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   128
  as standalone.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   129
 */
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   130
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   131
class Sysout
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   132
{
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   133
    private static TestDialog dialog;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   134
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   135
    public static void createDialogWithInstructions( String[] instructions )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   136
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   137
        dialog = new TestDialog( new Frame(), "Instructions" );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   138
        dialog.printInstructions( instructions );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   139
        dialog.setVisible(true);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   140
        println( "Any messages for the tester will display here." );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   141
    }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   142
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   143
    public static void createDialog( )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   144
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   145
        dialog = new TestDialog( new Frame(), "Instructions" );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   146
        String[] defInstr = { "Instructions will appear here. ", "" } ;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   147
        dialog.printInstructions( defInstr );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   148
        dialog.setVisible(true);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   149
        println( "Any messages for the tester will display here." );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   150
    }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   151
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   152
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   153
    public static void printInstructions( String[] instructions )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   154
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   155
        dialog.printInstructions( instructions );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   156
    }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   157
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   158
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   159
    public static void println( String messageIn )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   160
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   161
        dialog.displayMessage( messageIn );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   162
    }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   163
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   164
}// Sysout  class
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   165
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   166
/**
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   167
  This is part of the standard test machinery.  It provides a place for the
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   168
   test instructions to be displayed, and a place for interactive messages
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   169
   to the user to be displayed.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   170
  To have the test instructions displayed, see Sysout.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   171
  To have a message to the user be displayed, see Sysout.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   172
  Do not call anything in this dialog directly.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   173
  */
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   174
class TestDialog extends Dialog
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   175
{
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   176
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   177
    TextArea instructionsText;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   178
    TextArea messageText;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   179
    int maxStringLength = 80;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   180
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   181
    //DO NOT call this directly, go through Sysout
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   182
    public TestDialog( Frame frame, String name )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   183
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   184
        super( frame, name );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   185
        int scrollBoth = TextArea.SCROLLBARS_BOTH;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   186
        instructionsText = new TextArea( "", 15, maxStringLength, scrollBoth );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   187
        add( "North", instructionsText );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   188
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   189
        messageText = new TextArea( "", 5, maxStringLength, scrollBoth );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   190
        add("Center", messageText);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   191
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   192
        pack();
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   193
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   194
        setVisible(true);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   195
    }// TestDialog()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   196
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   197
    //DO NOT call this directly, go through Sysout
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   198
    public void printInstructions( String[] instructions )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   199
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   200
        //Clear out any current instructions
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   201
        instructionsText.setText( "" );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   202
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   203
        //Go down array of instruction strings
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   204
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   205
        String printStr, remainingStr;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   206
        for( int i=0; i < instructions.length; i++ )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   207
        {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   208
            //chop up each into pieces maxSringLength long
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   209
            remainingStr = instructions[ i ];
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   210
            while( remainingStr.length() > 0 )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   211
            {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   212
                //if longer than max then chop off first max chars to print
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   213
                if( remainingStr.length() >= maxStringLength )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   214
                {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   215
                    //Try to chop on a word boundary
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   216
                    int posOfSpace = remainingStr.
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   217
                        lastIndexOf( ' ', maxStringLength - 1 );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   218
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   219
                    if( posOfSpace <= 0 ) posOfSpace = maxStringLength - 1;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   220
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   221
                    printStr = remainingStr.substring( 0, posOfSpace + 1 );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   222
                    remainingStr = remainingStr.substring( posOfSpace + 1 );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   223
                }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   224
                //else just print
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   225
                else
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   226
                {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   227
                    printStr = remainingStr;
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   228
                    remainingStr = "";
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   229
                }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   230
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   231
                instructionsText.append( printStr + "\n" );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   232
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   233
            }// while
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   234
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   235
        }// for
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   236
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   237
    }//printInstructions()
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   238
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   239
    //DO NOT call this directly, go through Sysout
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   240
    public void displayMessage( String messageIn )
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   241
    {
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   242
        messageText.append( messageIn + "\n" );
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   243
        System.out.println(messageIn);
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   244
    }
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   245
6a17b454c6db 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list.
kshefov
parents:
diff changeset
   246
}// TestDialog  class