Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:56:36+00:00 2026-06-04T12:56:36+00:00

As part of our Software Engineering and Project Management course assignment, we got to

  • 0

As part of our “Software Engineering and Project Management” course assignment, we got to do a hotel management software. So fat it’s been going great, however, I do have issue with one of the features: How to visually represent all bookings and/or appointments in calendar…

At first my idea was to save all Bookings from DB in an arraylist, and then with use of JTable create a table where rows represent Rooms and columns represent Days. Then with the help of a loop I would check every column, and then ask from array where bookings are stored, if at that day some of the bookings begin. if so I would highlight the cell. However our tutor told me not to do so, because it’s just way too much unnecessary work and instead just use java calendar api to solve this.

The thing is, I’ve been googling but I haven’t found any helpful tutorials or topics which would help me figure out how to do what I want. Unfortunately due to my time capacity right now, I can’t afford to spend a whole day looking and testing something which usually end up not working as we want it.

In short, we need to visually represent active bookings/appointments in calendar and we’re looking for the fastest and simplest way to do so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:56:38+00:00Added an answer on June 4, 2026 at 12:56 pm

    If you’re smart, you can get the db engine to do most of the work. Consider this untested MySQL query:

    SELECT COUNT(*) AS cnt, DATEDIFF(booking_date, ‘2012-05-20’) AS col FROM bookings WHERE booking_date BETWEEN ‘2012-05-20’ AND ‘2012-05-27’ GROUP BY booking_date;

    This will give you the column and the number of bookings on that day. From there you just have to loop through the results and complete the table.

    Edit: If you don’t have db access you should store the data in a HashMap so you have O(1) lookup rather than O(n) each time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a path-finding project as part of my 4th year software engineering degree.
I been working in a project with a team for a Software Engineering class
There is a small part of our software that inserts a string before and
I am part of a team that releases versions of our software 4-5 times
Amongst other things, our software connects to an online store. Part of the process
Our software shop does a big enterprisey system and one of its part is
I have many Windows CE 5 devices in the field, running our software. Part
I've been researching about adding Arabic localisation into our software. I understand that mirroring
In our organization we have 6 teams: 3 project teams who provide software to
We're about to change our workflow for our release management as part of our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.