Where is the best place to share code for Swing components?
I am relatively new to Java.
I have developed an Android app for my smart phone which I use to log the various tasks that I work on. This helps a lot when it comes time to fill out my timesheet on Friday.
When my colleagues saw it they asked if I could convert it to a desktop app. While developing the desktop version I had to develop a DatePickerDialog in swing like the one in Android.
I would like to share this code with others in hopes of saving them the trouble of reinventing the wheel and to get some feedback on my code.
Where is the best place to do this?
Our wiki here at JavaRanch has a section for code examples called the Code Barn. The "Intermediate Java" page actually points to a few Swing examples already; if you don't mind creating a page there, we can make sure it gets properly linked etc.
I went to the Code Barn to start a page as suggested. The Intermediate area has READ ONLY in the top right corner. If I try to upload a file I get asked for my Java Ranch password over and over again. What am I doing wrong?
Our wiki here at JavaRanch has a section for code examples called the Code Barn. ... if you don't mind creating a page there ...
Sorry for not being specific enough - yes, I'd need to add the link to that particular page, but you can create a new page, like https://coderanch.com/how-to/edit?DatePickerDialog (or replace the last part of the URL with whatever you think is appropriate).
It's looking good (and, more importantly, it's working well :-). Thanks for the contribution! I did some trivial format editing to bring it in line with the other examples, but nothing functional. Feel free to alter/expand as you see fit.
I suggest that a FAQ be added explaining how to add a page to the Wiki for us newbies.
Yes, that's a good idea.
Everybody's invited. Except this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners