Hospital Management System in java (JFrame,Netbeans, Mysql Database) Complete Project (step by step)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome to my youtube channel in this video I am going to give quick overview on my hospital management sister project I am using jframe MySQL database and NetBeans IDE so let me run this project right this one is the first page of my project here the user admin have to log in so I just saved the HMS as a username and the password is admin when we entered incorrect our username and password it will show pop-up messages because he that incorrect username and password will be pure right correct username and password and click on login it will move to the music frame you can see that this one is our home page and here you can see that the buttons add new patient record ID tag no.6 information full history of patient update patient record hospital information and large and here you can also see a button which having an arrow so when we click on this arrow then the location of this buttons also get changes like we click on this they can see that our drupal scene had changes and when again we click on this button it will again move to at the same location okay so in this way you can change the buttons location okay now the first is to add a new patient so click on this ok now we are writing your patient to will be writing Amit Kumar I hear you have to write the contact number okay he'll be writing each 30 can say gender here a male female and all and blood group are fitting a positive address and is sitting Alicia yupi okay India any major disease suffered earlier if he suffered any diseases just write the description and if not Dan was sick oh okay and we click on save it will show a popup message of successfully updated when we click on OK this P is good to replace they can see that our data has been inserted now adding the diagnosis information here we have to write the proof patient ID so first I am going to write the wrong patient idea like three three does not exist in our database so when we click on search you can see that patient IDs does not exist okay now I just registered the patient ID - so here I am going to write patient - and we click on search you can see that the trickles off that patient I'll display in this table okay you can see that the build and Esha bar and all he is and all can see here and after we click on search you can see that the urban patient ID text will get disabled okay after that we have to write the symptoms that what are the symptoms or maybe a writing symptoms and all people times viral people whatever you want to write by the doctor prescription and all can write it right here we are writing medicines name okay now here there is option of the word required if required then just click on yes and here it is he that the types of what they can ask if you want single do Anna all this click on general you don't need what just click on this it will get removed okay I am just reading - okay now I'm going to click on this save it will store in our database okay click on see successfully updated when we click on it will stored in our database it will close this now this will is our next witness for the full history of the patient let me click on this they can see that our details I will retains of the Amit Kumar I mean my patient I do to instruct team wheels enter blood group address any major diseases patient ID and all you can see the details of that full history you can simply say that full history of that patient because it is okay after that you also can change the details of that patient just click here now here you have to winter the ID this time click on search you can see that the Amit Kumar contact number each meals little blue and all I am just changing is to sing okay and I'm also going to change the while number three four and I'm just going to click on update okay update okay it will do fist and safety now let me check out you can see that the full history down you can see the patient's here because he Amit Kumar Singh has been updated in our database okay after that there is in hospital information you can write all that it is that hospital system is and it meant of his information all you whatever you want you can add here according to your need okay and this one is full logout like after all the tasks we performed and added new tech missus information and you presented for me record a society you have to log out so when we click on logout it will give a confirmation message do you really want to log out when you click on yes it will go to the login page when we click on known then it will stay in this page click on yes there you can see that and this is also an option of clothes when we click on this close button it will lose this application okay and this is also an confirmation message will pop up on the screen you want to close yes I just want to prove this application so this is all about my project hospital management system and I'm also going to make videos that how I just created this project so please stay tuned with us it's like and subscribe my channel thank you hello everyone welcome to my youtube channel this one is my first video after the demonstration of hospital management system project so in this video I am going to create a login page pain the user or you can say admin intern correct a user name and password then it will move to the home page so let me create a new present and the name it as hospital management system hospital bandage end system ok click on the fresh no now we create a new jframe where we are renaming as log in click on finish now we click on properties and first we remove min Max and cruise buttons from hours a frame ok after every resizing it to the 1 3 6 6 comma 768 size to this after that we need two levels here the first one is for the username there is a name and another one is for the password living as possible also had we needed text field here and we also need a password field ok we are increasing size to the two 50 here also resizing at as 250 now let me in the text from this fields I've been tracing the size of this properties make it as bold 14 okay the size of this old 14 and I mean you also stick to one time I click on properties and here you can directly choose make it at would it 14 click on OK now now we need two buttons first we are putting a button 1 yeah alright this one button is full login here we're ready to text login login and another button we are using for the clothes so we also need icons here so just we are going to select some icons importer the present okay now click on text stop if you need any icons or image which I'm going to use in my project just go to the description and check out the link okay so login ok I can see the login you're also changing this to the port 14 volt 14 click on ok are we also going to put in icon in close button to import the present whose click on finish' you can okay you're also going to trace the size of this it has fooled routine click on ok proof I can see that our poem has been created now we need to put an image in the background so for that first we need to change this set layout as absolutely out of it now be putting a put in you can say inserting in it I can have a level here after that we are going to I can go to the project login background click on finish click on OK your city now we have to move this this pretends and all pollution so that look good muezzin e-rate parts right drop in and close it okay now you can see our dog in peace and incubated now it's time to put put the crews button action action performed here we have to write the code for the clues so able to write code for first we are taking a variable into e equals to Z option and George so confirmation and from J look okay click on this and now well and here we are going to write first message - do you really want to close application okay after that we are setting the name of that information select yes and after that we are setting the auction the auction J auction they're not taught yes yes or no option here okay you can see that option and after that if is equal equals to 0 tan system dot exit would will be executed basically the use of system not exit is to set down the our JVM okay let me run this so here you can see that the username password and we close click on close it will arcs that you really want to close with click on no it will not close when we click on yes it will cruise our application now we have to write the code for the login button you can event action action performed and here we have provide event is condition F J text will 1.8 next dot equals we have to write the user name whatever you want I already on that hm s and J password dot it text dot equals was a I'm writing admin ok if this will satisfied that it will move to the new zeal frame so for that you also have to create in user frame so create a new jframe huh and home ok yeah are creating in user info click on finish and we again to the login page here we are sitting do visual if condition satisfy his username is HMS and the password is admin dally then it will say to visible and setting and it also said okay is it will show a message that dot sue passage trailer incorrect incorrect name or possibly okay now let me run this code here I'm writing HMS and the password is admin and then little con login you can see that Newseum has been open let me run it again to show you the easy option and message I'm writing hm a and you're also writing incorrect password when you click on login now you can see that in creeped username or password in this way you can create your first login page in my hospital management system project so don't see my previous video of quick overview of that project this project then just go to the description and check out the link and if you want to download image or icons then just go to the description on also you can check the link and stay tuned with us and I hope you guys like this video so please hit like and subscribe my channel thank you hello everyone welcome to my youtube channel this one is my second video after the demonstration of hospital management system the first video I just created a login page which having two fields you can see here user name ID password within the admin intercurrent username and password it will move to the next page that one is our home page so if you don't see my login page video we just go to the description and check out and in this video I am going to create or care I can say that design for the home page so let me start now here we need patterns okay first button insulting an icon in it and put to the project protective time HMS yeah - arrow if you need these icons or images just go to the description and check out the link okay it it takes just me remove this after that be you also need another Britain I'm also going to add a icon in it I can go to the project add your patient click on next finish ok renaming as eg text at you patient patient record ok we need another button that is add Diagnostics information this you also need an image a diagnosis click on finish ok take the button name and here we add sources for each we also need to increase the size of this well three eight eight one three six six seven sixty eight properties I can hear go to the present history click on next finish okay close the name it it text full is three full history of the page now we need another button here write proper leaks setting icon here update whole to the present or is it update details click on next okay the naming add little text update patient called and after there here also to address that properties for this video censored and icon and formation hospital information click on finish a close read text or speech ill for fiction I lost eat a button that one is for logout it takes out and girls I can pull to the project okay now you can see that the button size is different put every button there is a default size so we are setting a same size for the all button - right just select it all and click on properties and here we have to say preferred size first so you can see that the first size is clip on there and here I am writing 240 for the width and 59 for fight you can okay close now now you can see that the size of each button we are selected RC now it's time to write the code for log R will log out okay so let me right click on this event action action performed okay here we have to write the code by the bathroom now end a coastal chill option and dot show confirmation confirm jello a visiting null and here we are writing the message to you really want to log out okay and he'll be a select or name and here we are setting the option that's yes or no yes or no option okay and at the end say Mokelumne and if a is equal to zero it means that the user or admin you can selected yes okay was it visible falls for this beach and the we are setting new visible login toward sent visible true okay now we have to also remove the clothes minimize or max what end so that we are click on an undercoat 'add click on close so let me run this file now you can see that when we click on go out it asking do you really want to log out when you click on yes it will move through the hover previous page you can say that login page now we don't add functionality for this button so when we click on this it will change the location of the button so for that yeah clicking on it first we have to declare a variable so here you can clear your value evil I'm clearing a valuable public int I equals to 0 okay after that we are writing the course in the button button 1 if I is equal to 0 then J button 1 towards it location location here during 1940 okay same way there also right in the course this one is for the second bidder three four five six here we write 3 4 5 6 7 and 4 this is changing the this value added b xvalue 576 819 1:06 - 1 0 6 2 and put Oh 18 9 ok and then and after this changing the location we are setting I is equal to 1 okay and here is the else condition just to do this but we have to change the location point you can see that to get back to the our previous point so for that we have to say in the exit 10 then then then now for this we writing one zero seven one eight four two sixty one three three eight por-15 at the past four nine zero and we have to sit her i equals to zero let me run this file now and we click on this button it it will change the location of our where does we can see that when we click on the key click on that button can say it get back to the back location you can see that when we click multiple times it was changing now now we have to insert an image in the background okay so let me insert an image in the background for that we need a label here for that we are prepared to layout absolutely out and Here I am inserting a label we can right click on this properties and here this late I can the team important a portrait an image that one is our own image okay close let me set this if you need this image or then just go to the description and check out the link okay already provided now let me run the file it again now you can see that our original as it is proceed demonstration videos and this home page has been created so this is all about the home page okay I hope you guys like this video so please hit like and subscribe my channel and I'm also going to page more videos on this project so stay tuned with us thank you everyone welcome to my youtube channel this one is my third video on hospital management system after quick overview in the previous video I just created this home page you will see here and in this video I mean to write the codes for the add new patient recall when we click on this button it will open use a frame okay so let's start reading music prime form here I'm writing add new patient record okay click on finish we'll take little bit time after that here we are writing event action action formed we are setting the new visuals first you know add new business dot sit - okay no - add new patient record form okay now be increasing the size of this 781 500 okay and now we are going to press to remove and Big Macs and e-coated here we are clicking on this so that it will release being max or closed version from Allah as a frame and after that we are going to set the location at where it will form the open so put the eggs exits we are setting to 80 and for the y-axis and hitting 150 okay okay and close now we need to create form so first we setting a button here the protagonist close button the text flows and there's hold-hold 14 okay and we also need a console it'll be already imported in our projects for and for this we are writing action action action perform here writing set visible fall okay now let me run the home page so that you can see that form will be opened in a particular location and it does not having being knacks and close button edit okay after that angle to create all the forms part field or you can say that take it a good time to run okay now let me click on this here you can see that it will open at x-axis and by axis you can see that location when we click on close it will get close in this way now it's time to sit design the fall yeah I'll be neat pills first one is for the patient ID so we need a table there okay the next we picked name seven 3d text contact number for the text age text is enter then the next level it will text that okay after that we need another level that one is our address address after address another one level that one is a major disease software okay now we need for particular okay and then we need the first filter tech speed 1x to the two next field three extra for each gender we need a combo box for the blood group you are also taking text field you can also use combo box here for the address we are using text bit and for the enemy any major it is a circle you are also taking text okay it is take center no we have increasing the size of this to to 250 but every movement 3 to 15 now I've been reading the size of this making them hold 40 I click on this property support okay there is littering hold 40 okay I can see that thanks field idea I getting old and now it's time to change for this properties and here we are selected hold 40 okay just close now now you can see that our forum has been designed okay now we also have to increase the size of this item gender making it as poor old 40 okay close and we also have to set items changer you can say that this okay click on OK and close I can see that our form has been designed now we have to set a background image for that you have to go to the first we have to change the layout absolute layout after that we inserting a label here 30 level 9 and properties Here I am sitting an icon input to the project okay we'll take five seconds now hms and new patient background click on finish okay close now you can see that our image has been set in the background oh actually I just forget if the inside important yeah so first I need to insert a bit in here I'm taking it to the just getting two completely out after that I'm going to meet Rick named Alexi and turning the image over to the icon unit so we need to improve this pull to the project see save icon click on finish okay those are including the size of the risk making it as for the food theme okay now we are only changing to the setting layout absolutely out after that exciting and I can have properties I can be already imported soviet-type this later I can see that our form has been created now we have to write the course to [Music] insert in our database so for that first we need to provide a connection so for that we are creating a package here first renaming as project we will provide the connection okay so in this we are creating a Java class name is connection provider who writing this code first we need to add add library okay - QD busy travel okay add to the library that one is added in our library now we have to write the routes for this so first we are creating a meter in it whose name is public public static connection it's gone it's gone try and catch first we write in class taught old name Comte or my ex 12.30 missing dot driver after that we have to write this connection connection on driver manager dot it connection okay then after by JDBC JDP see my spell - well after that - caboose I am writing here UIL localhost 3:06 okay and really having to write the database name which I will say that that one is a my database name is checked okay here I have to write user name and after that I have to write the password one two three four five six of my database Rudy's default people my database so after that will to return see you're writing here catch this happen that it will return okay okay okay we cannot write here because the first is the package name will be written okay that's why it's saying it is and you also have to write this okay you can see that all three years has been removed no now you have to write the rules in our the unsaved event action action profound okay you have to write string before I think first we need to create it table in my database so for that I'm using project database and so and now we are creating a table whose name is patient the table patient patient ID ID I turn and should be primary key and me number then visiting each where care setting sure digits okay send an alert truth where there 20 address where care taking hundred and in is the disease t Meisel disease okay great you can see that how the table has been created you can see the description patient ID name contact number each gender played group and all you can see here oh you have to take all these things from our he was so strange patient ID j text 1.8 text okay string name j text 2.8 text string string point act number they text each 3.8 text utter the string gender will take selecting jcombobox Bongo box dot get selected index index item after that strain each each page J text field trip o dot get text ok string third trip j x8 5.50 text string string address Z text it 6.8 text and after in string Amy Messer is with disease J text phil' 7.8 text okay no try catch exception now we have to write the connection connection connection porn dot connection okay we did not put that's why it's not showing possible to import import project which it taught connection provider and after that we're importing Java dot s well now again we are writing connection provider you can see that don't fit on after that we are written statement statement mayn't st was so gone dot read statement after Adya writing st dot x cute cute update date where we have to write the foods inside into patient patient values able to write values the first one is patient ID and the next one is named after that that's right contact number that yep right each of the age each gender gender gender right blood group fighting blood group rock right address add the tint right in D major disease okay our grading miss turn turn now we have to write a pop up a message tip and or show message that successfully updated right that's it this fully updated okay after that we have to also remove all the valleys bomb their feelings so there will be writing change visible Falls and give is well same page okay that's it visible too so writing the cache block there we are showing a message if something went wrong and it will show that data the data interest please is incorrect please inter using to correct this intuitive data in correct form it okay I stand to run this file and file am I writing into ready for a username come on contact me switch to zero one zero five five six three two I am writing age 22 little group were sitting here positive we can change the sender may be thirsty Oster do be in any major digit is null and we click on save it will show a pop-up messages successfully updated when we click on OK you can see this has been replaced when we click on close it will close our form let me see that dot L the Tata has been insert in our database or not you can see that basically is one name is got a contact number is address and all blood group and any messages you can see all the details of that patient in our database okay this is all about add new patient record in our database so in next video I am going to show you how to how to add diagnosis information or you can say that I am functionality of add a diagnosis information in my project so stay tuned with us I hope you guys like this video so please hit like and subscribe my channel thank you hello everyone welcome to my youtube channel in the previous video I just added the functionality put the add new patient record where I just when we click on this button it will open this form then see here and be inter that it is it will who goes to our database and stored there and in this video I am going to add in the functionality for the a diagnosis information okay so will it start now we have to create a zip team okay say Fame and here we have provide ad writing the name add a diagnosis this formation okay finish how our different has been created now we have to increase the size is to 780 500 okay now we also have to change you can say we need to remove the min Max and close button you can say click on here it will get removed and you also have to set the location we can see that location of this so we are setting it as access to 80 and the PI X is 150 okay and maybe a key and close now we need add a level here this one is for it it takes patient ID I T and we need text field amazing text text just remove this now we also need to put in here put it it it fixed just search the our search I'll get inside of this without pull it hold it booty okay those please increase the size of this properties now they're also making such as pulled 14 and we are also setting an icon in it go to the project hms idols search click on finish if you need this item just go to the description at check out the link okay now I can see that now we need a table table to display the details of that patient we need to remove this extra so we need to go to the table content and call them roles degree 3 2 1 ok and we also need to add a level ok and here we are adding patient ID ID does not not exist whenever patient IDs rooms exist it will it will visible visible ok I click on this you are taking making it a full 40 ok and the changing the color - great 55 okay okay close this an ID does not exist okay now we need all levels they were one two three four this we also need a text reader experience symptoms okay next is for diagnosis this this one is for medicines depicts just remove this and also e2 more text field maybe text this pretext increases to 220 increasing our we are making symptom hold 14 okay close also increasing the size of the character which we are entering in text field we are making it bold 14 okay close now we need level here okay this one is for the word required deploy and be another neat a later time so for Boyd Boyd forward required we using a checkbox checkbox here and for this type of article I'll be are using combo box increasing the size of this pretties for 4050 you're off increasing the size of this forties and you're also changing the name check box one getting fixed yesterday yes we need to burdens the first one is for the sale and another one is for close this application this application it it takes say probably text [Music] [Music] I can see that our bond has been created we also need to set background image so for that first we need to change this is Italy out absolutely out absolutely out of that we need another level here they will add four birdies here we have to fit the audience and we need to close this you can see that this is police turtle spectrum first we are writing code for the this close button so here I just writing in the visible this will false air setting - hey and while loading our while loading we are fitting some labels today okay J table - fitting fit this bill falls okay and you're also hiding J level table seven dots it visible false and you're also hiding Jay on boombox combobox dot fit visible false we are hiding hiding this because pain will run this file will show you so you can see that our patient my patient ID does not exist you cannot see her and you can say that what required when you click on us ok ok are not connected with that here you can see that the of two more levels and combo box are not you can see here so I just hide it and when we click on yes it will display okay let me just hold for that okay so the full coding at the backend first we need to create it table ok number Tata base so for that or we already know that our database name is project and we have to create a table the table whose name we are fighting patient cheapo Jeep big table and help you first fill our patient ID till you're also sitting private knock symptoms symptoms 200 type cause this red roses resting at 200 medicine 204 required Q bad fine and type hold back then I can see that our evil has been created you can see the description of our tables now our table has been created now we have to insert the data in this is ok for that first we know where to write the pores in it and writing first to be writing the words for this whenever this will click action action is selected then we have to write the words for this type Jay check box 1 dot is selected it means we have to display key level say level 7 dots it visible true and J for MU box shaped visible true and is this we are sitting here okay set it as false let me run this you can see that when we click on here yes you can see the type of void you are getting the options okay now now we have to write the port's we miss all that we need to search so for that even action fry fry catch exception e now unready connection the connection for short connection okay first me to import project project connection provider bolt loose it dot connection provider import Java now now here we have to write and it shall provide you can see that there is option and it gone now we have to breathe the statement statement testing first 1.8 statement and also have to take patient ID here so we are taking a string patient ID dot G text text field 1.8 61 okay now here will be writing results it self it ok RS equal to st dot it's cute query here we are selecting select star from patient where it isn't tied it pulls too patient ID IIT okay so if this one is null it means that ID does not exist so RS dot first first ok-ran we are setting G devil level to tot visible okay true this is the writing C level two dots it that's it falls and jtextfield when dot they are sitting sitting irritable beautiful should be false you're sitting suitable for and here we are also taking a variable for three we are treating taking a flat variable public public in black is equal to zero okay just to know that why I am using flag here and here we are sitting flag flag is equals to one that we never been able there is a correct our patient ID is endured than it said to be unhittable and then the flag is one then we can insert the data in our database okay this weight book so let me displayed if something went wrong option band or show message yeah that right show message the prediction the writing connection it okay and let me win this then file again we already know that patient ID one is in our database okay we click on search can say that we cannot eat eat now so let me roll this and let me run this again and believe me we entered the incorrect like we are into two and when it will go search because the patient ID does not exist and after that we cannot also eat it okay suitable so we also need to remove actually been the patient ID is wrong then we can irritate okay so now now we also need to display data in our table so for that first we need to add a library add a jar file is our file we need to add is our file layer on it you can see the are two XML you can directly download it from the internet and open it this one is you can see added in our library now here you write Z table they will one torch it module model and will be applied TP util taught result result set model and he'll be writing RS let me run this again I have written one and click on search you can see that patient ID one got a contact number each you can see the all the details of that patient and this patient ID is good we cannot get it okay now let's trying to write the codes for the Save button so we have to also insert this data in our database for that give it will to do an action action to font and here you have to write the codes like using if flag is equal to 1 means that a patient ID is correct Tanvi are performing insertion in our database then we are taking patient I T such a text feet 1.8 text explained drink seven felt tongue jtextfield 2.8 thanks to string by OSes j textfield 3 okay dark pit text here and after that thing made sense and this is a text field oh god get texture and the string board each wire string type void okay now if you're selecting taking variables if j text field j text checkbox ID chip box Todd is selected tan then gold Ford required is because to your setting yes okay and type board goes to strength string chain combo box type combo works here combo box target selected item okay as we are setting a void void wide no and type type hold first - nothing okay after that we have to try and catch her - right the MySQL query catch exception should sure and we write the connection first connection connection gone connection connection provider dot it on a statement statement st was to go on torch v8 statement and after st dot cute update and we are inserting insert insert into a given e of that table patient report values provide the values critical patient ID after that patient ID symptoms symptoms after that symptoms early diagnosis information diagnosis information after that their diagnosis need medicine operations insert all right at the end we need to insert type or ok all we have to write the option and also mass show message message access is fully updated update it okay afternoon it's acceptable we also need to remove sweating balls removing all the data from their respective fields I'll give my information towards it this bills ok and you know we have writing catch monisha g option torture message okay and the ills condition relating here it's the auction and or show message and here you're writing patient i feel it is empty okay if you run this file oh here we are entering first patient ID click on search you can see that after we cannot give you this hard to write the symptoms they wait feeble diagnosis information viral people medicines the total okay and here were seeking yes visiting single let me click on the Save button successfully update it okay if we check on in our database you can see that patient ID burned people file people equal to Todd and yes and see what is single you can see that we also need to connect this form to our the homepage buttons so here we have to write the pool will query and put her new and diagnosis information dot set visible and he'll be right true okay now let me run this then we click on add patient new patient record open this form when we click on this you can see if this form has been open so this is all about add Diagnostics information button I hope you guys liked this video please hit like and subscribe my channel and thank you welcome to my youtube channel the previous video I just created for the at diagnosis information part and if you don't seem that video just hold the description and check out the link in this video I am going to create for the full history of patient part so let's start first we need to design it forms a frame you'll see that so here respecting JPEG and Here I am writing full history of the patient okay don't finish no office we increase the size of this 580 police 780 over 500 ok let's create this and we also need to remove the min max or close button ok so for that undercoated and you also need to set the location of this on so here I am sitting X is 280 and the Y is 150 clicking on ok close now now we need here a cheap table into the table I am inserting here okay and we also need a close button in it so your input in here 13 button a little text close and make for it pull it pull T click on OK and we also searching hiking clothes okay those now we need to write the codes and event component show that and component show here at encoder because we enabled our page get load it will get executed there so Gail right input it's probably right right right catch connection project package which having good connection provider class and we also input connection connection form whose - connection - I do you see the connection provider dot it on and they do statement the st.com on dot 8 treatment and we are losing results it builds it artist goes to actually dot it's cute wedding yeah have you have to write the query okay you're performing in or joining a select star wrong I'm selecting all that's why I'm using start from whatever we want to sleep just to write the name and dot and column name okay so patient you know dry just wine patient report put where patient patient or fish-eyed is is equals to the patient report dot patient ID okay now now we have to say that our table does not decide it by itself for that we're setting J table one dot set auto auto it is sizable mode we are visiting cheat table dot auto auto de sizable off okay now we have to display the data now tables for - my ability card set oral model okay here we are right t-butyl dot results it table Moodle say I'm going to write all this if something went wrong then we also going to display message option message right connection and we also have to write the put this close button even action action to sit this world falls it visible Falls okay and we also need to insert background image the tabs file here right-click on this setting layout absolute filter and after that the uncertainty in the devil here and setting that level properties inserting an icon in it a patient background just close it and you can see our mesh has been I can has been in 30 common way is to move the table name no I said to run this part and file it will take a little bit time you can see that it is a basin number one for whom our contact number each meal at this symptoms medicines would require you're single and you can see all the details of that patient IDing one okay so we also need to connect this with our home page so that's why here we have to write event every action performed have you have to write you you know full is sure the patient dot visible visible true okay this and information I'm adding new so but Kumar protect number is 23 it will be positive and risk profile in TIA ok see you updated they close this item information they'll be writing this ready to search you can see search and here writing this in the full history you can see that when we click on full history it will open in new jframe and here you can see the all the details of each patient ok here I just inserted to a bit Kumar and all you can see that I hope you guys like this video so this hit like and subscribe my channel thank you everyone welcome to my youtube channel the previous video I disputed in a frame for full history of the patient if you don't seem that video just over the description and check out the link in this video I am going to create a new jframe will update patients record so let's start they are creating a little finger and they are renaming it has obtained update patient record okay click refresh top off first we need to make it as 780 comma 500 okay girls on uterus and you need to remove min max and tools button from our jail frame so we are setting on decoder and he also said location of X and y-axis so 218 comma 150 okay clothes now now we need her level for patient ID patient by T the next level is for the text name and the next level is for contact number they contact number X level for it it takes age there will next there real text in gender will be ending next Center after that third group the group of that address pretty text at this okay at last any major disease disease sulfide earlier okay now here we need text field for every certain text before each okay XP 2 X 3 X 2 4 5 6 6 7 8 last okay let's do text entry with this to delete it takes one by one text text 6 7 also ok now we are including size of this 29 okay and criticized of a poppy field making same as it is now now be increasing the size of this contact each vendor address attached right click on this properties just make it as bold 40 okay now you also need to increase this text field okay and those make tells pulled 14 bold okay our form has been created so here we need buttons so the first button is for the search rippings rch search we make it as bold bold those who to insert icon in it so we're really close okay after that we need a button to update tilted fixed update bring hold 14 and we are sitting icon for the ceiling see like an amusing again at ago sunidhi close button okay good put it big text and you're also making food 14 sites and we are also inserting an icon in it close eye I can see that our form has been created now we have to change the layout to safely out so that we can insert an image in this background to control bodies I can add background background both I hope you do this ok you can see that this one is created our form front it as we complete it now I start to code so first we are sitting here is sit the ascetic Falls now we have to write the codes for search action action and here we have to write first for I think this first we put the food project dot connection provider and we're up that input Java dot and here at Wright strain strain patient ID pull such a text field when dot get text okay now get to fry right cash exception that you're creating connection corruption action for equals to connection provider you can see that I'm going to get connection and after will be a creating state went statement statement st first to gone dot wait the statement after that result is L set RS dot st dot execute query select star from patient where patient IT is first patient ID okay now if our s dot next that you're sitting here Jay text 8 1 so 2 dot set txt writing our s dot kicked it strength writing - okay the same way of managing for others I'm writing three four five six okay seven and after to eat okay three three four five six seven eight at last we also have to say jtextfield one don't sit t-tubule falls okay so that no one can change is the idea found in our table is showing the message patient patient ID does not exist okay now let me run this file here so that you can see this part of the budget when we click on search like we are entering 85 and one search it will so P patient ID does not have this we click on OK now here I'm writing it should be one but search you can see that all the details of that user you can see in the different fields are displayed okay now now we have to write the codes to update that pain inter some new data also need to be updated in our database so for that here I took the boots now so here we are adding strength patient ID j decks feet 1.8 text string a gx-250 to target text 8 5 6 7 8 and now we have to change name after that contact number number after contact number each each ad vendor to gender third group that group participant at last in nature disease okay I'll go try cry catch you're calculating the words of my school okay this catch an exception and be using bycatch okay god dot connection provider actually provide a target gone okay after the statement statement st dot contort free statement st dot X which update now ever to write the query to update so update very patient st. thing first chemicals to name contact first contact number to contact number shapes contact number each okay right first after each protein ginger ginger okay okay after edges in nature add in right yeah patient ID is equals to patient hi okay now now we also have to see saw a pop-up message that successfully updated Sh fully updated and whispered falls again you have to sit save little update patient record part h2 okay now for the exception we are writing a course G option that message visit inter tatra incorrect for me okay let me run this file and we also are going to went by data based can see our data dr. business project select star from patient okay can see that for one click on update they went wrong let's check it out actually I just forget her I just have to write her disease I just forget a word from this okay now if we run this file all that mean to one search okay I hear mi tinks in update successfully update it click on OK cuz he our bomb has been Rufus at check out in our database you can see the color Kumar Singh okay no let me do this and we also need to connect this Jai faim with our home so that we have to write go to the event action and action performed have a blue right do visibles update patient report toward ship okay so this is all about update patients recalled I hope you guys like this video so please hit like and subscribe my channel thank you hello everyone welcome to my youtube channel in the previous video I just created a jframe for update patients record if you don't seem that but you will just go to the description and check out the link in this video I am going to create for the hospital information part ok so let me use a frame a frame for writing us every for a okay finish our phone has been created and writing 780 removing min Max and closed within and we are also setting the location okay now here we need an eye level therapist the insert an image finish if you need this image and I can just go to the description and check out the link I will be provided now we need text idea so that we can write the text in it copy the text so I'm going to copy it in our text area read text of it okay now we are increasing the size of it 14 and for it we are making it as okay and you're also changing the background color of this to this one okay I'll click quit and you also need your put in here so you're sitting in puttin it in text we are also making it as 14 volt routine and we are inserting an icon edit flow cycle okay now we have to insert a background image so we have to change the layout absolutely out and inserting a living and properties I'm going to sit and we are removing the label our form has been created our G problems in created now we have to connect this form the taller special information just go to action action performed writing new formation starts it visible okay now now our project has been completed so let me start it from start from login login red Java with that you can see this file you think this one is my last feeding our using image HMS and everything a step by step we click on login it will move to the new jframe you can see that this one is working add new patient record you can see working addresses in formation you can see that for it is also working full history of the information you will loading yeah you'll see that update details and all the details search Kathy yes and after information you can also see this formation details ok and then we click on ok which is not working they forget to set a phase words action action performed okay so we can run this file we click on close you can see it has been closed so this is all the votes my hospital management system I hope you guys liked this video so please hit like and subscribe my channel
Info
Channel: BTech Days
Views: 105,887
Rating: undefined out of 5
Keywords: project in jframe, project with source code, java project, java complete project, final year project for cs, computer science project, database project, java, mysql, jframe, complete project, swing, insert into database java, step by step explained
Id: LaOpvTj-Kcc
Channel Id: undefined
Length: 133min 11sec (7991 seconds)
Published: Sun Mar 22 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.