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