]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_8_1_1/tools/misc/src/com/ibm/icu/dev/tool/ime/IMETest.java
Added flags.
[Dictionary.git] / jars / icu4j-4_8_1_1 / tools / misc / src / com / ibm / icu / dev / tool / ime / IMETest.java
1 /*
2  *******************************************************************************
3  * Copyright (C) 2004-2010, International Business Machines Corporation and         *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7
8 package com.ibm.icu.dev.tool.ime;
9
10 import java.awt.Rectangle;
11
12 import javax.swing.Box;
13 import javax.swing.JFrame;
14 import javax.swing.JTextField;
15 import javax.swing.WindowConstants;
16
17 public class IMETest {
18     public static void main(String[] args) {
19     String sampleText = "This is a sample\nto put into the field.";
20     Rectangle loc = new Rectangle(100, 100, 300, 300);
21     for (int i = 0; i < 2; ++i) {
22         JFrame jf = new JFrame("Test Window " + i);
23         jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
24         Box box = Box.createVerticalBox();
25         box.add(new JTextField(sampleText));
26         box.add(new JTextField(sampleText));
27         jf.getContentPane().add(box);
28         jf.setBounds(loc);
29         
30         jf.setVisible(true);
31         
32         loc.x += 50;
33         loc.y += 50;
34     }
35     }
36 }