Skip to main content

Java MiniProject

This was a small Java Mini-project I made as a part of a team of three as partial credit towards our CS F213 (Object Oriented Programming Course). Click here for the source code on GitHub. It's a hotel booking application where users can create accounts, new bookings and manage their bookings.

Installing the required software itself took more time than expected. We started with Oracle NetBeans and shifted to Apache NetBeans 9 IDE, because it supports the latest version of Java/JDK. This was also the first time we tried to use git (and failed miserably). We ended up just merging our parts of the work by hand (the old-fashioned way - by email and copying source files from one pen drive to another) and then finally one person pushing/committing all the changes. Now we know how. 

This was something made kind of in a rush on the last day, and the code isn't perfect. The project used a MySQL database to store the room, user information and JDBC to connect to the database. The GUI was made using Java Swing. For most of the GUI, we used the Apache NetBeans 9.0 drag and drop interface which made life really simpler.

In the end, like most last minute hacks, this project had quite a few small bugs and exceptions that we didn't really think of. If we just had one more day, we probably could've made it perfect.

A screenshot of the booking app (left) and the IDE on the background and on the right. (A two monitor setup, essentially).  

Comments

Popular posts from this blog

Morse Code to Text using LDRs

Okay, so the idea was to convert light signals (Morse code) to text that would be displayed on the computer screen via the Serial Monitor. So, I set up an LDR circuit (in voltage divider configuration) to test the brightness of light. When the intensity of light is high, the LDR has low resistance and thus most of the voltage difference is across the 100k-ohm resistor, giving us a high voltage (analog values > 1000), and when there's no light values of 300-400 were common. To prevent ambient/surrounding lights from influencing the LDR, I set up a closed box housing the LDR+Arduino with a small hole, where the signal would be flashed. The circuit  Essentially the circuit is this: The Morse Signal would be flashed using my cell-phone back camera flash using an app called Morse Code Flasher . The opaque box - there are two holes - one for the light/signal and another on the side to run in the USB cable to Arduino. Inside of the box   After constructin...

So, WebDev: My First Project Idea

Okay. So it's summer. And there's tons of time. So I'm trying to figure out WebDev cuz why not. Some people say that WebDev is not real "coding/CS" per se - but who cares? I'm not doin' it cuz it be CS, I'm doin' it because I want to build something I can see, ok? Anyways, I digress. Since this is my first post here - I'll make the purpose of this blog clear: to keep a record of what I'm trying to do so I can laugh at myself half a decade later. That's it. No other purpose. Nothing. Zero. Nada. Zip. The Idea: A TShirt Exchange Portal (copy-pasting the idea I typed in a notepad file at midnight yesterday): Project statement : To create a T-Shirt exchange website that would enable the students of BPHC to exchange T-Shirts bought on SWD Portal, if they have the same size. Impact : This project on completion will make it much more simpler and faster to exchange TShirts. A process that today involves tons of posts on FEG spamming...