Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Brandon McCombs" Subject: Re: graphical calendar vi Message-ID: <477697d2$0$4374$4c368faf@roadrunner.com> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <47759479$0$1535$b9f67a60@news.newsdemon.com> References: <47759479$0$1535$b9f67a60@news.newsdemon.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 40 Date: Wed, 27 Apr 2011 15:42:00 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918920 96.60.20.240 (Wed, 27 Apr 2011 10:42:00 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:42:00 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2937 To: comp.lang.java.gui Knute Johnson wrote: > Brandon McCombs wrote: >> Hello, >> >> It seems that the standard Java library doesn't include a graphical >> calendar component so I was wondering if anyone happens to know of a >> free one, preferably one that is big enough that would allow text to >> be readable on the individual days (to list daily tasks, etc.)? >> >> If there isn't one, any ideas on how I'd go about creating my own >> based on the info from the existing java.util.Calendar object? I >> assume I would probably need to have a JTable created at the least. >> Any suggestions on doing that are appreciated. >> >> thanks >> Brandon > > I would create a Component that draws the month that you want to see. > You can draw your appointments or whatever the same way. Your > application will need controls to select a month, add appointments or > whatever. > Do you mean to do so using a Graphics2D canvas on the Component? That will obviously take some time to make sure all the lines match up correctly. I'd like to have any text on the days be clickable so that a JList also in the window can display the details of the item that is clicked. That response is doable (although very difficult I think) with text on a Graphics canvas however showing that the text was actually clicked would not occur to provide the user feedback similar to how a hyperlink being clicked provides user feedback. thanks Knute Brandon --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24