import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import javax.swing.JPanel;
public class dodaj {
private JFrame frame;
private JTextField nazwisko;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
dodaj window = new dodaj();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public dodaj() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
ArrayList<String> autorzy = new ArrayList<String>();
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 450, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
nazwisko = new JTextField();
nazwisko.setBounds(201, 34, 86, 20);
frame.getContentPane().add(nazwisko);
nazwisko.setColumns(10);
JLabel lblNazwisko = new JLabel("Nazwisko");
lblNazwisko.setBounds(128, 37, 46, 14);
frame.getContentPane().add(lblNazwisko);
JLabel komunikat = new JLabel("");
komunikat.setBounds(114, 83, 277, 14);
frame.getContentPane().add(komunikat);
JButton Dodajautora = new JButton("Dodaj Autora");
Dodajautora.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
// db.addNewAutor(name);
}
;
});
Dodajautora.setBounds(191, 109, 111, 23);
frame.getContentPane().add(Dodajautora);
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}