This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes On call/ shift calender GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "On call/ shift calender GUI" Watch "On call/ shift calender GUI" New topic
Author

On call/ shift calender GUI

Ciaran Mooney
Ranch Hand

Joined: Jan 21, 2013
Posts: 72

Hi All,
I am planning to write a swing/sql programme for a
on-call /shift rota in my workplace. Basically individuals will be sequentially assigned to dates on a Calender, and stats such as hours on call, weekend etc will be recorded in a mySQL DB.
So my question is does anyone no if there is a Calender widget/GUI in available in java for this purpose?
Thanks in advance

I love deadlines, I love the whooshing sound they make as they fly by...
Paweł Baczyński
Bartender

Joined: Apr 18, 2013
Posts: 1012
    
  16

Something like mentioned here?
http://stackoverflow.com/questions/7935255/how-do-i-make-a-calendar-in-a-standalone-java-gui


Formely Pawel Pawlowicz
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 983
    
  13

DatePicker

Nevermind. I see now you mentioned a Swing app. I'm in the webdev mindset.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Check out JCalendar I would enthusiastically recommend it.
GUI questions are best asked on the GUI forums. Moving...


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ciaran Mooney
Ranch Hand

Joined: Jan 21, 2013
Posts: 72

Great thanks all. I've heard of the JCalender on various posts so i will take a look.
Thanks again
Robert D. Smith
Ranch Hand

Joined: Oct 04, 2013
Posts: 143
    
    5
Apparently I'm a masochist. I used the GregorianCalendar.


There are worse crimes than burning books. One of them is not reading them. Ray Bradbury
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Robert D. Smith wrote:Apparently I'm a masochist. I used the GregorianCalendar.

I don't know if you meant this as a joke (probably did) but in case you didn't GregorianCalendar is not a UI component
Ciaran Mooney
Ranch Hand

Joined: Jan 21, 2013
Posts: 72

Possibly a stupid question, but i haven't used beans before. Ive imported the jar flles into a library in netbeans and added the calendar components to the bean palette
of the GUI form, but how do i add functionality to it? As in the individual days of the month appear to be JButtons but i cant access the conponments individually ie to add a name fro the rota.
The forum is currently down.
Cheers
Ciaran
Robert D. Smith
Ranch Hand

Joined: Oct 04, 2013
Posts: 143
    
    5
Maneesh Godbole wrote:
Robert D. Smith wrote:Apparently I'm a masochist. I used the GregorianCalendar.

I don't know if you meant this as a joke (probably did) but in case you didn't GregorianCalendar is not a UI component
It was a joke, but I also missed the need for the GUI components by the OP. Thanks for pointing that out.
 
GeeCON Prague 2014
 
subject: On call/ shift calender GUI