Sun Java Solaris Communities My SDN Account Join SDN
 
New to Java Programming Center — Community
Getting Started With Java Technology
Tutorials, articles, and other learning tools for new developers

You can participate in the developer community in a number of ways: forums, user groups, attending events, etc. In addition, you can share code in the SDN share program. SDN Share is the place to share code and technical tips. Vote and comment on the latest posts from your peers.


Recent Posts:  Subscribe to the SDN Share Feed


 
 
How to Change a Java Program into Reusable API
Posted by amajko on Mon, 22 Sep 2008 14:47:40 PDT
I am a mid-level java programmer who has come up with ways of improving my beginning java programs.  One way is the expand the specifics of a Java program so that it can be used as an API, callable by other programs.  This gives a flexibility to that program it hadn't had before. I am a test engineer for Java applications and have written many test plans and summary documents on various Java test cycles.  

 
Defensive Loading of Trusted Applets
Posted by AndrewThompson64 on Sat, 16 Aug 2008 00:51:22 PDT
An example of loading trusted applets in a 'defensive' way, so that they provide logical feedback to a user who refuses the digitally signed code. This applet provides a JEditorPane to view documents identified using a JFileChooser.  If the user decides not to Run the digitally signed code, a standard message will be displayed in the JEditorPane to indicate what needs to be done, to enable the trusted version of the applet. See also the live demo at http://pscode.org/test/docload/  

 
Comma Separated Values (CSV) Splitter
Posted by corlettk on Thu, 7 Aug 2008 07:12:35 PDT
This is just another Whatever Separated Values string splitter. I thought someone might find it useful. It's only mark of distinction over the others (there are plenty) which I've looked at is they all trim the field-data, in this one trimming is configurable, apart from that it's an example of "raw" string parsing using Java. Tested on 1.6.0_04-b12 on Vista Pro.  

 
Store Application Settings and Components
Posted by AndrewThompson64 on Sat, 26 Jul 2008 05:44:26 PDT
How do I find the application path? This is a FAQ related to storing application configuration files, or accessing tools (e.g. a database or plug-in directory) used by an application. The 'smart answer' to this question is "store the data in a sub-directory of user.home, based on the package name". This is not a direct answer to the original question, but it is usually the best strategy to achieving a solution.  Finding the application's path is tricky, and usually unnecessary. Having provided this advice many times, I dec ......  

 
Show Exported Date of a Oracle Dump File
Posted by thiru.k on Sat, 12 Jul 2008 13:09:45 PDT
Code sample to show oracle dump exported date.  

 
TNSNames.ora parser
Posted by thiru.k on Sat, 12 Jul 2008 13:05:46 PDT
Oracle tnsnames.ora  parser.  

 
ScriptEngine JavaScript Evaluator
Posted by AndrewThompson64 on Fri, 11 Jul 2008 10:26:36 PDT
Example of using the ECMAScript (JavaScript) engine provide in J2SE 6 to evaluate simple JavaScript expressions. The ECMAScript engine is the only one available 'out of the box', but others can be added using the service provider mechanism.