Тёмный

How to use Date Range Chooser with Java Swing 

Ra Ven
Подписаться 14 тыс.
Просмотров 10 тыс.
50% 1

Java Swing DateChooser
This video show how use date range chooser and filter data from mysql database using java swing.
► More Tutorial :
► Animation Tutorial : • java animation tutorial
► FlatLaf Tutorial : • FlatLaf Tutorial
🙏🙏🙏 Support me by subscribe 🙏🙏🙏
► Subscribe now : ru-vid.com...
► Any question comment below
► More : www.javaswingdev.com
► DateChooser source code : github.com/DJ-Raven/datechoos...
► For support me join now
/ @laingraven

Опубликовано:

 

27 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 73   
@antoniofarfan265
@antoniofarfan265 Год назад
Hey bro, thanks a lot for sharing your knowledge and your time. You're really the best. 💯👍🏻♥️🥇
@LaingRaven
@LaingRaven Год назад
So nice of you. Thank you
@ZandorDaysev
@ZandorDaysev Год назад
Where have you been like... 3 years ago 🥲 I was praying for a calendar selector like this...
@LaingRaven
@LaingRaven Год назад
Thank you
@olanrewajusaka3991
@olanrewajusaka3991 Год назад
Good morning bro, trust me you doing a a great job bro it would have been nicer to male all these tools yo making a control tools for click and drag create everything as a jar file or a plugin so it can be download and be using them as a click and drag tool
Год назад
Hi, Ra Ven, Excellent work. Can you make a JInternalFrame Transparent?
@NaviBoyy
@NaviBoyy Год назад
thanks bruh ! it's very user friendly 🤩
@LaingRaven
@LaingRaven Год назад
Welcome 👍
@dexxxterrr908
@dexxxterrr908 5 месяцев назад
perfect tuto keep going
@LaingRaven
@LaingRaven 5 месяцев назад
Thanks a lot!
@zp_py
@zp_py Год назад
Love your channel
@LaingRaven
@LaingRaven Год назад
Thank you
@joeyalivarvar7280
@joeyalivarvar7280 Год назад
Thank you so much sir 😁
@LaingRaven
@LaingRaven Год назад
you're welcome
@omartec7964
@omartec7964 Год назад
Great
@LaingRaven
@LaingRaven Год назад
Thank you
@younesdamous
@younesdamous Год назад
You are the best
@LaingRaven
@LaingRaven Год назад
Thank you
@nikoovelar2068
@nikoovelar2068 Год назад
this is very good my friend, could you show how to make a tree table with java swing?
@LaingRaven
@LaingRaven Год назад
I will check it
@kenzar2966
@kenzar2966 10 месяцев назад
Hello sir thank you
@LaingRaven
@LaingRaven 9 месяцев назад
you're welcome
@vanmanhtran4813
@vanmanhtran4813 3 месяца назад
/Thank you alot, sir. I want to integrate this awesome component to my project. Did you have a jar library version of it?
@LaingRaven
@LaingRaven 3 месяца назад
Here github.com/DJ-Raven/datechooser/tree/master/library
@anerfinity3924
@anerfinity3924 Год назад
Very nice, Do you have jbutton round shadow tutorial?
@LaingRaven
@LaingRaven Год назад
Not yet! Bro
@hajainaandrialazantsoa9215
@hajainaandrialazantsoa9215 Год назад
Thanks for sharing💯....I have a question:how can i disable selection previous days of the "getfromdate" ?i mean i want toDate is always up than fromdate🙏
@LaingRaven
@LaingRaven Год назад
Try this : ch.setDateSelectable(new DateSelectable() { @Override public boolean isDateSelectable(Date date) { try { DateFormat df = new SimpleDateFormat("dd-MM-yyyy"); Date now = df.parse(df.format(new Date())); return date.after(now) || date.equals(now); } catch (ParseException e) { e.printStackTrace(); return false; } } });
@ishwow0318
@ishwow0318 Месяц назад
Hello! Is it possible to set the selection of dates disabled when the dates are already chosen? Like the calendars in hotel bookings. If so, how? Thank you!
@LaingRaven
@LaingRaven Месяц назад
You can use method setDateSelectable() to diable date, for sample check this : github.com/DJ-Raven/datechooser/blob/5ba7fec482e7ec8182c7d3d19c74663ef0ab18d0/src/test/java/com/raven/datechooser/demo/Demo.java#L37-L43
@user-ne3rp8zs5y
@user-ne3rp8zs5y Год назад
Can i use it in windows 10
@Mindy2812
@Mindy2812 Год назад
Excelent thanks, You´re a Great Master, How can I change the language? I need changed to spanish, please...
@LaingRaven
@LaingRaven Год назад
You can change this code : github.com/DJ-Raven/datechooser/blob/master/src/main/java/com/raven/datechooser/DateChooser.java#L46
@Mindy2812
@Mindy2812 Год назад
@@LaingRaven Thank you, I hope that one day I can take your face-to-face coursethanks...
@nemeshine
@nemeshine 2 месяца назад
excuse me sir where is the test java,or which java file should I compile?
@therealityshow8264
@therealityshow8264 Год назад
Can i set it date choosing range . I mean raven datechooser calender can only selectable our min and max date ranges pls reply
@LaingRaven
@LaingRaven Год назад
Use method setDateSelectable ch.setDateSelectable(new DateSelectable() { @Override public boolean isDateSelectable(Date date) { return date.before(new Date()); } });
@shubham794
@shubham794 Год назад
How to create own datechooser swing control.
@musabnet
@musabnet Год назад
I will recode all my projects We waiting for more
@LaingRaven
@LaingRaven Год назад
Thank you
@ingridgarrido1176
@ingridgarrido1176 9 месяцев назад
How do I set a maximum selectable date? Thank you
@LaingRaven
@LaingRaven 9 месяцев назад
Use this method: github.com/DJ-Raven/datechooser/blob/35a9bae64a30cd3d193d3855fae2df382ec8059f/src/test/java/com/raven/datechooser/demo/Demo.java#L31
@ishwow0318
@ishwow0318 Месяц назад
hello sir how can i set the selectable date to only be in the present and future (past dates are disabled)
@LaingRaven
@LaingRaven Месяц назад
Here you can try this code : github.com/DJ-Raven/datechooser/blob/5ba7fec482e7ec8182c7d3d19c74663ef0ab18d0/src/test/java/com/raven/datechooser/demo/Demo.java#L37-L43
@vitorbg6880
@vitorbg6880 10 месяцев назад
Hey, how can I change the name of the days of the week? I need to translate them, could only translate the months until now
@LaingRaven
@LaingRaven 10 месяцев назад
Try with this : github.com/DJ-Raven/datechooser/issues/1 and update your jar to vs 1.4.1
@shell3371
@shell3371 2 месяца назад
is there a way to disable previous dates? except today and future dates?
@LaingRaven
@LaingRaven 2 месяца назад
Try with this datepicker and use this code : datePicker.setDateSelectionAble(date -> !date.isBefore(LocalDate.now()));
@shell3371
@shell3371 2 месяца назад
@@LaingRaven I managed to disable past dates and sundays: private void showDate() { panelDate.removeAll(); int month = monthToIndex(spMonth.getValue().toString()); int year = Integer.parseInt(spYear.getValue().toString()); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH, month); calendar.set(Calendar.DATE, 1); int startDay = calendar.get(Calendar.DAY_OF_WEEK) - 1; calendar.add(Calendar.DATE, -startDay); Calendar today = Calendar.getInstance(); for (int i = 1; i
@user-ne3rp8zs5y
@user-ne3rp8zs5y Год назад
how can i use it in glasspane popup it is going to back jpanel when click it and showing Opaque
@LaingRaven
@LaingRaven Год назад
Updated version 1.2 : github.com/DJ-Raven/datechooser/tree/master/library add it to your project then use this method : dateChooser.setLightWeightPopupEnabled(false);
@user-ne3rp8zs5y
@user-ne3rp8zs5y 11 месяцев назад
@@LaingRaven Thank you
@rodinandriamalaza4771
@rodinandriamalaza4771 Год назад
Is it possible to insert an audio file into a mysql database
@ZandorDaysev
@ZandorDaysev Год назад
In form of a blob
@rodinandriamalaza4771
@rodinandriamalaza4771 Год назад
@@ZandorDaysev thanks
@andresdavidptm6156
@andresdavidptm6156 Год назад
how can I change to dark mode, thank you
@LaingRaven
@LaingRaven Год назад
Watch this video : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-52zIj2Yeqiw.html
@andresdavidptm6156
@andresdavidptm6156 Год назад
@@LaingRaven thank you bro, you're the best
@HoangKimDucPH
@HoangKimDucPH Год назад
mã nguồn của anh khác code trong video quá
@LaingRaven
@LaingRaven Год назад
It's library source code
@eddergerardohernandezjimen529
@eddergerardohernandezjimen529 8 месяцев назад
How can i use another language ? plis
@LaingRaven
@LaingRaven 8 месяцев назад
By default english, to change to another language check this : github.com/DJ-Raven/datechooser/issues/1
@eddergerardohernandezjimen529
@eddergerardohernandezjimen529 7 месяцев назад
Thx I really admire your work @@LaingRaven
@nits1185
@nits1185 8 месяцев назад
Hello, a very rookie coder here, the date chooser only shows dates between 1-9 and the rest is filled with .., and the between date selected didnt work either, i already add all necessary jar and imports, pls help
@LaingRaven
@LaingRaven 8 месяцев назад
Use this : ch.setDateSelectionMode(DateChooser.DateSelectionMode.BETWEEN_DATE_SELECTED); To use date between. Date chooser show ... because of margin of jbutton. did you use flatlaf with your project ?
@nits1185
@nits1185 8 месяцев назад
@@LaingRaven Already did sir, i add your github library files to my library and followed ur steps as in the video but the problem persist, dates only showing number 1-9 and the between date selected is not working, is there any misssteps in my implementation?
@LaingRaven
@LaingRaven 8 месяцев назад
I thing you don't use flatlaf look and feel. but I have fixed on nimbus look and feel. by update to v1.4.1 : github.com/DJ-Raven/datechooser/tree/master/library And between date not working I already test it work well, pls check your code again
@nits1185
@nits1185 8 месяцев назад
it workss thank you very much!! much appreciated for giving this kind of stuff for free
@nits1185
@nits1185 8 месяцев назад
Hi bro i got another thing to ask, if i want to make past date cannot be selected, should i use the setDateSelectable function? if yes then what value should i insert to the ()
@ramej10
@ramej10 Год назад
brother, this is another level, can you help me to correct the following error? : java.lang.NoClassDefFoundError: net/miginfocom/swing/MigLayout do i need to add that layout only?
@LaingRaven
@LaingRaven Год назад
Add all library in folder lib bro
Далее
This or That 🛍️
00:52
Просмотров 4,2 млн
УГАДАЙ ГДЕ ПРАВИЛЬНЫЙ ЦВЕТ?😱
00:14
Кто быстрее? (GTARP)
19:19
Просмотров 338 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 339 тыс.
Go Pointers: When & How To Use Them Efficiently
14:09
Brutally honest advice for new .NET Web Developers
7:19
Getting Started with Dapper in .NET
11:29
Просмотров 9 тыс.
Build a Date Time Picker in Java
14:53
Просмотров 30 тыс.
This or That 🛍️
00:52
Просмотров 4,2 млн