I have downloaded Microba DatePicker and JDatePicker. Can I make it always stay popped up from the start (without actioning the button, and even after choosing the date to remain popped up). What I actually want is getting just the calendar itself, without the other elements.
2 Answers
I have checked Microba components.
You have mentioned
What I actually want is getting just the calendar itself, without the other elements.
in your question.
So you can use calenderPane instead of using DatePicker on microba components.
You can use this calendar because it always remain popped!
Just use the method getDate()
to retrieve the selected date to your textbox or whatever you want!
Here is the link to microba calanderpane doucumentation
See it works
Simply use this code to get text to your text box.
Date date = calendarj.getDate();
SimpleDateFormat df = new SimpleDateFormat("YYYY-MM-dd");
String format = df.format(date);
txtDate.setText(format);
I hope it will help you a lot

- 732,580
- 175
- 1,330
- 1,459

- 605
- 1
- 6
- 18
Using jdatepicker library you could also create a JDatePanel widget which is always visible.
On the screenshot, on the left hand is the widget embedded as a JDatePanel, on the right hand you see the widget as a JDatePicker which is collapsed.

- 86
- 8