₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,308 members, 8,449,663 topics. Date: Wednesday, 22 July 2026 at 07:48 AM

Toggle theme

Danyl's Posts

Nairaland ForumDanyl's ProfileDanyl's Posts

1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 (of 44 pages)

ProgrammingRe: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by Danyl(op): 5:31pm On Jul 15, 2011
@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"wink;
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"wink;
exit=new JButton("Exit"wink;
update=new JButton("Update"wink;
searchRecords=new JButton("Search Records"wink;
browse=new JButton("Browse"wink;
brws=new JButton("Browse"wink;
brw=new JButton("Browse"wink;

//initializing the labels
crdno=new JLabel("Card Number"wink;
sname=new JLabel("Surname"wink;
fname=new JLabel("First Name"wink;
docId=new JLabel("Doctor's ID"wink;
password=new JLabel("Password"wink;

//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
ProgrammingRe: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by Danyl(op): 11:23am On Jul 14, 2011
@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.
ProgrammingRe: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by Danyl(op): 7:39pm On Jul 12, 2011
@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.
ProgrammingRe: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by Danyl(op): 7:36pm On Jul 12, 2011
@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.
ProgrammingI Want To Learn Mobile Applications Development by Danyl(op): 8:56am On Jul 12, 2011
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
ProgrammingRe: Oracle Vs Sql Server by Danyl(m): 8:32am On Jul 12, 2011
@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
ProgrammingHelo House,how Can I Bundle A Database File Into My Desktop Applicatn by Danyl(op): 8:10am On Jul 12, 2011
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
CareerRe: I Need Guidelines On Niit Exams by Danyl(m): 1:34pm On Jul 11, 2011
@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
ProgrammingRe: Help On How To Run A Servlet Http Program by Danyl(m): 5:31pm On Jul 08, 2011
@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
ProgrammingRe: Community Project(strictly Java) by Danyl(m): 7:15am On Jul 07, 2011
@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.
ProgrammingRe: Community Project(strictly Java) by Danyl(m): 8:42pm On Jul 06, 2011
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
ProgrammingRe: Gurus In D House,help Me On Ds Netbeans/oracle 10g Xe Db by Danyl(op): 1:47pm On Jul 03, 2011
@dell_net nd fayimora,thanx alot i really ur timely response
HealthHelp,docs In Da House,i Want To Study Medicine by Danyl(op): 1:34pm On Jul 03, 2011
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.
HealthRe: Premature Ejagulation by Danyl(m): 1:25pm On Jul 03, 2011
@kol,i nid the mind stuff,here's my email:goldendanyx22@gmail.com
HealthRe: Help, He Is Azospermia by Danyl(m): 1:05pm On Jul 03, 2011
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
ProgrammingRe: Help With Java Applet by Danyl(m): 4:29pm On Jul 02, 2011
@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.
ProgrammingGurus In D House,help Me On Ds Netbeans/oracle 10g Xe Db by Danyl(op): 4:10pm On Jul 02, 2011
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.
WebmastersRe: Help On Joomla Cms Installation by Danyl(op): 2:40pm On Jul 02, 2011
@hostleek,tnx 4ur response.
WebmastersHelp On Joomla Cms Installation by Danyl(op): 12:05pm On Jul 02, 2011
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
ProgrammingRe: How Can I Get An Sql Database Software For My Web Developments by Danyl(op): 8:39pm On Jul 01, 2011
@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
ProgrammingRe: How Can I Get An Sql Database Software For My Web Developments by Danyl(op): 4:07pm On Jul 01, 2011
@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
ProgrammingRe: How Can I Get An Sql Database Software For My Web Developments by Danyl(op): 2:29pm On Jun 30, 2011
@IBEXY,thanx alot, it seems MS-Access db is nt gud for web applications,what do u think abt dat
WebmastersRe: How To Design A Professional Website Using Dreamweaver by Danyl(m): 8:46pm On Jun 23, 2011
Hey broda i nid da buk. My email's goldendanyx22@gmail.com.
Thanx alot
WebmastersI Want To Know How To Administer Joomla To Create Dynamic Website by Danyl(op): 1:05pm On Jun 22, 2011
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
ProgrammingRe: How Can I Get An Sql Database Software For My Web Developments by Danyl(op): 10:35am On Jun 22, 2011
@seun, thanks alot i'll try that website.
ProgrammingHow Can I Get An Sql Database Software For My Web Developments by Danyl(op): 10:40pm On Jun 20, 2011
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
EducationRe: Man Gives $50m Scholarship To Graduates by Danyl(m): 8:54pm On Jun 18, 2011
The man may b a great philantropist,let him be he can spend his money any how bt $50m no be joke at all.
EducationRe: Man Gives $50m Scholarship To Graduates by Danyl(m): 8:53pm On Jun 18, 2011
The man may b a great philantropist,let him be he can spend his money any how bt $50m no be joke at all.
ProgrammingRe: Java Cafe by Danyl(m): 5:00pm On Jun 16, 2011
@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
RomanceRe: Why Do Women Respect Their Bosses More Than Their Husbands? by Danyl(m): 1:32pm On Jun 16, 2011
@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.
WebmastersRe: Facebook Clone 2010 Supreme Edition by Danyl(m): 12:19pm On Jun 16, 2011
You did great bro. Please i'll like to have a look at the scripts.my email ad is:goldendanyx22@gmail.com

1 2 3 4 5 6 7 8 ... 39 40 41 42 43 44 (of 44 pages)