pjs/plugin/oji/MRJ/testing/SwingApplet/TestPanel.java

17 строки
275 B
Java

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TestPanel extends JPanel
{
public TestPanel()
{
setLayout(new GridLayout(3,2));
for(int ctr=1; ctr<=3; ctr++ )
{
add( new JLabel("Label " + ctr));
add( new JTextField());
}
}
}