Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 5dd541 ... vs 3e4f7e ... for ruralHouses/src/gui/StartWindow.java

Diff revisions: vs.
  @@ -4,7 +4,6 @@
4 4 * @author willCodeForFood
5 5 */
6 6 import exceptions.DB4oManagerCreationException;
7 - import gui.BookRuralHouseGUI;
8 7
9 8 import javax.swing.*;
10 9
  @@ -28,7 +27,6 @@
28 27 private static final long serialVersionUID = 1L;
29 28
30 29 private JPanel jContentPane = null;
31 - private JButton boton1 = null;
32 30 private JButton boton2 = null;
33 31 private JButton boton3 = null;
34 32 private static configuration.ConfigXML c;
  @@ -127,40 +125,16 @@
127 125 */
128 126 private JPanel getJContentPane() {
129 127 if (jContentPane == null) {
130 - GridLayout gridLayout = new GridLayout();
131 - gridLayout.setRows(4);
132 - gridLayout.setColumns(1);
133 128 jContentPane = new JPanel();
134 - jContentPane.setLayout(gridLayout);
129 + jContentPane.setLayout(null);
135 130 jContentPane.add(getLblNewLabel());
136 - jContentPane.add(getBoton2(), null);
137 - jContentPane.add(getBoton3(), null);
138 - jContentPane.add(getBoton1(), null);
131 + jContentPane.add(getBoton2());
132 + jContentPane.add(getBoton3());
139 133 }
140 134 return jContentPane;
141 135 }
142 136
143 137 /**
144 - * This method initializes boton1
145 - *
146 - * @return javax.swing.JButton
147 - */
148 - private JButton getBoton1() {
149 - if (boton1 == null) {
150 - boton1 = new JButton();
151 - boton1.setText("Book rural house");
152 - boton1.addActionListener(new java.awt.event.ActionListener() {
153 - public void actionPerformed(java.awt.event.ActionEvent e) {
154 - // C?digo cedido por la univerdad
155 - JFrame a = new BookRuralHouseGUI();
156 - a.setVisible(true);
157 - }
158 - });
159 - }
160 - return boton1;
161 - }
162 -
163 - /**
164 138 * This method initializes boton2
165 139 *
166 140 * @return javax.swing.JButton
  @@ -168,6 +142,7 @@
168 142 private JButton getBoton2() {
169 143 if (boton2 == null) {
170 144 boton2 = new JButton();
145 + boton2.setBounds(0, 74, 479, 93);
171 146 boton2.setText("Login");
172 147 boton2.addActionListener(new java.awt.event.ActionListener() {
173 148 public void actionPerformed(java.awt.event.ActionEvent e) {
  @@ -188,6 +163,7 @@
188 163 private JButton getBoton3() {
189 164 if (boton3 == null) {
190 165 boton3 = new JButton();
166 + boton3.setBounds(0, 165, 479, 87);
191 167 boton3.setText("Query availability");
192 168 boton3.addActionListener(new java.awt.event.ActionListener() {
193 169 public void actionPerformed(java.awt.event.ActionEvent e) {
  @@ -206,6 +182,7 @@
206 182 private JLabel getLblNewLabel() {
207 183 if (lblNewLabel == null) {
208 184 lblNewLabel = new JLabel("Select option:");
185 + lblNewLabel.setBounds(0, 0, 479, 63);
209 186 lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 13));
210 187 lblNewLabel.setForeground(Color.BLACK);
211 188 lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);