Repository navigation
Expand file tree
/
Copy pathManagePropertyListing.java
More file actions
171 lines (150 loc) · 6.77 KB
/
Copy pathManagePropertyListing.java
File metadata and controls
171 lines (150 loc) · 6.77 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import javax.swing.*;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.Color;
import java.awt.Dimension;
/**
*
* @author thesc
*/
public class ManagePropertyListing extends javax.swing.JPanel { //View class for individual property listings in Manage Property Page. Generated using NetBeans
JLabel propertyActivationLabel = new JLabel();
/**
* Creates new form ManageSpecificPropertyPage
*/
public ManagePropertyListing() {
setBackground(Color.WHITE);
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
projectNameLabel = new javax.swing.JLabel();
projectNameLabel.setBounds(127, 11, 201, 25);
priceTitleLabel = new javax.swing.JLabel();
priceTitleLabel.setBounds(127, 169, 39, 20);
priceLabel = new javax.swing.JLabel();
priceLabel.setBounds(176, 169, 81, 20);
addressTitleLabel = new javax.swing.JLabel();
addressTitleLabel.setBounds(127, 98, 115, 14);
addressLine1Label = new javax.swing.JLabel();
addressLine1Label.setBounds(127, 109, 563, 25);
propertyImageLabel = new javax.swing.JLabel();
propertyImageLabel.setBounds(0, 11, 121, 189);
viewDetailsButton = new javax.swing.JButton();
viewDetailsButton.setBounds(575, 164, 115, 32);
propertyNameLabel = new javax.swing.JLabel();
propertyNameLabel.setBounds(127, 42, 563, 17);
//setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setPreferredSize(new Dimension(693, 200));
//setResizable(false);
projectNameLabel.setFont(new java.awt.Font("Source Serif Pro Black", 0, 18)); // NOI18N
projectNameLabel.setText("Project name");
priceTitleLabel.setFont(new java.awt.Font("Source Serif Pro Black", 0, 14)); // NOI18N
priceTitleLabel.setText("Price:");
priceLabel.setFont(new java.awt.Font("Source Serif Pro Black", 0, 14)); // NOI18N
priceLabel.setText("price");
addressTitleLabel.setText("Address:");
addressLine1Label.setText("line 1");
viewDetailsButton.setText("View details");
// viewDetailsButton.addActionListener(new java.awt.event.ActionListener() {
// public void actionPerformed(java.awt.event.ActionEvent evt) {
// viewDetailsButtonActionPerformed(evt);
// }
// });
propertyNameLabel.setFont(new java.awt.Font("Source Serif Pro Black", 0, 12)); // NOI18N
propertyNameLabel.setText("Property name");
setLayout(null);
add(propertyImageLabel);
add(projectNameLabel);
add(addressLine1Label);
add(priceTitleLabel);
add(priceLabel);
add(propertyNameLabel);
add(addressTitleLabel);
add(viewDetailsButton);
propertyActivationLabel.setBounds(127, 98, 0, 0);
add(propertyActivationLabel);
//pack();
}// </editor-fold>//GEN-END:initComponents
private void viewDetailsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewDetailsButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_viewDetailsButtonActionPerformed
/**
* @param args the command line arguments
*/
// public static void main(String args[]) { //Main method used for testing panel
// /* Set the Nimbus look and feel */
// //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
// /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
// */
// try {
// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
// if ("Nimbus".equals(info.getName())) {
// javax.swing.UIManager.setLookAndFeel(info.getClassName());
// break;
// }
// }
// } catch (ClassNotFoundException ex) {
// java.util.logging.Logger.getLogger(ManagePropertyListing.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
// } catch (InstantiationException ex) {
// java.util.logging.Logger.getLogger(ManagePropertyListing.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
// } catch (IllegalAccessException ex) {
// java.util.logging.Logger.getLogger(ManagePropertyListing.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
// } catch (javax.swing.UnsupportedLookAndFeelException ex) {
// java.util.logging.Logger.getLogger(ManagePropertyListing.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
// }
// //</editor-fold>
// //</editor-fold>
// /* Create and display the form */
// java.awt.EventQueue.invokeLater(new Runnable() {
// public void run() {
// new ManagePropertyListing().setVisible(true);
// }
// });
// }
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel addressLine1Label;
private javax.swing.JLabel addressTitleLabel;
private javax.swing.JLabel priceLabel;
private javax.swing.JLabel priceTitleLabel;
private javax.swing.JLabel projectNameLabel;
private javax.swing.JLabel propertyImageLabel;
private javax.swing.JLabel propertyNameLabel;
private javax.swing.JButton viewDetailsButton;
// End of variables declaration//GEN-END:variables
//Getters and setters for components
public javax.swing.JLabel getAddressLine1Label() {
return addressLine1Label;
}
public javax.swing.JLabel getAddressTitleLabel() {
return addressTitleLabel;
}
public javax.swing.JLabel getPriceLabel() {
return priceLabel;
}
public javax.swing.JLabel getPriceTitleLabel() {
return priceTitleLabel;
}
public javax.swing.JLabel getProjectNameLabel() {
return projectNameLabel;
}
public javax.swing.JLabel getPropertyImageLabel() {
return propertyImageLabel;
}
public javax.swing.JLabel getPropertyNameLabel() {
return propertyNameLabel;
}
public JLabel getPropertyActivationLabel() {
return propertyActivationLabel;
}
public javax.swing.JButton getViewDetailsButton() {
return viewDetailsButton;
}
}