Subversion Repository Public Repository

Pharmacy_09_03_18

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
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcarepharmacy.view;

import com.bestray.healthcarecommonutil.util.CurvedGradientPanel;
import java.awt.Color;

/**
 *
 * @author user3
 */
public class PharmacySetupPanel extends CurvedGradientPanel {

    /**
     * Creates new form PharmacySetupPanel
     */
    public PharmacySetupPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Inventory_label = new javax.swing.JLabel();
        stokiest_label = new javax.swing.JLabel();
        pharmacySetUpDisplayPanel = new javax.swing.JPanel();

        Inventory_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        Inventory_label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Inventory_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/inventory 64X64.png"))); // NOI18N
        Inventory_label.setText("Inventory Master");
        Inventory_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        Inventory_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        Inventory_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Inventory_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                Inventory_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                Inventory_labelMouseReleased(evt);
            }
        });

        stokiest_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        stokiest_label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        stokiest_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/stockist 64X64.png"))); // NOI18N
        stokiest_label.setText("Stockist Master");
        stokiest_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        stokiest_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        stokiest_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                stokiest_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                stokiest_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                stokiest_labelMouseReleased(evt);
            }
        });

        pharmacySetUpDisplayPanel.setOpaque(false);
        pharmacySetUpDisplayPanel.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(Inventory_label, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(stokiest_label, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 572, Short.MAX_VALUE))
                    .addComponent(pharmacySetUpDisplayPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {Inventory_label, stokiest_label});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(stokiest_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Inventory_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(17, 17, 17)
                .addComponent(pharmacySetUpDisplayPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void Inventory_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Inventory_labelMouseClicked
        pharmacySetUpDisplayPanel.removeAll();
        pharmacySetUpDisplayPanel.updateUI();
        pharmacySetUpDisplayPanel.setBackground(Color.WHITE);
        pharmacySetUpDisplayPanel.add(new InventoryMasterPanel(),java.awt.BorderLayout.CENTER);
        pharmacySetUpDisplayPanel.setVisible(true);
    }//GEN-LAST:event_Inventory_labelMouseClicked

    private void Inventory_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Inventory_labelMousePressed
        Inventory_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_Inventory_labelMousePressed

    private void Inventory_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Inventory_labelMouseReleased
        Inventory_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_Inventory_labelMouseReleased

    private void stokiest_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stokiest_labelMouseClicked
        pharmacySetUpDisplayPanel.removeAll();
        pharmacySetUpDisplayPanel.updateUI();
        pharmacySetUpDisplayPanel.setBackground(Color.WHITE);
        pharmacySetUpDisplayPanel.add(new StockiestMasterPanel(),java.awt.BorderLayout.CENTER);
        pharmacySetUpDisplayPanel.setVisible(true);
    }//GEN-LAST:event_stokiest_labelMouseClicked

    private void stokiest_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stokiest_labelMousePressed
        stokiest_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_stokiest_labelMousePressed

    private void stokiest_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_stokiest_labelMouseReleased
        stokiest_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_stokiest_labelMouseReleased

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Inventory_label;
    private javax.swing.JPanel pharmacySetUpDisplayPanel;
    private javax.swing.JLabel stokiest_label;
    // End of variables declaration//GEN-END:variables
}

Commits for Pharmacy_09_03_18/Dr Gyana ProjectSpace/DrGyanaPharmacy/src/main/java/com/bestray/healthcarepharmacy/view/PharmacySetupPanel.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:30:57 +0000