NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Browse a Listing

Subscribe to this category

Top > Java > Tips and Tutorials > Swing

Popular Tags

Free Script links
Sort By :
While the JFormattedTextField component looks like JTextField, it acts completely different. In the simplest case, you can provide an input mask like "(###) ###-####" for a telephone number, and it will not accept any input that doesn't follow that format. In more complicated cases, there is both a display formatter and an input formatter. For example, the default date formatter permits scrolling through the available months or days based upon where the cursor is located while editing.

When working with JFormattedTextField, acceptable input is either explicitly specified by the mask or specified by a value for the component. In the latter case, the component uses the Factory design pattern to look up the default formatters for the class of the specified value. The DefaultFormatterFactory component comes with preinstalled formatters for dates, numbers, java.text.Format subclasses, and a catchall formatter for everything else
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 7 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This page explain how to capture the screen using Java swing.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Feb 28, 2008 Hits: 0 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Category Jump :