package lt.bit.paveldejimoTaikymas; import javax.swing.*; import java.awt.*; public class Vykdymas { public static void main(String[] args) { JFrame langas=new JFrame("Informacija"); langas.setSize(300,300); langas.setLocationRelativeTo(null); //langas.setBounds(100,600,300,300); JPanel ivedimas=new JPanel(new GridLayout(3,2,10,10)); ivedimas.setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); JTextField vardas=new JTextField(30); JTextField pavarde=new JTextField(30); JTextField amzius=new JTextField(30); ivedimas.add(new JRedLabel("Vardas:")) ; ivedimas.add(vardas); ivedimas.add(new JRedLabel("Pavardė:")); ivedimas.add(pavarde); ivedimas.add(new JBlueLabel("Amžius: ")); ivedimas.add(amzius); langas.add(ivedimas, BorderLayout.PAGE_START); langas.setVisible(true); } }