01: /*
02: * Copyright 2007, Maxim Zakharenkov
03: * All rights reserved.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18: *
19: * $Header: /cvs/swingexplorer/test/test/FrameTest.java,v 1.1 2007/06/27 20:03:59 maxz1 Exp $
20: */
21: package test;
22:
23: import javax.swing.JFrame;
24: import javax.swing.JLabel;
25: import javax.swing.JTextField;
26: import javax.swing.SwingUtilities;
27:
28: public class FrameTest extends JFrame implements Runnable {
29:
30: public static void main(String[] args) {
31: SwingUtilities.invokeLater(new FrameTest());
32: }
33:
34: public void run() {
35: setBounds(100, 100, 100, 100);
36: setVisible(true);
37:
38: add(new JLabel("Hello"));
39: add(new JTextField("Hello"));
40: }
41: }
42:
43: /*
44: * $Log: FrameTest.java,v $
45: * Revision 1.1 2007/06/27 20:03:59 maxz1
46: * new
47: *
48: */
|