Skip to content

Commit

Permalink
Change in GUIs
Browse files Browse the repository at this point in the history
  • Loading branch information
niconunez committed Apr 30, 2015
1 parent 7c88da7 commit b633f88
Show file tree
Hide file tree
Showing 53 changed files with 620 additions and 379 deletions.
Binary file modified desktop/classes/.data/desktop.cdi
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$6.class
Binary file not shown.
Binary file added desktop/classes/desktop/Employee$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Finance$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Finance$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Finance$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Finance$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Finance.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory$6.class
Binary file not shown.
Binary file added desktop/classes/desktop/Inventory$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Inventory.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$6.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$8.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$9.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$6.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule$8.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Schedule.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Table.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ViewTable.class
Binary file not shown.
227 changes: 104 additions & 123 deletions desktop/src/desktop/Employee.form

Large diffs are not rendered by default.

169 changes: 83 additions & 86 deletions desktop/src/desktop/Employee.java

Large diffs are not rendered by default.

93 changes: 73 additions & 20 deletions desktop/src/desktop/Finance.form
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Form version="1.5" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="Tabit"/>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="img.getImage()" type="code"/>
</Property>
Expand All @@ -26,22 +27,19 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" pref="296" max="-2" attributes="0"/>
<EmptySpace pref="713" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jSplitPane1" pref="996" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jLabel1" min="-2" pref="296" max="-2" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="jButton1" min="-2" pref="122" max="-2" attributes="0"/>
</Group>
<Component id="jSplitPane1" pref="996" max="32767" attributes="0"/>
</Group>
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
</Group>
Expand All @@ -55,14 +53,22 @@
<EmptySpace min="-2" pref="53" max="-2" attributes="0"/>
<Component id="jSplitPane1" pref="234" max="32767" attributes="0"/>
<EmptySpace min="-2" pref="33" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" pref="46" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="19" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JSplitPane" name="jSplitPane1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder thickness="3"/>
</Border>
</Property>
<Property name="dividerSize" type="int" value="0"/>
</Properties>

<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
<SubComponents>
Expand All @@ -80,6 +86,11 @@
<SubComponents>
<Component class="javax.swing.JTable" name="jTable1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="2" rowCount="4">
<Column editable="false" title="Field" type="java.lang.Object">
Expand All @@ -94,12 +105,12 @@
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
<TableColumnModel selectionModel="0">
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
<Title/>
<Title value="Field"/>
<Editor/>
<Renderer/>
</Column>
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
<Title/>
<Title value="Amount"/>
<Editor/>
<Renderer/>
</Column>
Expand Down Expand Up @@ -130,7 +141,7 @@
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jDesktopPane1" alignment="0" pref="232" max="32767" attributes="0"/>
<Component id="jDesktopPane1" alignment="0" pref="228" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
Expand All @@ -144,31 +155,61 @@
<SubComponents>
<Component class="javax.swing.JButton" name="jButton4">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="99" green="0" red="0" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="14" style="1"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Daily Sales"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout$JLayeredPaneConstraintsDescription">
<JLayeredPaneConstraints x="10" y="20" width="130" height="-1" layer="0" position="-1"/>
<JLayeredPaneConstraints x="20" y="20" width="140" height="40" layer="0" position="-1"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButton5">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="99" green="0" red="0" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="14" style="1"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Weekly Sales"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout$JLayeredPaneConstraintsDescription">
<JLayeredPaneConstraints x="10" y="50" width="130" height="-1" layer="0" position="-1"/>
<JLayeredPaneConstraints x="20" y="90" width="140" height="40" layer="0" position="-1"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButton6">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="99" green="0" red="0" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="14" style="1"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Monthly Sales"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton6ActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JLayeredPaneSupportLayout$JLayeredPaneConstraintsDescription">
<JLayeredPaneConstraints x="10" y="80" width="130" height="-1" layer="0" position="-1"/>
<JLayeredPaneConstraints x="20" y="160" width="140" height="40" layer="0" position="-1"/>
</Constraint>
</Constraints>
</Component>
Expand All @@ -180,8 +221,20 @@
</Container>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="99" green="0" red="0" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="14" style="1"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Back"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
Expand Down
71 changes: 56 additions & 15 deletions desktop/src/desktop/Finance.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
*/
public class Finance extends javax.swing.JFrame {
ImageIcon img = new ImageIcon("C:\\Users\\Nicolas Nunez\\Desktop\\tabit\\desktop\\src\\desktop\\logo.png");
String args[] = {};
/** Creates new form Finance */
public Finance() {

initComponents();
this.setLocationRelativeTo(getRootPane());
}

/** This method is called from within the constructor to
Expand All @@ -34,8 +37,13 @@ private void initComponents() {//GEN-BEGIN:initComponents
jLabel1 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Tabit");
setIconImage(img.getImage());

jSplitPane1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));
jSplitPane1.setDividerSize(0);

jTable1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{"Gross Sales", null},
Expand All @@ -56,19 +64,35 @@ public boolean isCellEditable(int rowIndex, int columnIndex) {
}
});
jScrollPane1.setViewportView(jTable1);
jTable1.getColumnModel().getColumn(0).setHeaderValue("Field");
jTable1.getColumnModel().getColumn(1).setHeaderValue("Amount");

jSplitPane1.setRightComponent(jScrollPane1);

jButton4.setBackground(new java.awt.Color(0, 0, 153));
jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton4.setForeground(new java.awt.Color(255, 255, 255));
jButton4.setText("Daily Sales");
jButton4.setBounds(10, 20, 130, 21);
jButton4.setBounds(20, 20, 140, 40);
jDesktopPane1.add(jButton4, javax.swing.JLayeredPane.DEFAULT_LAYER);

jButton5.setBackground(new java.awt.Color(0, 0, 153));
jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton5.setForeground(new java.awt.Color(255, 255, 255));
jButton5.setText("Weekly Sales");
jButton5.setBounds(10, 50, 130, 21);
jButton5.setBounds(20, 90, 140, 40);
jDesktopPane1.add(jButton5, javax.swing.JLayeredPane.DEFAULT_LAYER);

jButton6.setBackground(new java.awt.Color(0, 0, 153));
jButton6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton6.setForeground(new java.awt.Color(255, 255, 255));
jButton6.setText("Monthly Sales");
jButton6.setBounds(10, 80, 130, 21);
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jButton6.setBounds(20, 160, 140, 40);
jDesktopPane1.add(jButton6, javax.swing.JLayeredPane.DEFAULT_LAYER);

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
Expand All @@ -81,31 +105,38 @@ public boolean isCellEditable(int rowIndex, int columnIndex) {
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
.addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
);

jSplitPane1.setLeftComponent(jPanel1);

jButton1.setBackground(new java.awt.Color(0, 0, 153));
jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton1.setForeground(new java.awt.Color(255, 255, 255));
jButton1.setText("Back");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jLabel1.setText("Tabit - Finances");

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(713, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 996, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jButton1)))))
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 996, Short.MAX_VALUE))
.addGap(28, 28, 28))
);
layout.setVerticalGroup(
Expand All @@ -116,13 +147,23 @@ public boolean isCellEditable(int rowIndex, int columnIndex) {
.addGap(53, 53, 53)
.addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
.addGap(33, 33, 33)
.addComponent(jButton1)
.addGap(44, 44, 44))
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(19, 19, 19))
);

pack();
}//GEN-END:initComponents

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
ManagerProfile.main(args);
super.dispose();
}//GEN-LAST:event_jButton1ActionPerformed

private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButton6ActionPerformed

/**
* @param args the command line arguments
*/
Expand Down
Loading

0 comments on commit b633f88

Please sign in to comment.