Tuesday, May 24, 2011

Swing Components

Swing Components is library that provides common user interface controls that aren't in the standard Swing toolkit.

Controls currently in the library
  1. JCalendarWidget
  2. JDatePicker
  3. JButtonMenuItem
  4. JSplitButton
  5. JIPTextField
  6. JCheckboxList
  7. Column Manager
JCalendarWidget,JDatePicker,JButtonMenuItem & JSplitButton has already been posted on this blog. For more details on them please navigate to the links provided in the list.

Tuesday, April 19, 2011

JCalendarWidget

JCalendarWidget is a highly customizable, multi lingual Calendar component for graphically picking a date.It renders a calendar including the days of the week, the weeks of the year, and the days of the month and can be easily used in GUI builders.

Screenshots:

JCalendarWidget 1
JCalendarWidget 1(Month Selection View)

Thursday, February 3, 2011

BouncyCastle Unleashed!

Bouncy Castle is a collection of cryptographic APIs for both Java  & C#. 

Installing the Java Cryptography Extension (JCE) Unlimited Strength Policy Files:

Download the archive jce_policy-6.zip from JavaSE Downloads page.
Copy the files local_policy.jar and US_export_policy.jar from the archive to the folder %JAVA_HOME%\jre\lib\security, overwriting the files already present in the directory.

Generating KeyPair
KeyPair caKeyPair = null;
        try {
            KeyPairGenerator  keyGen = KeyPairGenerator.getInstance("RSA");
            keyGen.initialize(1024);
            caKeyPair = keyGen.generateKeyPair();
        } catch (NoSuchAlgorithmException ex) {
            
        }

Sunday, January 2, 2011

JButtonMenuItem

JButtonMenuItem is a swing component to add buttons to the JMenuItem, like the edit MenuItem in Google Chrome. This is an easy to use control and can be added to the NetBeans palette. This control fires an buttonClicked event, if the button on the JButtonMenuItem is fired. The getActionCommand method of the event returns the text of the button pressed.

To handle the event you need to subscribe to JButtonMenuItemListener.

Screenshots: