• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where to share code?  RSS feed

 
Mark Lasby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

If you're interested, the http://www.coderanch.com/how-to/java/PageFormatting page tells you about formatting options, and the http://www.coderanch.com/how-to/java/SandBox is for playing around with the syntax. You can log in with your Saloon username/password.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code.google.com, github.com, sourceforge.com, etc..
 
Mark Lasby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...

I am logged in to Java Ranch.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://www.coderanch.com/how-to/edit?DatePickerDialog (or replace the last part of the URL with whatever you think is appropriate).
 
Mark Lasby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the help. The code is loaded.

I suggest that a FAQ be added explaining how to add a page to the Wiki for us newbies.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is loaded.

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!