Danyl's Posts
Nairaland Forum › Danyl's Profile › Danyl's Posts
1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 (of 44 pages)
@sayomarvel and skydancer, as regards the program, i want to implement this functionality such that when the the admin logging that is when the other tabs will be visible and active for registration and performing other activities with the software. but this is the code i have so far, tis code shows the tabs that i want to be on the application, and am still going to make other components to be active on each tab,the GUI but so far i want. import javax.swing.*; import java.awt.event.*; import java.util.*; import java.io.*; import java.awt.*; import java.sql.*; import java.net.*; public class PatManager extends JFrame implements ActionListener,Serializable,ItemListener{ //initializing panels Panel p1=new Panel(); Panel p2=new Panel(); Panel p3 =new Panel(); Panel p4=new Panel(); Panel p5=new Panel(); //initializing the string array object for sex, no of children,religion String[] sex={"Male","Female"}; String[]religion={"Christianity","Islam","Traditional","Hinduism","Buddhisim"}; String[]nofc={"1-4","5-10","11-15","16-20"}; //declaring the socket and serversocket object Socket socket; ServerSocket srv; //declaring the buttons JButton submit,exit,update,login,searchRecords,browse,brws,brw; //initializing the tabs JTabbedPane tab=new JTabbedPane(JTabbedPane.TOP,JTabbedPane.SCROLL_TAB_LAYOUT); //declaring the labels JLabel crdno,sname,fname,dob,sx,nochild,relig,caddr,raddr,phnoI,phnII,docId,password; //declaring the Textfields JTextField f1,f2,f3,f4,f5,f6,f7,f8,f9,f0,f11,f12,f13,f14,f15,f16; JPasswordField pasw; //declaing the textareas JTextArea a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16; //declaring image objects for the file class Image img; //declaring the file class File file; public PatManager(){ super("Hospital Patient Manager" ;setSize(350,500); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); GridLayout grid5=new GridLayout(16,2); GridLayout grid4=new GridLayout(16,2); GridLayout grid3=new GridLayout(16,2); GridLayout grid2=new GridLayout(8,1); GridLayout grid1=new GridLayout(2,2); p4.setLayout(grid2); //initializing the buttons submit=new JButton("Submit" ;exit=new JButton("Exit" ;update=new JButton("Update" ;searchRecords=new JButton("Search Records" ;browse=new JButton("Browse" ;brws=new JButton("Browse" ;brw=new JButton("Browse" ;//initializing the labels crdno=new JLabel("Card Number" ;sname=new JLabel("Surname" ;fname=new JLabel("First Name" ;docId=new JLabel("Doctor's ID" ;password=new JLabel("Password" ;//initializing textfields f1=new JTextField(20); f2=new JTextField(20); f3=new JTextField(20); f4=new JTextField(20); f5=new JTextField(20); f6=new JTextField(20); f7=new JTextField(20); f8=new JTextField(20); f9=new JTextField(20); f0=new JTextField(20); f11=new JTextField(20); f12=new JTextField(20); f13=new JTextField(20); f14=new JTextField(20); f15=new JTextField(20); f16=new JTextField(20); pasw=new JPasswordField(6); //initializing text areas a1=new JTextArea(6,10); a2=new JTextArea(6,10); a=new JTextArea(6,10); a3=new JTextArea(6,10); a4=new JTextArea(6,10); a5=new JTextArea(6,10); a6=new JTextArea(6,10); a7=new JTextArea(6,10); a8=new JTextArea(6,10); a9=new JTextArea(6,10); a10=new JTextArea(6,10); a11=new JTextArea(6,10); a12=new JTextArea(6,10); a13=new JTextArea(6,10); a14=new JTextArea(6,10); a15=new JTextArea(6,10); a16=new JTextArea(6,10); //adding buttons to the actionlistener event class submit.addActionListener(this); exit.addActionListener(this); update.addActionListener(this); searchRecords.addActionListener(this); browse.addActionListener(this); brws.addActionListener(this); brw.addActionListener(this); //adding Components to the panels p4.add(crdno);p4.add(f1); p4.add(sname);p4.add(f2); p4.add(fname);p4.add(f3); p4.add(searchRecords);p4.add(exit); p5.add(docId);p5.add(f4); p5.add(paswd);p5.add(pasw); p5.add(login); //adding panels to tabs tab.addTab("Doctors' Portal",p1); tab.addTab("Patients Registration Portal",p2); tab.addTab("Medical Examination Records",p3); tab.addTab("Archives",p4); tab.addTab("Admin",p5); p5.setVisible(false); this.add(tab); } public void actionPerformed(ActionEvent evt){ Object source=evt.getSource(); if(source==exit){ System.exit(0);} if(source==searchRecords){ } if(source==submit){ } } public void itemStateChanged(ItemEvent ev){ } public static void main(String[]args){ new PatManager(); } } please reply thanks |
@sayomarvel,tnx for response,its like u r talkn about the serialization of objects usn d java.io.* package but as for the my_database.db file u talked abt,is it goin 2b of the java derby embedded database or an xml file formatting. There was a time i sent u a mail concerning a program iam writing,its abt a test engine,i sent u the codes i've written so far btu did not respond,can u recollect pls reply. |
@megaplaza n skydancer,thanx alot,actually,i'm using java,but ryt now am usn my phone to code,i'll be online in few days time then i'll copy the codes n mail it to you. Pls can i have ur email address. |
@megaplaza n skydancer,thanx alot,actually,i'm using java,but ryt now am usn my phone to code,i'll be online in few days time then i'll copy the codes n mail it to you. Pls can i have ur email address. |
Good day house,i want to learn mobile applications development but i dont where to start can anyone give me a good advice on where to start from,iam conversant with java programs such as web apps, servlets nd simple desktop apps nd i do use netbeans and am doing good but anytime i launch the java ME platform,what comes up is not somethn i undrstand,can anyone gv me d resources to start, e-buks nd emulator softwares |
@bossman, if i may ask you a question,i've bn trying to oracle10g XE edition but its quite funny,its nt responding but i want to know if i deploy an application and use d DB for my back end. 2. Is it true that sun java prometric exams are free after the first trial, sun java is now a subsidiary of oracle corp., what is the likelyhood that java programs(enterprise apps) will have to be written in connection with oracle DB as the back end |
Good day,house,iam developn a desktop app for submitting registrant details and updating their details when necessary, the database file will be used for capturing other details such as images. I donot know if the XML implementation can handle d issue. A sample code will be highly appreciated. Thanx |
@poster,as regards the scholarship exam,its comprised of the following:an IQ test;verbal aptitude,logics,quantitative reasoning and world current affairs. I've done the exam,twice n passed the exam but u'v got to prepare well if u are going to pass well and pay less on ur preferred choice of course. I hope u got that |
@poster, for u to compile the servlet, u have to copy the directory address of d installation directory of ur servlet.jar and jsp.jar jar files from the sun java application server software installation into d classpath of ur system or copy d address of the tools.jar file from the lib folder in ur bin folder of the jdk installation and make sure u av a local webserver running ifu want to see the result of ur compilation,or better stil,u cn get netbeans software nd install it,this will help u to compile the servlet for |
@fayimora, what front end are we using,is it a browser based web portal or an online based desktop application,how about the middle-tier and d back end,this tiers specificity are important in order to go about whc technology to use am talkn of the necessity of using an EJB in d middle-tier/business but this might make the programs to be robust and efficient. |
This is quite outstanding, iam in for the project. Am danyl and am opting for the programmer role. I'll rather vote for the online voting system because is one of the most critical softwares we nid in nigeria. And as regaqds the requirement i think interfacing the system with an oracle DB is goin stand out due to the security features of oracle db,more so the voting system can have the following requirement: *take in users registration includin the biometrics *check voters against their unique finger print when voting *print out the records of votes on each party being vote for.(the party is not limited to political parties only) *the system must be secured when its bn run online so i'll getting an SSL layer into the programme thus usn the "https" protocol for the transfer of files. *the system will be able to list all likely voters within a particular region and dr photographs *it'll also update the count of votes automatically *if drs anyone with EJB skills can come in to provide the business logic that will handle the middle-tier of the system architecture & more so what kind of client are we using,a thin or thick client,a web portal or an online-based desktop application. Anyone can add to my comments am open to critisms if any. My email is goldendanyx22@gmail.com |
@dell_net nd fayimora,thanx alot i really ur timely response |
Good day,docs in da house,i know it takes passion,determinatn,courage n perseverance,bt coupled with that,i want to know whc country n whc university has a standard medicine science course with cheap tuition,i wont mind if its in africa here or the bahamas. |
@kol,i nid the mind stuff,here's my email:goldendanyx22@gmail.com |
Cordyceps's an herbal formulated drug that cures a wide spectrum of pathogenic infection nd improves/enhance the body immunity. U can get it from any tiens shop around u,bt first let ur man undrgo a comprehensive test to determine the aetiology(i mean the causes) of his condition |
@poster,the problem is nt with the html code, if try 2 run it with d appletviewer tool of jdk and it display such messages then u nid 2check ur init() method very well u must av omitted smthns or nt included some variables dt needs one time initializatn for d applet 2run properly. |
Helo gurus in da house,iam coding some servlets for a form and i really dont wish to migrate to PHP, i want to develop servlets on the netbeans IDE dt'll submit forms into oracle database but i dont seem to get the argument to the forName() method of d Class class (i mean Class.forName() mthd) & d getConnection() method of the Driver manager class of d java.sql package,cn someone help me out. |
@hostleek,tnx 4ur response. |
Helo nairalanders,pls help me out on ds lil problem. I downloaded the joomla cms zip file software,but i dont know how to instal the joomla to aid my web applicatns developments,in fact am thinking of developn a news site,and i intended to use ds cms.thnx 2 all |
@ibexy very well,am getting it,but if i av to use java servlet or JSPs then i'll have to download the mySQL db,nd install it. Bt the easyphp is working perfectly.it also have d phpmyadmin gui for d administratn of d mysql db. Tnx 4ur help |
@IBEXY,thanx alot,i tot as much but the WAMP server type am usn is an EASYPHP php engine and its bundled with a mySQL db,am stil tryn to get to the root of it nd it cud be used to test web apps just like the WAMP servers.i hope to gv u a contact in d nearest future if i have an extensiv project. Tanx |
@IBEXY,thanx alot, it seems MS-Access db is nt gud for web applications,what do u think abt dat |
Hey broda i nid da buk. My email's goldendanyx22@gmail.com. Thanx alot |
Good day house,i download a zip file of joomla CMS software,and i couldn't find the installer when i unzip the file,pls how can I design dynamic website with full e-commerce potential such as shopping cart features, chatting,scratch card features by using joomla. Though i believe PHP could b used to design shopping cart features bt i want a GUI based software like joomla. Pls help me onhow to implement n use CMS Software. Thanx |
@seun, thanks alot i'll try that website. |
Good day to all,i'm finding this NL software discussions highly interesting bt am having a lil problem with my web components developments,i tried to interface a web form written in html to a microsoft access database bt the details of the forms retrieved are not submitted into d database. I wrote the server side program using java(i.e java servlet),i also want to verify users based on their ID n password but its nt authenticating,so i decided to change my database to MySQL Database can anyone advice on where to download the free open source software of MySQL i mean the website and,if d microsoft access DB Can i nid candid advice on how to modify d servlet in order to perform dis tasks.thanks to all |
The man may b a great philantropist,let him be he can spend his money any how bt $50m no be joke at all. |
The man may b a great philantropist,let him be he can spend his money any how bt $50m no be joke at all. |
@ajistotle i'll suggest that u package ur code's main class and helper classes(if any) into a .jar file then create an .exe version of ur program by using exe4j software jar-exe executable file converter.u are goin to need a manifest file for that.u can create an installer for it using inno-setup compiler and instal it.by so doing u'll have it as a desktop application. I hope that helps |
@pro01 i love ur response,but my submission's that,God is not in most marriages this days, and this accounts for so many miscarriages of marriage. If most marriages cn be like that of abraham & sarah,things wil be beta. Sarah calls her husband 'my lord' yet the love is alwayz n ever strong,if nt for God n real agape love,Abraham would'v consider takn anoda wife b4 Sarah gave him her handmaid. Even the bible says wives respect ur husbands n husbands love ur wife. If women can add those kingly quotes in calling their husbands marriages wil b far better than wat its today. |
You did great bro. Please i'll like to have a look at the scripts.my email ad is:goldendanyx22@gmail.com |
;