microba-controls Mailing List for Microba controls
Brought to you by:
michaelbaranov
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
(2) |
2008 |
Jan
|
Feb
(2) |
Mar
|
Apr
(7) |
May
(2) |
Jun
|
Jul
|
Aug
(8) |
Sep
(13) |
Oct
|
Nov
(2) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Javier A. <jab...@pe...> - 2013-05-22 15:26:52
|
Hello all, I have two DatePicker controls to choose a range. What I have implemented is a VotePolicy that register for changes in date of the first DatePicker. My problem come because I don't know how to tell the other DatePicker to update what days are ok or not. I have tried with myDatePicker.revalidate() and setting the policy again wiht myDatePicker.setVetoPolicy(this); but nothing happens. Any help? |
From: Greg C. <cau...@gm...> - 2012-04-23 16:52:11
|
http://broz.net/administrator/components/NOTWORK.php?noun186.html |
From: Rajiv J. <raj...@gm...> - 2010-12-09 11:23:26
|
Hi Michael, I managed to fix the problem. Actually the real problem was datepicker when used within table cell, as soon as calendar panel pops up jtable used to fire editingstopped , so selected date didn't appear in the cell. (this was particularly happening when used within my project having lots of customization), However in small standalone application i was not able to replicate this problem. I finally made setDropDownFocusable to false, now jtable cell dint loose focus and no editing stopped gets fired. I hope what I have done is correct (not sure , but working as of now) .. Thanks Rajiv Jha On Fri, Dec 3, 2010 at 7:51 PM, Michael Baranov <mic...@gm...>wrote: > Please post a standalone short example so I can help you. > Michael. > > On Fri, Dec 3, 2010 at 6:02 AM, Rajiv Jha <raj...@gm...> wrote: > >> Hi, >> >> I am using DatePickerCellEditor for one of my cell in a Jtable. >> The type of that column is Date. However it seems DatePickerCellEditor >> returns String after picking a date. >> >> Please let me know. If i can anyhow get date object instead of string from >> DatePickerCellEditor. >> >> >> Thanks >> >> Rajiv >> >> >> ------------------------------------------------------------------------------ >> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! >> Tap into the largest installed PC base & get more eyes on your game by >> optimizing for Intel(R) Graphics Technology. Get started today with the >> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. >> http://p.sf.net/sfu/intelisp-dev2dev >> _______________________________________________ >> Microba-controls mailing list >> Mic...@li... >> https://lists.sourceforge.net/lists/listinfo/microba-controls >> >> > |
From: Michael B. <mic...@gm...> - 2010-12-03 14:22:09
|
Please post a standalone short example so I can help you. Michael. On Fri, Dec 3, 2010 at 6:02 AM, Rajiv Jha <raj...@gm...> wrote: > Hi, > > I am using DatePickerCellEditor for one of my cell in a Jtable. > The type of that column is Date. However it seems DatePickerCellEditor > returns String after picking a date. > > Please let me know. If i can anyhow get date object instead of string from > DatePickerCellEditor. > > > Thanks > > Rajiv > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls > > |
From: Rajiv J. <raj...@gm...> - 2010-12-03 11:03:00
|
Hi, I am using DatePickerCellEditor for one of my cell in a Jtable. The type of that column is Date. However it seems DatePickerCellEditor returns String after picking a date. Please let me know. If i can anyhow get date object instead of string from DatePickerCellEditor. Thanks Rajiv |
From: Himanshu R. <him...@gm...> - 2009-04-16 23:12:45
|
Thanks for the reply. It makes a lot of things clear. On Thu, Apr 16, 2009 at 3:48 AM, Michael Baranov <mic...@gm...>wrote: > No, the OS has nothing to do with it. The JVM carries all > locale-specific information. > > Michael > > ok it seems like there is a file in the source tree called > > > \src\main\java\com\michaelbaranov\microba\calendar\DefaultCalendarResources.properties > > that contains translations for "Today"" and "None" > > > > CalendarResources can be implemented for creating customized resources > for > > internationalization and this implementation can be set via > > CalendarPane/DatePicker.setResources. So far so good > > > > my next question, is how are the letters for the days in the week > obtained. > > These letters are shown in the calendar pop up. Looking at the source > code, > > it seems it is obtained by stripping out the "day" of the week name from > the > > Date object formatted using SimpleDateFormat.format() > > > > Would this mean that the actual letters will be obtained from the OS? > > > > Thanks > > > > Himanshu > > > > > > > > On Sun, Apr 12, 2009 at 5:41 PM, Himanshu Ranavat < > > him...@gm...> wrote: > > > >> Can someone please let me know the languages supported by the > DatePicker? > >> > >> Thanks > >> > >> Himanshu > >> > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Stay on top of everything new and different, both inside and > > around Java (TM) technology - register by April 22, and save > > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > > 300 plus technical and hands-on sessions. Register today. > > Use priority code J9JMT32. http://p.sf.net/sfu/p > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Microba-controls mailing list > > Mic...@li... > > https://lists.sourceforge.net/lists/listinfo/microba-controls > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls > |
From: Michael B. <mic...@gm...> - 2009-04-16 10:48:20
|
No, the OS has nothing to do with it. The JVM carries all locale-specific information. Michael > ok it seems like there is a file in the source tree called > \src\main\java\com\michaelbaranov\microba\calendar\DefaultCalendarResources.properties > that contains translations for "Today"" and "None" > > CalendarResources can be implemented for creating customized resources for > internationalization and this implementation can be set via > CalendarPane/DatePicker.setResources. So far so good > > my next question, is how are the letters for the days in the week obtained. > These letters are shown in the calendar pop up. Looking at the source code, > it seems it is obtained by stripping out the "day" of the week name from the > Date object formatted using SimpleDateFormat.format() > > Would this mean that the actual letters will be obtained from the OS? > > Thanks > > Himanshu > > > > On Sun, Apr 12, 2009 at 5:41 PM, Himanshu Ranavat < > him...@gm...> wrote: > >> Can someone please let me know the languages supported by the DatePicker? >> >> Thanks >> >> Himanshu >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > > > ------------------------------------------------------------------------ > > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls |
From: Himanshu R. <him...@gm...> - 2009-04-16 08:19:19
|
ok it seems like there is a file in the source tree called \src\main\java\com\michaelbaranov\microba\calendar\DefaultCalendarResources.properties that contains translations for "Today"" and "None" CalendarResources can be implemented for creating customized resources for internationalization and this implementation can be set via CalendarPane/DatePicker.setResources. So far so good my next question, is how are the letters for the days in the week obtained. These letters are shown in the calendar pop up. Looking at the source code, it seems it is obtained by stripping out the "day" of the week name from the Date object formatted using SimpleDateFormat.format() Would this mean that the actual letters will be obtained from the OS? Thanks Himanshu On Sun, Apr 12, 2009 at 5:41 PM, Himanshu Ranavat < him...@gm...> wrote: > Can someone please let me know the languages supported by the DatePicker? > > Thanks > > Himanshu > |
From: Himanshu R. <him...@gm...> - 2009-04-13 00:41:39
|
Can someone please let me know the languages supported by the DatePicker? Thanks Himanshu |
From: Michael B. <mic...@gm...> - 2008-11-11 18:14:18
|
Greg, You'll have to dig deeper into the UI delegate of the control and modify the code there. There's no straight answer for this as the DatePicker consists of JFormattedTextField and a JButton. Michael. > Is there any way I can override the paintComponent method or otherwise > paint an image on the JFormattedTextField ? > > I am able to add a mouse listener to the component and I want to pop > up a custom control when the user clicks on the first 20 pixels of the > DatePicker. > > I have this working find and I just need to add an image for those 20 > pixels. Normally I just subclass a component and have > > protected void paintComponent(Graphics g) { > super.paintComponent(g); > Image searchImage = getSearchImage(); > g.drawImage(searchImage, 1, 1, null); > } > > but that doesn't work on the date picker. Or maybe it would work if I > could indent the date picker itself, not just the text. > > Any ideas? > > thanks! > > Greg > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls |
From: Greg C. <cau...@gm...> - 2008-11-11 18:10:54
|
Is there any way I can override the paintComponent method or otherwise paint an image on the JFormattedTextField ? I am able to add a mouse listener to the component and I want to pop up a custom control when the user clicks on the first 20 pixels of the DatePicker. I have this working find and I just need to add an image for those 20 pixels. Normally I just subclass a component and have protected void paintComponent(Graphics g) { super.paintComponent(g); Image searchImage = getSearchImage(); g.drawImage(searchImage, 1, 1, null); } but that doesn't work on the date picker. Or maybe it would work if I could indent the date picker itself, not just the text. Any ideas? thanks! Greg |
From: Greg C. <cau...@gm...> - 2008-09-17 12:12:14
|
Oh never mind, I just have to override public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition pos) on my SimpleDateFormat and hey presto I have the time. thanks! Greg On Wed, Sep 17, 2008 at 2:55 PM, Greg Caulton <cau...@gm...> wrote: > Hi, > > I used a custom SimpleDateFormat and called setDateFormat so I can > parse a variety of date formats and also the time. > > How can I change the display format of the (formatted) text field? I > don't want to use the date style as I want a wider variety of formats. > > thanks! > > Greg > |
From: Greg C. <cau...@gm...> - 2008-09-17 11:55:06
|
Hi, I used a custom SimpleDateFormat and called setDateFormat so I can parse a variety of date formats and also the time. How can I change the display format of the (formatted) text field? I don't want to use the date style as I want a wider variety of formats. thanks! Greg |
From: Himanshu R. <him...@gm...> - 2008-09-15 12:42:58
|
hey thanks doing a Microba.init in Applet.init fixed it You may want to add this readme file in a more prominent place. just a suggestion. not many people may download the source where this file resides On Mon, Sep 15, 2008 at 12:20 PM, Michael Baranov <mic...@gm... > wrote: > Hi, > Please read readme.txt and post a quick example (applet + html page) if > it doesn't help ;-) > > Michael. > > OK....if I cache applets, it does not help... > > > > On Mon, Sep 15, 2008 at 11:53 AM, Himanshu Ranavat < > > him...@gm...> wrote: > > > >> Hi, > >> > >> I am using DatePicker in an applet. (JRE - 1.5.12 and JDK 1.5) > >> If I change the page and visit the page with the applet again, the date > >> picker does not instantiate. this is the stack trace: > >> > >> Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException > >> at java.util.Hashtable.remove(Unknown Source) > >> at javax.swing.UIDefaults.put(Unknown Source) > >> at > >> > com.michaelbaranov.microba.common.MicrobaComponent.updateUI(MicrobaComponent.java:41) > >> at > >> > com.michaelbaranov.microba.calendar.CalendarPane.<init>(CalendarPane.java:195) > >> at > >> > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:120) > >> at > >> > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:105) > >> > >> Any Ideas or work arounds. (If I restart the browser everything works > >> fine). Also, I have disabled caching on applets. > >> > >> > >> Looks like UIManager.get(this.getUIClassID()) in MicrobaComponent is > >> returning null or in other words UIManager cannot locate the defaults > for > >> the UI ClassID of the DatePicker > >> > >> Himanshu > >> > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Microba-controls mailing list > > Mic...@li... > > https://lists.sourceforge.net/lists/listinfo/microba-controls > > |
From: Himanshu R. <him...@gm...> - 2008-09-15 12:02:11
|
OK....if I cache applets, it does not help... On Mon, Sep 15, 2008 at 11:53 AM, Himanshu Ranavat < him...@gm...> wrote: > Hi, > > I am using DatePicker in an applet. (JRE - 1.5.12 and JDK 1.5) > If I change the page and visit the page with the applet again, the date > picker does not instantiate. this is the stack trace: > > Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException > at java.util.Hashtable.remove(Unknown Source) > at javax.swing.UIDefaults.put(Unknown Source) > at > com.michaelbaranov.microba.common.MicrobaComponent.updateUI(MicrobaComponent.java:41) > at > com.michaelbaranov.microba.calendar.CalendarPane.<init>(CalendarPane.java:195) > at > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:120) > at > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:105) > > Any Ideas or work arounds. (If I restart the browser everything works > fine). Also, I have disabled caching on applets. > > > Looks like UIManager.get(this.getUIClassID()) in MicrobaComponent is > returning null or in other words UIManager cannot locate the defaults for > the UI ClassID of the DatePicker > > Himanshu > |
From: Himanshu R. <him...@gm...> - 2008-09-15 11:53:23
|
Hi, I am using DatePicker in an applet. (JRE - 1.5.12 and JDK 1.5) If I change the page and visit the page with the applet again, the date picker does not instantiate. this is the stack trace: Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException at java.util.Hashtable.remove(Unknown Source) at javax.swing.UIDefaults.put(Unknown Source) at com.michaelbaranov.microba.common.MicrobaComponent.updateUI(MicrobaComponent.java:41) at com.michaelbaranov.microba.calendar.CalendarPane.<init>(CalendarPane.java:195) at com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:120) at com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:105) Any Ideas or work arounds. (If I restart the browser everything works fine). Also, I have disabled caching on applets. Looks like UIManager.get(this.getUIClassID()) in MicrobaComponent is returning null or in other words UIManager cannot locate the defaults for the UI ClassID of the DatePicker Himanshu |
From: Himanshu R. <him...@gm...> - 2008-09-10 23:27:51
|
Ok So I increase the height of the applet, so the pop up calendar menu seems to now open up within the applet. and everything seems to work fiine...Thanks again On Wed, Sep 10, 2008 at 4:17 PM, Himanshu Ranavat < him...@gm...> wrote: > > Well....the whole thing is in a applet and looks like the pop up menu > containing the calendar is opening outside the applet and over the > containing web page....let me try to make a reproducible case tonight > (PST)..... > > On Wed, Sep 10, 2008 at 3:42 PM, Michael Baranov < > mic...@gm...> wrote: > >> Hi! >> >> To help you I need a short standalone example reproducing it. The guy >> who reported this disappeared and no-one popped up with similar >> problem... until now? ;-) >> Thanks >> > Actually, my problem may be similar to >> > >> http://sourceforge.net/mailarchive/message.php?msg_name=114085.921.qm%40web23105.mail.ird.yahoo.com >> > >> > On Wed, Sep 10, 2008 at 3:13 PM, Himanshu Ranavat < >> > him...@gm...> wrote: >> > >> >> Hi, >> >> >> >> I am using a scrollpane which contains a panel X. This Panel X contains >> a >> >> form (your regular two column form which like , name:___ and next line >> >> address: ___, etc) laid out using a SpringLayout. At the bottom of the >> form >> >> I am using the Date Picker. When I click on the button, the dropdown >> opens >> >> up containing the calendar. THe dropdown seems to open up over the >> scroll >> >> bar. If I click in the calendar, it simply closes, the text field is >> not >> >> updated with a new date. This happens even if the date picker is placed >> at >> >> the top of the form. >> >> >> >> Any help will be appreciated >> >> >> >> Thanks >> >> Himanshu >> >> >> > >> > >> > ------------------------------------------------------------------------ >> > >> > >> ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > >> > >> > ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Microba-controls mailing list >> > Mic...@li... >> > https://lists.sourceforge.net/lists/listinfo/microba-controls >> >> > |
From: Himanshu R. <him...@gm...> - 2008-09-10 23:17:51
|
Well....the whole thing is in a applet and looks like the pop up menu containing the calendar is opening outside the applet and over the containing web page....let me try to make a reproducible case tonight (PST)..... On Wed, Sep 10, 2008 at 3:42 PM, Michael Baranov <mic...@gm...>wrote: > Hi! > > To help you I need a short standalone example reproducing it. The guy > who reported this disappeared and no-one popped up with similar > problem... until now? ;-) > Thanks > > Actually, my problem may be similar to > > > http://sourceforge.net/mailarchive/message.php?msg_name=114085.921.qm%40web23105.mail.ird.yahoo.com > > > > On Wed, Sep 10, 2008 at 3:13 PM, Himanshu Ranavat < > > him...@gm...> wrote: > > > >> Hi, > >> > >> I am using a scrollpane which contains a panel X. This Panel X contains > a > >> form (your regular two column form which like , name:___ and next line > >> address: ___, etc) laid out using a SpringLayout. At the bottom of the > form > >> I am using the Date Picker. When I click on the button, the dropdown > opens > >> up containing the calendar. THe dropdown seems to open up over the > scroll > >> bar. If I click in the calendar, it simply closes, the text field is not > >> updated with a new date. This happens even if the date picker is placed > at > >> the top of the form. > >> > >> Any help will be appreciated > >> > >> Thanks > >> Himanshu > >> > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Microba-controls mailing list > > Mic...@li... > > https://lists.sourceforge.net/lists/listinfo/microba-controls > > |
From: Michael B. <mic...@gm...> - 2008-09-10 22:43:22
|
Hi! To help you I need a short standalone example reproducing it. The guy who reported this disappeared and no-one popped up with similar problem... until now? ;-) Thanks > Actually, my problem may be similar to > http://sourceforge.net/mailarchive/message.php?msg_name=114085.921.qm%40web23105.mail.ird.yahoo.com > > On Wed, Sep 10, 2008 at 3:13 PM, Himanshu Ranavat < > him...@gm...> wrote: > >> Hi, >> >> I am using a scrollpane which contains a panel X. This Panel X contains a >> form (your regular two column form which like , name:___ and next line >> address: ___, etc) laid out using a SpringLayout. At the bottom of the form >> I am using the Date Picker. When I click on the button, the dropdown opens >> up containing the calendar. THe dropdown seems to open up over the scroll >> bar. If I click in the calendar, it simply closes, the text field is not >> updated with a new date. This happens even if the date picker is placed at >> the top of the form. >> >> Any help will be appreciated >> >> Thanks >> Himanshu >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Microba-controls mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microba-controls |
From: Himanshu R. <him...@gm...> - 2008-09-10 22:31:28
|
Actually, my problem may be similar to http://sourceforge.net/mailarchive/message.php?msg_name=114085.921.qm%40web23105.mail.ird.yahoo.com On Wed, Sep 10, 2008 at 3:13 PM, Himanshu Ranavat < him...@gm...> wrote: > Hi, > > I am using a scrollpane which contains a panel X. This Panel X contains a > form (your regular two column form which like , name:___ and next line > address: ___, etc) laid out using a SpringLayout. At the bottom of the form > I am using the Date Picker. When I click on the button, the dropdown opens > up containing the calendar. THe dropdown seems to open up over the scroll > bar. If I click in the calendar, it simply closes, the text field is not > updated with a new date. This happens even if the date picker is placed at > the top of the form. > > Any help will be appreciated > > Thanks > Himanshu > |
From: Himanshu R. <him...@gm...> - 2008-09-10 22:14:00
|
Hi, I am using a scrollpane which contains a panel X. This Panel X contains a form (your regular two column form which like , name:___ and next line address: ___, etc) laid out using a SpringLayout. At the bottom of the form I am using the Date Picker. When I click on the button, the dropdown opens up containing the calendar. THe dropdown seems to open up over the scroll bar. If I click in the calendar, it simply closes, the text field is not updated with a new date. This happens even if the date picker is placed at the top of the form. Any help will be appreciated Thanks Himanshu |
From: Greg C. <cau...@gm...> - 2008-09-08 02:25:31
|
Hmm, so theoretically I could use STYLE_MODERN - but there is a bug in Swings JPopupMenu (you can't choose the month). so I can't :-) On Sun, Sep 7, 2008 at 9:54 PM, Michael Baranov <mic...@gm...> wrote: > Greg, > try changing the style. Make sure you read readme and FAQ ;-) > > Michael. >> Just some feedback from users on the very nice calendar control - one >> person said it would be great if they could 'jump' to a year in the >> future or past without having to go one year at a time. >> >> So perhaps one could have the year as a combo list that you could drop >> down and select the year from . I guess the same applies to the >> month. >> >> I expect thats not too easy :-) >> >> thanks! >> >> Greg >> > > -- Greg Caulton Principal PatientOS Inc. Cell: (857) 869-0394 Fax: (857) 241-3022 |
From: Michael B. <mic...@gm...> - 2008-09-08 01:54:10
|
Greg, try changing the style. Make sure you read readme and FAQ ;-) Michael. > Just some feedback from users on the very nice calendar control - one > person said it would be great if they could 'jump' to a year in the > future or past without having to go one year at a time. > > So perhaps one could have the year as a combo list that you could drop > down and select the year from . I guess the same applies to the > month. > > I expect thats not too easy :-) > > thanks! > > Greg > |
From: Greg C. <cau...@gm...> - 2008-09-08 01:52:20
|
Just some feedback from users on the very nice calendar control - one person said it would be great if they could 'jump' to a year in the future or past without having to go one year at a time. So perhaps one could have the year as a combo list that you could drop down and select the year from . I guess the same applies to the month. I expect thats not too easy :-) thanks! Greg -- Greg Caulton Principal PatientOS Inc. Cell: (857) 869-0394 Fax: (857) 241-3022 |
From: Greg C. <cau...@gm...> - 2008-08-13 23:11:14
|
Works perfectly for me ! I am able to clear the selection, flip to a month without having a date selected - very cool stuff. thanks! Greg On 8/13/08, Michael Baranov <mic...@gm...> wrote: > Greg, > Please test this. Make sure it works as expected both for DatePicker and > CalendarPane itself. > > Michael. > > > Looks good to me ! I assume that is still a code change for you ( I > > don't have a CalendarPanelUI right) > > > > On 8/12/08, Michael Baranov <mic...@gm...> wrote: > > > > > > > Greg, > > > DatePicker is derived from CalendarPane so I don't want DatePicker to > > > inherit methods that are not related to it from CalendarPane. However, I > > > see a way -- use UI delegate which are different for DatePicker and > > > CalendarPane. The code might look something like this: > > > > > > CalendarPanelUI ui = (CalendarPanelUI) cPanel.getUI(); > > > ui.observeMonth(2009, Calendar.MAY); > > > > > > What about this? This will take care of your special needs... > > > Michael. > > > > > > > > > > Awefully nice of you if you can. I was thinking of a few options on > > > > CalendarPane > > > > > > > > a) setDate(null) change so it does not change the currently selected > month > > > > of course that might affect your community > > > > > > > > b) setMonth(int month) which just changes the month and the calendar > > > > but does not select a date. Perhaps that is a little funky behaviour > > > > though so how about > > > > > > > > c) clearSelection() which clears the selection > > > > > > > > but hang on now you have got me thinking c) is probably already > > > > possible... actually no I just checked - I thought I might be able to > > > > change the foreground color selection to white to hide it - but it > > > > looks like the color map cannot be modified at runtime? > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Microba-controls mailing list > > > Mic...@li... > > > > https://lists.sourceforge.net/lists/listinfo/microba-controls > > > > > > > > > > > > > > > > > > > > -- Greg Caulton Principal PatientOS Inc. Cell: (857) 869-0394 Fax: (857) 241-3022 |