• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Where to share code?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 https://coderanch.com/how-to/java/PageFormatting page tells you about formatting options, and the https://coderanch.com/how-to/java/SandBox is for playing around with the syntax. You can log in with your Saloon username/password.
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
code.google.com, github.com, sourceforge.com, etc..
 
Mark Lasby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 https://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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I found some pretty shells, some sea glass and this lovely tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic