
Code: Zaznacz cały
package przesztxt;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class PrzeszTxt extends JFrame{
public PrzeszTxt ()
{
initComponents();
}
public void initComponents ()
{
this.setTitle("Pole teksowe siała bab mak bo tak");
this.setBounds(300,300,300,300);
this.getContentPane().add(obszarTekstowy);
this.setDefaultCloseOperation(3);
}
private JTextArea obszarTekstowy = new JTextArea ();
private JScrollPane obszarPrzewijania = new JScrollPane(obszarTekstowy);
public static void main(String[] args)
{
new PrzeszTxt().setVisible(true);
}
}