Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 556478 ... vs e90cb4 ... for ruralHouses client/src/gui/AdminMenuGUI.java

Diff revisions: vs.
  @@ -10,6 +10,7 @@
10 10 import javax.swing.JFrame;
11 11 import javax.swing.JPanel;
12 12 import javax.swing.border.EmptyBorder;
13 + import javax.swing.LayoutStyle.ComponentPlacement;
13 14
14 15 public class AdminMenuGUI extends JFrame {
15 16
  @@ -29,12 +30,13 @@
29 30
30 31 this.setTitle("Administrator Menu");
31 32 this.getContentPane().setLayout(null);
32 - setBounds(100, 100, 450, 473);
33 + setBounds(100, 100, 450, 500);
33 34 contentPane = new JPanel();
34 35 contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
35 36 setContentPane(contentPane);
36 37 //TODO BOTH BUTTONS ARE TO MODIFY
37 38 JButton btnAdd = new JButton("Add requests");
39 + btnAdd.setBounds(120, 67, 164, 81);
38 40 btnAdd.addActionListener(new ActionListener() {
39 41 public void actionPerformed(ActionEvent e) {
40 42 Frame a = new listOfAdditionRequestsGUI();
  @@ -43,6 +45,7 @@
43 45 });
44 46
45 47 JButton btnDel = new JButton("Delete Requests");
48 + btnDel.setBounds(120, 159, 164, 73);
46 49 btnDel.addActionListener(new ActionListener() {
47 50 public void actionPerformed(ActionEvent e) {
48 51 Frame a = new listOfRemovalRequestsGUI();
  @@ -51,34 +54,26 @@
51 54 });
52 55
53 56 JButton btnOwneraddition = new JButton("OwnerAddition");
57 + btnOwneraddition.setBounds(120, 243, 164, 73);
54 58 btnOwneraddition.addActionListener(new ActionListener() {
55 59 public void actionPerformed(ActionEvent e) {
56 60 Frame a = new listOfOwnerAddittionRequests();
57 61 a.setVisible(true);
58 62 }
59 63 });
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);
64 + contentPane.setLayout(null);
65 + contentPane.add(btnOwneraddition);
66 + contentPane.add(btnDel);
67 + contentPane.add(btnAdd);
68 +
69 + JButton btnOwnerDeletion = new JButton("Owner Deletion");
70 + btnOwnerDeletion.setBounds(120, 331, 164, 73);
71 + btnOwnerDeletion.addActionListener(new ActionListener() {
72 + public void actionPerformed(ActionEvent e) {
73 + Frame a = new DeleteOwnerGUI();
74 + a.setVisible(true);
75 + }
76 + });
77 + contentPane.add(btnOwnerDeletion);
83 78 }
84 79 }