2 *******************************************************************************
3 * Copyright (C) 2004-2010, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
8 package com.ibm.icu.dev.tool.ime;
10 import java.awt.Rectangle;
12 import javax.swing.Box;
13 import javax.swing.JFrame;
14 import javax.swing.JTextField;
15 import javax.swing.WindowConstants;
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);