0

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.

mmc
  • 751
  • 2
  • 7
  • 12
MPavel
  • 11

2 Answers2

3

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!

enter image description here

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

enter image description here

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Chamith Chathuka
  • 605
  • 1
  • 6
  • 18
0

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.

JDatePicker screenshot

juanheyns
  • 86
  • 8