Skip to content

Commit 0d32d8f

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 0aa1580 + 5767c61 commit 0d32d8f

2 files changed

Lines changed: 323 additions & 0 deletions

File tree

src/main/java/ui/ViewTeams.form

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="3"/>
6+
</Properties>
7+
<SyntheticProperties>
8+
<SyntheticProperty name="formSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,-59,0,0,3,48"/>
9+
<SyntheticProperty name="formSizePolicy" type="int" value="0"/>
10+
<SyntheticProperty name="generateSize" type="boolean" value="true"/>
11+
<SyntheticProperty name="generateCenter" type="boolean" value="true"/>
12+
</SyntheticProperties>
13+
<AuxValues>
14+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
15+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
16+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
17+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
18+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
19+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
20+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="3"/>
21+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
22+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
23+
</AuxValues>
24+
25+
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
26+
<Property name="useNullLayout" type="boolean" value="false"/>
27+
</Layout>
28+
<SubComponents>
29+
<Component class="javax.swing.JButton" name="btnBackButton">
30+
<Properties>
31+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
32+
<Font name="sansserif" size="50" style="1"/>
33+
</Property>
34+
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
35+
<Image iconType="3" name="/arrow-big-left.png"/>
36+
</Property>
37+
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
38+
<Border info="null"/>
39+
</Property>
40+
<Property name="horizontalTextPosition" type="int" value="0"/>
41+
</Properties>
42+
<Events>
43+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBackButtonActionPerformed"/>
44+
</Events>
45+
<Constraints>
46+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
47+
<AbsoluteConstraints x="40" y="30" width="50" height="44"/>
48+
</Constraint>
49+
</Constraints>
50+
</Component>
51+
<Component class="javax.swing.JLabel" name="jLabel1">
52+
<Properties>
53+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
54+
<Font name="Comic Sans MS" size="30" style="1"/>
55+
</Property>
56+
<Property name="horizontalAlignment" type="int" value="0"/>
57+
<Property name="text" type="java.lang.String" value="Teams Workspace"/>
58+
</Properties>
59+
<Constraints>
60+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
61+
<AbsoluteConstraints x="-10" y="20" width="787" height="54"/>
62+
</Constraint>
63+
</Constraints>
64+
</Component>
65+
<Component class="javax.swing.JLabel" name="jLabel2">
66+
<Properties>
67+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
68+
<Font name="Calibri" size="22" style="2"/>
69+
</Property>
70+
<Property name="horizontalAlignment" type="int" value="0"/>
71+
<Property name="text" type="java.lang.String" value="This page provides an overview of all teams currently in operation."/>
72+
</Properties>
73+
<Constraints>
74+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
75+
<AbsoluteConstraints x="0" y="90" width="800" height="-1"/>
76+
</Constraint>
77+
</Constraints>
78+
</Component>
79+
<Component class="javax.swing.JButton" name="jButton1">
80+
<Properties>
81+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
82+
<Font name="Arial" size="20" style="1"/>
83+
</Property>
84+
<Property name="text" type="java.lang.String" value="Add New Team"/>
85+
</Properties>
86+
<Events>
87+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
88+
</Events>
89+
<Constraints>
90+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
91+
<AbsoluteConstraints x="310" y="600" width="180" height="40"/>
92+
</Constraint>
93+
</Constraints>
94+
</Component>
95+
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
96+
<AuxValues>
97+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
98+
</AuxValues>
99+
<Constraints>
100+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
101+
<AbsoluteConstraints x="50" y="190" width="700" height="400"/>
102+
</Constraint>
103+
</Constraints>
104+
105+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
106+
<SubComponents>
107+
<Component class="javax.swing.JTable" name="jTable1">
108+
<Properties>
109+
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
110+
<Table columnCount="4" rowCount="0">
111+
<Column editable="true" title="ID" type="java.lang.Object"/>
112+
<Column editable="true" title="TEAM NAME " type="java.lang.Object"/>
113+
<Column editable="true" title="CREATED AT" type="java.lang.Object"/>
114+
<Column editable="true" title="UPDATED AT" type="java.lang.Object"/>
115+
</Table>
116+
</Property>
117+
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
118+
<TableColumnModel selectionModel="0">
119+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
120+
<Title/>
121+
<Editor/>
122+
<Renderer/>
123+
</Column>
124+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
125+
<Title/>
126+
<Editor/>
127+
<Renderer/>
128+
</Column>
129+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
130+
<Title/>
131+
<Editor/>
132+
<Renderer/>
133+
</Column>
134+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
135+
<Title/>
136+
<Editor/>
137+
<Renderer/>
138+
</Column>
139+
</TableColumnModel>
140+
</Property>
141+
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
142+
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
143+
</Property>
144+
</Properties>
145+
</Component>
146+
</SubComponents>
147+
</Container>
148+
<Component class="javax.swing.JTextField" name="jTextField1">
149+
<Properties>
150+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
151+
<Font name="Calibri" size="18" style="2"/>
152+
</Property>
153+
<Property name="horizontalAlignment" type="int" value="2"/>
154+
<Property name="text" type="java.lang.String" value="Search Team"/>
155+
</Properties>
156+
<Constraints>
157+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
158+
<AbsoluteConstraints x="240" y="130" width="270" height="40"/>
159+
</Constraint>
160+
</Constraints>
161+
</Component>
162+
<Component class="javax.swing.JButton" name="jButton2">
163+
<Properties>
164+
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
165+
<Image iconType="3" name="/search.png"/>
166+
</Property>
167+
</Properties>
168+
<Constraints>
169+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
170+
<AbsoluteConstraints x="530" y="130" width="40" height="40"/>
171+
</Constraint>
172+
</Constraints>
173+
</Component>
174+
<Component class="javax.swing.JLabel" name="jLabel3">
175+
<Properties>
176+
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
177+
<Image iconType="3" name="/TeamBG.jpg"/>
178+
</Property>
179+
</Properties>
180+
<Constraints>
181+
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
182+
<AbsoluteConstraints x="0" y="0" width="-1" height="-1"/>
183+
</Constraint>
184+
</Constraints>
185+
</Component>
186+
</SubComponents>
187+
</Form>

src/main/java/ui/ViewTeams.java

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
4+
*/
5+
package ui;
6+
/**
7+
*
8+
* @author Rob
9+
*/
10+
public class ViewTeams extends javax.swing.JFrame {
11+
12+
private static final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(ViewTeams.class.getName());
13+
14+
/**
15+
* Creates new form ViewTeams
16+
*/
17+
public ViewTeams() {
18+
initComponents();
19+
}
20+
21+
/**
22+
* This method is called from within the constructor to initialize the form.
23+
* WARNING: Do NOT modify this code. The content of this method is always
24+
* regenerated by the Form Editor.
25+
*/
26+
@SuppressWarnings("unchecked")
27+
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
28+
private void initComponents() {
29+
30+
btnBackButton = new javax.swing.JButton();
31+
jLabel1 = new javax.swing.JLabel();
32+
jLabel2 = new javax.swing.JLabel();
33+
jButton1 = new javax.swing.JButton();
34+
jScrollPane1 = new javax.swing.JScrollPane();
35+
jTable1 = new javax.swing.JTable();
36+
jTextField1 = new javax.swing.JTextField();
37+
jButton2 = new javax.swing.JButton();
38+
jLabel3 = new javax.swing.JLabel();
39+
40+
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
41+
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
42+
43+
btnBackButton.setFont(new java.awt.Font("sansserif", 1, 50)); // NOI18N
44+
btnBackButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/arrow-big-left.png"))); // NOI18N
45+
btnBackButton.setBorder(null);
46+
btnBackButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
47+
btnBackButton.addActionListener(this::btnBackButtonActionPerformed);
48+
getContentPane().add(btnBackButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 30, 50, 44));
49+
50+
jLabel1.setFont(new java.awt.Font("Comic Sans MS", 1, 30)); // NOI18N
51+
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
52+
jLabel1.setText("Teams Workspace");
53+
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(-10, 20, 787, 54));
54+
55+
jLabel2.setFont(new java.awt.Font("Calibri", 2, 22)); // NOI18N
56+
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
57+
jLabel2.setText("This page provides an overview of all teams currently in operation.");
58+
getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 800, -1));
59+
60+
jButton1.setFont(new java.awt.Font("Arial", 1, 20)); // NOI18N
61+
jButton1.setText("Add New Team");
62+
jButton1.addActionListener(this::jButton1ActionPerformed);
63+
getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 600, 180, 40));
64+
65+
jTable1.setModel(new javax.swing.table.DefaultTableModel(
66+
new Object [][] {
67+
68+
},
69+
new String [] {
70+
"ID", "TEAM NAME ", "CREATED AT", "UPDATED AT"
71+
}
72+
));
73+
jScrollPane1.setViewportView(jTable1);
74+
75+
getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 190, 700, 400));
76+
77+
jTextField1.setFont(new java.awt.Font("Calibri", 2, 18)); // NOI18N
78+
jTextField1.setHorizontalAlignment(javax.swing.JTextField.LEFT);
79+
jTextField1.setText("Search Team");
80+
getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 130, 270, 40));
81+
82+
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/search.png"))); // NOI18N
83+
getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 130, 40, 40));
84+
85+
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TeamBG.jpg"))); // NOI18N
86+
getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
87+
88+
setSize(new java.awt.Dimension(816, 709));
89+
setLocationRelativeTo(null);
90+
}// </editor-fold>//GEN-END:initComponents
91+
92+
private void btnBackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBackButtonActionPerformed
93+
// TODO add your handling code here:
94+
}//GEN-LAST:event_btnBackButtonActionPerformed
95+
96+
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
97+
// TODO add your handling code here:
98+
}//GEN-LAST:event_jButton1ActionPerformed
99+
100+
/**
101+
* @param args the command line arguments
102+
*/
103+
public static void main(String args[]) {
104+
/* Set the Nimbus look and feel */
105+
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
106+
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
107+
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
108+
*/
109+
try {
110+
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
111+
if ("Nimbus".equals(info.getName())) {
112+
javax.swing.UIManager.setLookAndFeel(info.getClassName());
113+
break;
114+
}
115+
}
116+
} catch (ReflectiveOperationException | javax.swing.UnsupportedLookAndFeelException ex) {
117+
logger.log(java.util.logging.Level.SEVERE, null, ex);
118+
}
119+
//</editor-fold>
120+
121+
/* Create and display the form */
122+
java.awt.EventQueue.invokeLater(() -> new ViewTeams().setVisible(true));
123+
}
124+
125+
// Variables declaration - do not modify//GEN-BEGIN:variables
126+
private javax.swing.JButton btnBackButton;
127+
private javax.swing.JButton jButton1;
128+
private javax.swing.JButton jButton2;
129+
private javax.swing.JLabel jLabel1;
130+
private javax.swing.JLabel jLabel2;
131+
private javax.swing.JLabel jLabel3;
132+
private javax.swing.JScrollPane jScrollPane1;
133+
private javax.swing.JTable jTable1;
134+
private javax.swing.JTextField jTextField1;
135+
// End of variables declaration//GEN-END:variables
136+
}

0 commit comments

Comments
 (0)