Create DrukujBilet.java
This commit is contained in:
parent
8b11873d66
commit
8eeb6e1709
70
apka_StolowkaZPM/src/DrukujBilet.java
Normal file
70
apka_StolowkaZPM/src/DrukujBilet.java
Normal file
@ -0,0 +1,70 @@
|
||||
import java.awt.EventQueue;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import java.awt.Component;
|
||||
import javax.swing.Box;
|
||||
import java.awt.Dimension;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JToggleButton;
|
||||
|
||||
public class DrukujBilet {
|
||||
|
||||
private JFrame frame;
|
||||
|
||||
/**
|
||||
* Launch the application.
|
||||
*/
|
||||
public static void oknoDrukujBilet() {
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
DrukujBilet window = new DrukujBilet();
|
||||
window.frame.setVisible(true);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the application.
|
||||
*/
|
||||
public DrukujBilet() {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the contents of the frame.
|
||||
*/
|
||||
private void initialize() {
|
||||
frame = new JFrame();
|
||||
frame.setBounds(100, 100, 450, 300);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.getContentPane().setLayout(null);
|
||||
|
||||
Component rigidArea = Box.createRigidArea(new Dimension(20, 20));
|
||||
rigidArea.setBounds(76, 66, 287, 162);
|
||||
frame.getContentPane().add(rigidArea);
|
||||
|
||||
JLabel lblMenu = new JLabel("Menu");
|
||||
lblMenu.setBounds(43, 24, 56, 16);
|
||||
frame.getContentPane().add(lblMenu);
|
||||
|
||||
JToggleButton tglbtnNewToggleButton = new JToggleButton("New toggle button");
|
||||
tglbtnNewToggleButton.setBounds(12, 66, 137, 25);
|
||||
frame.getContentPane().add(tglbtnNewToggleButton);
|
||||
|
||||
JToggleButton tglbtnNewToggleButton_1 = new JToggleButton("New toggle button");
|
||||
tglbtnNewToggleButton_1.setBounds(283, 66, 137, 25);
|
||||
frame.getContentPane().add(tglbtnNewToggleButton_1);
|
||||
|
||||
JToggleButton tglbtnNewToggleButton_2 = new JToggleButton("New toggle button");
|
||||
tglbtnNewToggleButton_2.setBounds(12, 184, 137, 25);
|
||||
frame.getContentPane().add(tglbtnNewToggleButton_2);
|
||||
|
||||
JToggleButton tglbtnNewToggleButton_3 = new JToggleButton("New toggle button");
|
||||
tglbtnNewToggleButton_3.setBounds(283, 184, 137, 25);
|
||||
frame.getContentPane().add(tglbtnNewToggleButton_3);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user