Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard
 
e90cb4313afcb055dc132e18d8f41b9f71370eb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package gui;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.LayoutStyle.ComponentPlacement;

public class AdminMenuGUI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;


	
	/**
	 * Create the frame.
	 */
	public AdminMenuGUI() {
		
		
		this.setTitle("Administrator Menu");
		this.getContentPane().setLayout(null);
		setBounds(100, 100, 450, 500);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		//TODO BOTH BUTTONS ARE TO MODIFY
		JButton btnAdd = new JButton("Add requests");
		btnAdd.setBounds(120, 67, 164, 81);
		btnAdd.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new listOfAdditionRequestsGUI();
				a.setVisible(true);
			}
		});
		
		JButton btnDel = new JButton("Delete Requests");
		btnDel.setBounds(120, 159, 164, 73);
		btnDel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new listOfRemovalRequestsGUI();
				a.setVisible(true);
			}
		});
		
		JButton btnOwneraddition = new JButton("OwnerAddition");
		btnOwneraddition.setBounds(120, 243, 164, 73);
		btnOwneraddition.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new listOfOwnerAddittionRequests();
				a.setVisible(true);
			}
		});
		contentPane.setLayout(null);
		contentPane.add(btnOwneraddition);
		contentPane.add(btnDel);
		contentPane.add(btnAdd);
	
		JButton btnOwnerDeletion = new JButton("Owner Deletion");
		btnOwnerDeletion.setBounds(120, 331, 164, 73);
		btnOwnerDeletion.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new DeleteOwnerGUI();
				a.setVisible(true);
			}
		});
		contentPane.add(btnOwnerDeletion);
	}
}

Commits for RRRRHHHH_CoderuralHouses client/src/gui/AdminMenuGUI.java

Diff revisions: vs.
Revision Author Commited Message
e90cb4 ... Diff Diff camjan Tue 19 May, 2015 19:39:31 +0000

Owner deletion added

4f8bcc ... epinzolas001 Mon 18 May, 2015 09:49:54 +0000

Merge conflicts solutioned