Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions d30bcc ... vs ccac99 ... for ruralHouses/src/gui/AdminMenuGUI.java

Diff revisions: vs.
  @@ -4,8 +4,6 @@
4 4 import java.awt.event.ActionEvent;
5 5 import java.awt.event.ActionListener;
6 6
7 - import javax.swing.GroupLayout;
8 - import javax.swing.GroupLayout.Alignment;
9 7 import javax.swing.JButton;
10 8 import javax.swing.JFrame;
11 9 import javax.swing.JPanel;
  @@ -29,12 +27,13 @@
29 27
30 28 this.setTitle("Administrator Menu");
31 29 this.getContentPane().setLayout(null);
32 - setBounds(100, 100, 450, 473);
30 + setBounds(100, 100, 450, 500);
33 31 contentPane = new JPanel();
34 32 contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
35 33 setContentPane(contentPane);
36 34 //TODO BOTH BUTTONS ARE TO MODIFY
37 35 JButton btnAdd = new JButton("Add requests");
36 + btnAdd.setBounds(120, 67, 164, 81);
38 37 btnAdd.addActionListener(new ActionListener() {
39 38 public void actionPerformed(ActionEvent e) {
40 39 Frame a = new listOfAdditionRequestsGUI();
  @@ -43,6 +42,7 @@
43 42 });
44 43
45 44 JButton btnDel = new JButton("Delete Requests");
45 + btnDel.setBounds(120, 159, 164, 73);
46 46 btnDel.addActionListener(new ActionListener() {
47 47 public void actionPerformed(ActionEvent e) {
48 48 Frame a = new listOfRemovalRequestsGUI();
  @@ -51,34 +51,26 @@
51 51 });
52 52
53 53 JButton btnOwneraddition = new JButton("OwnerAddition");
54 + btnOwneraddition.setBounds(120, 243, 164, 73);
54 55 btnOwneraddition.addActionListener(new ActionListener() {
55 56 public void actionPerformed(ActionEvent e) {
56 57 Frame a = new listOfOwnerAddittionRequests();
57 58 a.setVisible(true);
58 59 }
59 60 });
60 - GroupLayout gl_contentPane = new GroupLayout(contentPane);
61 - gl_contentPane.setHorizontalGroup(
62 - gl_contentPane.createParallelGroup(Alignment.LEADING)
63 - .addGroup(gl_contentPane.createSequentialGroup()
64 - .addGap(115)
65 - .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false)
66 - .addComponent(btnOwneraddition, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
67 - .addComponent(btnDel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
68 - .addComponent(btnAdd, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))
69 - .addContainerGap(145, Short.MAX_VALUE))
70 - );
71 - gl_contentPane.setVerticalGroup(
72 - gl_contentPane.createParallelGroup(Alignment.LEADING)
73 - .addGroup(gl_contentPane.createSequentialGroup()
74 - .addGap(62)
75 - .addComponent(btnAdd, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
76 - .addGap(58)
77 - .addComponent(btnDel, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
78 - .addGap(52)
79 - .addComponent(btnOwneraddition, GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE)
80 - .addContainerGap())
81 - );
82 - contentPane.setLayout(gl_contentPane);
61 + contentPane.setLayout(null);
62 + contentPane.add(btnOwneraddition);
63 + contentPane.add(btnDel);
64 + contentPane.add(btnAdd);
65 +
66 + JButton btnOwnerDeletion = new JButton("Owner Deletion");
67 + btnOwnerDeletion.setBounds(120, 331, 164, 73);
68 + btnOwnerDeletion.addActionListener(new ActionListener() {
69 + public void actionPerformed(ActionEvent e) {
70 + Frame a = new DeleteOwnerGUI();
71 + a.setVisible(true);
72 + }
73 + });
74 + contentPane.add(btnOwnerDeletion);
83 75 }
84 76 }