RRRRHHHH_Code
7bf57b2f0f2b3cf0ae9489a8204918762e64648e
RRRRHHHH_Code / ruralHouses / src / gui / AdminMenuGUI.java
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 80 81 82 83 84 85 86 87 |
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 domain.Administrator; public class AdminMenuGUI extends JFrame { /** * */ private static final long serialVersionUID = 1L; private JPanel contentPane; /** * Create the frame. */ public AdminMenuGUI() { Administrator.getInstance(); this.setTitle("Administrator Menu"); this.getContentPane().setLayout(null); setBounds(100, 100, 450, 473); 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.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new listOfAdditionRequestsGUI(); a.setVisible(true); } }); JButton btnDel = new JButton("Delete Requests"); btnDel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new listOfRemovalRequestsGUI(); a.setVisible(true); } }); JButton btnOwneraddition = new JButton("OwnerAddition"); btnOwneraddition.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new ownerAddittionRequests(); a.setVisible(true); } }); GroupLayout gl_contentPane = new GroupLayout(contentPane); gl_contentPane.setHorizontalGroup( gl_contentPane.createParallelGroup(Alignment.LEADING) .addGroup(gl_contentPane.createSequentialGroup() .addGap(115) .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING, false) .addComponent(btnOwneraddition, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnDel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) .addComponent(btnAdd, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)) .addContainerGap(145, Short.MAX_VALUE)) ); gl_contentPane.setVerticalGroup( gl_contentPane.createParallelGroup(Alignment.LEADING) .addGroup(gl_contentPane.createSequentialGroup() .addGap(62) .addComponent(btnAdd, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE) .addGap(58) .addComponent(btnDel, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE) .addGap(52) .addComponent(btnOwneraddition, GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE) .addContainerGap()) ); contentPane.setLayout(gl_contentPane); } } |
Commits for RRRRHHHH_CoderuralHouses/src/gui/AdminMenuGUI.java
Revision | Author | Commited | Message |
---|---|---|---|
7bf57b ... Diff | camjan | Sun 17 May, 2015 11:59:22 +0000 | Possibility of registering new owners added |
0f75b2 ... Diff | camjan | Sat 16 May, 2015 14:34:49 +0000 | Username is saved hashed and password hashed and salted |
46d6c3 ... Diff | camjan | Wed 15 Apr, 2015 17:08:42 +0000 | Debbugin continues... |
2ac167 ... Diff | Eneko Pinzolas Murua | Wed 15 Apr, 2015 13:53:44 +0000 | admin completed |
e2ae30 ... Diff | Eneko Pinzolas Murua | Tue 14 Apr, 2015 15:07:35 +0000 | imports leaned |
66f0c8 ... | Eneko Pinzolas Murua | Sun 12 Apr, 2015 18:11:42 +0000 | Model modified so that owners now request for a new house insetion or a house removal. Furthermore, all Administrator GUI and bussines logic create. However, Login GUI and BussinesLogic are to be modified so that they integrate Admin identification. |