adminis - package conference; import logconf.Login; import...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
package conference; import logconf.Login; import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.sql.*; public class adminis implements ActionListener { Connection con = null; Statement stml = null; ResultSet rs=null; //login z=new login(); public String sds,sd; public JFrame f5,f4=null,fal=null,fuse,floc,fdel,fupd; public JFrame f12=null,f3=null; public JPanel p6=null,p15=null; public JButton b10=null,b11=null,b12,b9,location,userdetails,okp,oku; public JButton creuse=null,moduse=null,okmod=null,deluse=null,okdel=null,backuse=null,logout; public JButton backloc,creloc,delloc,okdelloc,bdet,upconf,okupd; public JTextField roon,loon,uoon,poon,delu,mod,modpa,delr,upc,upcf; public JTextArea ta=null; ////// function public void create_adminFrame() { f3=new JFrame("Admin"); p6=new JPanel(); b9=new JButton("back"); b10=new JButton("view status"); b11=new JButton("confernce room/ location"); b12=new JButton("user details"); logout=new JButton("logout"); logout.addActionListener(this); b9.addActionListener(this); b10.addActionListener(this); b11.addActionListener(this); b12.addActionListener(this); p6.add(b9); p6.add(b10); p6.add(b11); p6.add(b12); p6.add(logout); p6.setBackground(Color.pink); f3.getContentPane().setLayout(new FlowLayout()); f3.getContentPane().setBackground(Color.pink); f3.getContentPane().add(p6); f3.setSize(550,500); f3.setVisible(true); } /////// function public void actionPerformed(ActionEvent evt) { Object ob2=evt.getSource(); if(ob2.equals(b9)) { f3.setVisible(false); sample pax=new sample();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
pax.administrator(); } if(ob2.equals(logout)) { f3.setVisible(false); Login pal=new Login(); pal.log(); } if(ob2.equals(bdet)) { f4.setVisible(false); create_adminFrame(); } /// if(ob2.equals(backuse)) { fal.setVisible(false); create_adminFrame(); } if(ob2.equals(b10)) { f3.setVisible(false); f4=new JFrame("select to view"); location=new JButton("locationdeatils"); userdetails=new JButton("user details"); bdet=new JButton("Back to Admin"); ta=new JTextArea(20,30); JPanel p8=new JPanel(); p15=new JPanel(); p8.setLayout(new FlowLayout()); p8.add(location); p8.add(userdetails); p8.add(bdet); p15.add(ta); bdet.addActionListener(this); location.addActionListener(this); userdetails.addActionListener(this); p15.setBackground(Color.pink); p8.setBackground(Color.pink); f4.getContentPane().setLayout(new FlowLayout()); f4.getContentPane().add(p8); f4.getContentPane().add(p15); f4.getContentPane().setBackground(Color.pink); f4.setSize(500,500); f4.setVisible(true); } if(ob2.equals(location)) { ta.setText(null); view_location(); } if(ob2.equals(userdetails)) { ta.setText(null); view_users(); } ///creating conference rooms
Background image of page 2
if(ob2.equals(b11)) { f3.setVisible(false); floc=new JFrame("Location Operations"); JPanel ploc=new JPanel(); backloc=new JButton("back"); creloc=new JButton("Create new conf room"); upconf=new JButton("Update location"); delloc=new JButton("Delete room"); upconf.addActionListener(this); backloc.addActionListener(this);
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/08/2011 for the course COMPUTERS 100 taught by Professor Sinha during the Spring '05 term at IIT Kanpur.

Page1 / 12

adminis - package conference; import logconf.Login; import...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online