X-Git-Url: https://xp-dev.com/git/RRRRHHHH_Code/blobdiff_plain/8012b0705115c528000283ebc302a16837143d6e..076d768e70e04655a2c343f46d0808c16a27130c:/ruralHouses/src/gui/HousesRelatedOwnerGUI.java diff --git a/ruralHouses/src/gui/HousesRelatedOwnerGUI.java b/ruralHouses/src/gui/HousesRelatedOwnerGUI.java deleted file mode 100644 index 16884c3..0000000 --- a/ruralHouses/src/gui/HousesRelatedOwnerGUI.java +++ /dev/null @@ -1,84 +0,0 @@ -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.Owner; - -public class HousesRelatedOwnerGUI extends JFrame { - - /** - * - */ - private static final long serialVersionUID = 1L; - private JPanel contentPane; - private Owner owner; - /** - * Create the frame. - */ - public HousesRelatedOwnerGUI(Owner o) { - this.getContentPane().setLayout(null); - owner = o; - setBounds(100, 100, 450, 562); - contentPane = new JPanel(); - contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); - setContentPane(contentPane); - - JButton btnCreateHouses = new JButton("Create Request"); - btnCreateHouses.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent arg0) { - Frame a = new RequestNewHouseGUI(owner); - a.setVisible(true); - } - }); - - JButton btnModifyHouses = new JButton("Modify Houses"); - btnModifyHouses.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - - Frame a = new ModifyHouseGUI(owner); - a.setVisible(true); - - } - }); - - JButton btnDeleteHouses = new JButton("Delete Request"); - btnDeleteHouses.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - Frame a = new RequestDeleteHouseGUI(owner); - a.setVisible(true); - } - }); - GroupLayout gl_contentPane = new GroupLayout(contentPane); - gl_contentPane.setHorizontalGroup( - gl_contentPane.createParallelGroup(Alignment.LEADING) - .addGroup(gl_contentPane.createSequentialGroup() - .addGap(110) - .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING) - .addComponent(btnDeleteHouses, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE) - .addComponent(btnModifyHouses, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE) - .addComponent(btnCreateHouses, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE)) - .addGap(121)) - ); - gl_contentPane.setVerticalGroup( - gl_contentPane.createParallelGroup(Alignment.LEADING) - .addGroup(gl_contentPane.createSequentialGroup() - .addGap(88) - .addComponent(btnCreateHouses, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE) - .addGap(40) - .addComponent(btnModifyHouses, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE) - .addGap(39) - .addComponent(btnDeleteHouses, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE) - .addContainerGap(394, Short.MAX_VALUE)) - ); - contentPane.setLayout(gl_contentPane); - } -}