RRRRHHHH_Code
d30bcc8a3c13bbf5144b03a644c1345865aed708
RRRRHHHH_Code / ruralHouses / src / gui / OwnerMenuGUI.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.LayoutStyle.ComponentPlacement; import javax.swing.border.EmptyBorder; import domain.Owner; public class OwnerMenuGUI extends JFrame { /** * */ private static final long serialVersionUID = 1L; private JPanel contentPane; private Owner owner; /** * Create the frame. */ public OwnerMenuGUI(Owner o) { this.setTitle("Owner Menu"); this.getContentPane().setLayout(null); owner = o; setBounds(100, 100, 450, 473); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); JButton btnHouses = new JButton("Houses"); btnHouses.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new HousesRelatedOwnerGUI(owner); a.setVisible(true); } }); JButton btnOffers = new JButton("Offers"); btnOffers.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new OffersRelatedOwnerGUI(owner); a.setVisible(true); } }); JButton btnBookings = new JButton("Bookings"); btnBookings.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Frame a = new listOfOffers(owner); 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.LEADING, false) .addComponent(btnBookings, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnOffers, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE) .addComponent(btnHouses, Alignment.TRAILING, 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(btnHouses, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE) .addGap(58) .addComponent(btnOffers, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE) .addPreferredGap(ComponentPlacement.RELATED, 50, Short.MAX_VALUE) .addComponent(btnBookings, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); contentPane.setLayout(gl_contentPane); } } |
Commits for RRRRHHHH_CoderuralHouses/src/gui/OwnerMenuGUI.java
Revision | Author | Commited | Message |
---|---|---|---|
d30bcc ... Diff | pinene | Wed 20 May, 2015 16:32:33 +0000 | cleaning |
4f8bcc ... Diff | epinzolas001 | Mon 18 May, 2015 09:49:54 +0000 | Merge conflicts solutioned |
6a5d4d ... Diff | camjan | Sun 17 May, 2015 20:35:45 +0000 | Booking confirmation and e-mail service added. Some bugs to be solved. |
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 |
e2ae30 ... Diff | Eneko Pinzolas Murua | Tue 14 Apr, 2015 15:07:35 +0000 | imports leaned |
64482a ... Diff | Eneko Pinzolas Murua | Sat 04 Apr, 2015 12:23:48 +0000 | DeleteOffers and Modify Offers completed, both logic and GUI |
a92725 ... Diff | pinene | Fri 06 Mar, 2015 09:41:12 +0000 | implemented lacking GUIs and corrected errors |
7b7027 ... | pinene | Thu 05 Mar, 2015 12:22:00 +0000 | Owner related new GUI created, some of them are disabled until corresponding logic is created. |