Commit 81b7fdf6 by Patryk Czarnik

swing - startujemy

parent b0b4d458
package swing.podstawy;
import javax.swing.JFrame;
public class Okno0 {
public static void main(String[] args) {
JFrame okno = new JFrame();
okno.setVisible(true);
}
}
package swing.podstawy;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class Okno1 {
public static void main(String[] args) {
JFrame okno = new JFrame("Nasza apka");
okno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
okno.setSize(600, 400);
JLabel label = new JLabel("Hello world");
okno.add(label);
okno.setVisible(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment