Pārlūkot izejas kodu

Removed useless pack

Supermaniac101 11 gadi atpakaļ
vecāks
revīzija
569a211a7f

+ 0 - 24
src/frames/MainFrame.java

@@ -1,24 +0,0 @@
-package frames;
-
-import javax.swing.JFrame;
-import javax.swing.JPanel;
-
-@SuppressWarnings("serial")
-public class MainFrame extends JFrame{
-	
-		public MainFrame(JPanel panel){
-            
-            if(System.getProperties().getProperty("os.name").equals("Mac OS X")) {
-                System.setProperty("apple.laf.useScreenMenuBar", "true");
-                System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Test");
-            }
-            
-		    this.add(panel);
-		    this.setResizable(true);
-		    this.setBounds(100,100,1440,900);
-		    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
-		    this.setUndecorated(false);
-		    this.setJMenuBar(new MenuBar());
-		    this.setVisible(true);
-		}
-}

+ 0 - 73
src/frames/MenuBar.java

@@ -1,73 +0,0 @@
-package frames;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-
-@SuppressWarnings("serial")
-public class MenuBar extends JMenuBar{
-
-	public MenuBar(){
-		initialize();
-	}
-	
-	private void initialize(){
-		JMenu fileMenu = new JMenu("File");
-        JMenu editMenu = new JMenu("Edit");
-        JMenu viewMenu = new JMenu("View");
-        JMenu helpMenu = new JMenu("Help");
-        this.add(fileMenu);
-        this.add(editMenu);
-        this.add(viewMenu);
-        this.add(helpMenu);
-        
-        JMenuItem newAction = new JMenuItem("New");
-        JMenuItem openAction = new JMenuItem("Open");
-        JMenuItem exitAction = new JMenuItem("Exit");
-        JMenuItem cutAction = new JMenuItem("Cut");
-        JMenuItem copyAction = new JMenuItem("Copy");
-        JMenuItem pasteAction = new JMenuItem("Paste");
-        
-        fileMenu.add(newAction);
-        newAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.out.println("You have clicked on the new action");
-            }
-        });
-        fileMenu.add(openAction);
-        openAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.out.println("You have clicked on the open action");
-            }
-        });
-        fileMenu.addSeparator();
-        fileMenu.add(exitAction);
-        exitAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.exit(0);
-            }
-        });
-        editMenu.add(cutAction);
-        cutAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.out.println("You have clicked on the cut action");
-            }
-        });
-        editMenu.add(copyAction);
-        copyAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.out.println("You have clicked on the copy action");
-            }
-        });
-        editMenu.add(pasteAction);
-        pasteAction.addActionListener(new ActionListener() {
-            public void actionPerformed(ActionEvent arg0) {
-                System.out.println("You have clicked on the paste action");
-            }
-        });
-	}
-	
-}

+ 0 - 13
src/main/Main.java

@@ -1,13 +0,0 @@
-package main;
-
-import frames.MainFrame;
-import panels.MainPanel;
-
-
-public class Main {
-	
-	public static void main(String[] args){
-		new MainFrame(new MainPanel());
-	}
-}
-	

+ 0 - 8
src/panels/AgendaPane.java

@@ -1,8 +0,0 @@
-package panels;
-
-import javax.swing.JPanel;
-
-@SuppressWarnings("serial")
-public class AgendaPane extends JPanel {
-
-}

+ 0 - 10
src/panels/InfoPane.java

@@ -1,10 +0,0 @@
-package panels;
-
-import javax.swing.JPanel;
-
-@SuppressWarnings("serial")
-public class InfoPane extends JPanel{
-	public InfoPane(){
-		
-	}
-}

+ 0 - 14
src/panels/MainPanel.java

@@ -1,14 +0,0 @@
-package panels;
-
-import agenda.Agenda;
-
-import javax.swing.JPanel;
-
-@SuppressWarnings("serial")
-public class MainPanel extends JPanel{
-	public MainPanel(){
-		new InfoPane();
-		new AgendaPane();
-        new Agenda();
-	}
-}