@@ -27,16 +27,16 @@ public class AfterLogin extends JFrame implements ActionListener{
2727
2828 String degree []={"B.Tech" ,"B.E" , "Law" , "B.Com" };
2929 String dat []={"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" };
30- String month []={"Jan" ,"Feb" ,"Mar" ,"Apr" ,"May" ,"Jun" ,"Jul" ,"Aug" ,"Sep" ,"Oct" ,"Nov" ,"Dec" };
31- String year []={"1995" ,"1996" ,"1997" ,"1998" ,"1999" ,"2000" ,"2001" ,"2002" ,"2003" ,"2004" ,"2005" };
30+ String month []={"Jan" ,"Feb" ,"Mar" ,"Apr" ,"May" ,"Jun" ,"Jul" ,"Aug" ,"Sep" ,"Oct" ,"Nov" ,"Dec" };
31+ String year []={"1995" ,"1996" ,"1997" ,"1998" ,"1999" ,"2000" ,"2001" ,"2002" ,"2003" ,"2004" ,"2005" };
3232
3333 AfterLogin (String regno ){
34- setTitle ("StudentInfo" );
35- setSize (700 ,600 );
34+ setTitle ("StudentInfo" );
35+ setSize (700 ,600 );
3636 setLayout (null );
37- setVisible (true );
38- setResizable (false );
39- setDefaultCloseOperation (JFrame .HIDE_ON_CLOSE );
37+ setVisible (true );
38+ setResizable (false );
39+ setDefaultCloseOperation (JFrame .HIDE_ON_CLOSE );
4040
4141 //imageicon
4242 ic2 = new ImageIcon ("SASTRALOGO.png" );
@@ -91,35 +91,35 @@ public class AfterLogin extends JFrame implements ActionListener{
9191 //radiobuttons
9292 jrb1 =new JRadioButton ("M" );
9393 jrb1 .setBounds (170 ,270 ,60 ,30 );
94- jrb2 =new JRadioButton ("F" );
94+ jrb2 =new JRadioButton ("F" );
9595 jrb2 .setBounds (230 ,270 ,60 ,30 );
9696 jrb3 = new JRadioButton ("Other" );
9797 jrb3 .setBounds (290 ,270 ,60 ,30 );
98- bg1 =new ButtonGroup ();
99- bg1 .add (jrb1 );
100- bg1 .add (jrb2 );
98+ bg1 =new ButtonGroup ();
99+ bg1 .add (jrb1 );
100+ bg1 .add (jrb2 );
101101 bg1 .add (jrb3 );
102- add (jrb1 );
103- add (jrb2 );
102+ add (jrb1 );
103+ add (jrb2 );
104104 add (jrb3 );
105105
106106 //combobox
107107 jcmb1 =new JComboBox <String >(degree );
108- jcmb1 .setBounds (170 ,420 ,80 ,30 );
109- add (jcmb1 );
110- jcmb4 =new JComboBox <String >(dat );
111- jcmb4 .setBounds (170 , 220 ,60 ,30 );
112- add (jcmb4 );
113- jcmb5 =new JComboBox <String >(month );
114- jcmb5 .setBounds (230 , 220 ,60 ,30 );
115- add (jcmb5 );
116- jcmb6 =new JComboBox <String >(year );
117- jcmb6 .setBounds (290 , 220 ,60 ,30 );
118- add (jcmb6 );
108+ jcmb1 .setBounds (170 ,420 ,80 ,30 );
109+ add (jcmb1 );
110+ jcmb4 =new JComboBox <String >(dat );
111+ jcmb4 .setBounds (170 , 220 ,60 ,30 );
112+ add (jcmb4 );
113+ jcmb5 =new JComboBox <String >(month );
114+ jcmb5 .setBounds (230 , 220 ,60 ,30 );
115+ add (jcmb5 );
116+ jcmb6 =new JComboBox <String >(year );
117+ jcmb6 .setBounds (290 , 220 ,60 ,30 );
118+ add (jcmb6 );
119119
120120 //imageicon
121- ic1 = new ImageIcon ("login.jpg" );
122- lbc = new JLabel (ic1 );
121+ ic1 = new ImageIcon ("login.jpg" );
122+ lbc = new JLabel (ic1 );
123123 lbc .setBounds (370 ,150 ,300 ,200 );
124124 add (lbc );
125125
@@ -145,7 +145,7 @@ public class AfterLogin extends JFrame implements ActionListener{
145145 public void actionPerformed (ActionEvent ae ){
146146 if (ae .getSource () == AddRecord ){
147147 f =new JFrame ();
148- JOptionPane .showMessageDialog (f ,"Details Successfully Added!" );
148+ JOptionPane .showMessageDialog (f ,"Details Successfully Added!" );
149149 }
150150 else if (ae .getSource () == logout ){
151151 dispose ();
@@ -156,12 +156,12 @@ else if(ae.getSource() == Clear){
156156 tcon .setText ("" );
157157 tc .setText ("" );
158158 f =new JFrame ();
159- JOptionPane .showMessageDialog (f ,"Data Cleared!" );
159+ JOptionPane .showMessageDialog (f ,"Data Cleared!" );
160160 }
161161 else if (ae .getSource () == Update ){
162162 f =new JFrame ();
163- JOptionPane .showMessageDialog (f ,"Details Updated!" );
163+ JOptionPane .showMessageDialog (f ,"Details Updated!" );
164164 }
165165
166166 }
167- }
167+ }
0 commit comments