Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.GridLayout;
- import javax.swing.*;
- public class MainWindow extends JFrame {
- private JPanel panel1;
- private JButton addNewImageButton;
- private JButton changeExistImageButton;
- private JButton deleteExistImageButton;
- private JButton addExistImageButton;
- private JButton makeBackupButton;
- private JButton loadBackupButton;
- private JButton launchTomcatButton;
- private JButton stopTomcatButton;
- private JList list1;
- private JList list2;
- public MainWindow() {
- super("OSLoader (development version)");
- panel1 = new JPanel();
- panel1.setLayout(new GridLayout(2, 2));
- stopTomcatButton = new JButton("click");
- panel1.add(stopTomcatButton);
- setContentPane(panel1);
- setSize(550, 350);
- setVisible(true);
- }
- public static void main(String[] args) {
- try {
- UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
- } catch (UnsupportedLookAndFeelException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
- new MainWindow();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment