RRRRHHHH_Code
ccac9974c8183f7f0d30e8cabd84ee0386e8cd97
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
package gui; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import domain.Booking; public class BookRuralHouseConfirmationWindow extends JFrame { private static final long serialVersionUID = 1L; private JLabel jLabel1 = new JLabel(); private JTextField jTextField1 = new JTextField(); private JLabel jLabel2 = new JLabel(); private JTextField jTextField2 = new JTextField(); private JLabel jLabel3 = new JLabel(); private JButton jButton1 = new JButton(); private JLabel jLabel4 = new JLabel(); private JLabel jLabel5 = new JLabel(); private JTextField jTextField3 = new JTextField(); private JTextField jTextField4 = new JTextField(); public BookRuralHouseConfirmationWindow(Booking book) { try { jbInit(book); } catch(Exception e) { e.printStackTrace(); } } private void jbInit(Booking book) throws Exception { this.getContentPane().setLayout(null); this.setSize(new Dimension(416, 316)); this.setTitle("See Booking Details"); this.setResizable(false); jLabel1.setText("Owner Bank account number:"); jLabel1.setBounds(new Rectangle(20, 20, 200, 25)); jTextField1.setBounds(new Rectangle(225, 20, 165, 25)); jTextField1.setEditable(false); jTextField1.setText(book.getOffer().getRuralHouse().getOwner().getBankAccount()); jLabel2.setText("Booking number:"); jLabel2.setBounds(new Rectangle(20, 60, 130, 25)); jTextField2.setBounds(new Rectangle(225, 60, 165, 25)); jTextField2.setEditable(false); jTextField2.setText(Integer.toString(book.getBookNumber())); jLabel3.setText("You must deposit 20% of the total ammount of a book in the next three days."); jLabel3.setBounds(new Rectangle(20, 105, 370, 25)); jButton1.setText("Close"); jButton1.setBounds(new Rectangle(135, 235, 130, 30)); jButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jButton1_actionPerformed(e); } }); jLabel4.setText("Total:"); jLabel4.setBounds(new Rectangle(70, 140, 85, 25)); jLabel5.setText("Deposit ammount:"); jLabel5.setBounds(new Rectangle(70, 175, 100, 25)); jTextField3.setBounds(new Rectangle(180, 140, 115, 25)); jTextField3.setEditable(false); jTextField3.setText(Float.toString(book.getOffer().getPrice()) + " �"); jTextField4.setBounds(new Rectangle(180, 175, 115, 25)); jTextField4.setEditable(false); jTextField4.setText(Float.toString(book.getOffer().getPrice()*(float)0.2) + " �"); this.getContentPane().add(jTextField4, null); this.getContentPane().add(jTextField3, null); this.getContentPane().add(jLabel5, null); this.getContentPane().add(jLabel4, null); this.getContentPane().add(jButton1, null); this.getContentPane().add(jLabel3, null); this.getContentPane().add(jTextField2, null); this.getContentPane().add(jLabel2, null); this.getContentPane().add(jTextField1, null); this.getContentPane().add(jLabel1, null); } private void jButton1_actionPerformed(ActionEvent e) { this.setVisible(false); } } |
Commits for RRRRHHHH_CoderuralHouses/src/gui/BookRuralHouseConfirmationWindow.java
Revision | Author | Commited | Message |
---|---|---|---|
ccac99 ... Diff | pinene | Wed 20 May, 2015 16:42:17 +0000 | Merge branch ‘master’ of ssh://xp-dev.com/RRRRHHHH_Code Conflicts: |
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 |
e2ae30 ... Diff | Eneko Pinzolas Murua | Tue 14 Apr, 2015 15:07:35 +0000 | imports leaned |
06a849 ... Diff | pinene | Sat 07 Mar, 2015 13:48:38 +0000 | unification with the actual initial project. Some things are new now, but there has been a feature that has been deleted.\n The feature of opening and closing the database per each query/store has been deleted by now |
e0d74d ... | unknown | Thu 26 Feb, 2015 19:24:02 +0000 | Given code uploaded |