PSwing includes the following components (please refer to the API documentation for complete information on each component):
Our signature component. PComboBox is an enhanced JComboBox that behaves more like a typical GUI application combo box. The user types the viewable string of the item they want to select, and the closest match will be selected, instead of the default Java functionality which only looks at the first letter of each string in the list.
Note: Remember that you must call buildIndex() on PComboBox after you have added all items.
An easy-to-use date component. Includes a popup date calendar. And provides a getDate() method to return the selected date as java.util.Date.
An enhanced version of PComboBox. Contains all the functionality of PComboBox plus a "search" panel that allows the user to enter just a few letters to quickly narrow down a very long list. Check it out!
Note: Remember that you must call buildIndex() on PSearchCombo after you have added all items.
A simple tool to allow users to select a color. Basically this is a JButton that displays a color. When the user clicks the button, a dialog that contains the JColorChooser pops up, allowing the user to change the color. getColor() method returns the selected color as java.awt.Color.
Simple component to allow users to select a font. Includes a PComboBox containing all font families on user's computer, plus components for size and bold/italic. Returns the selected font via getSelectedFont().
A JTextField optomized for int values. Will not let user enter a non-int value. No error message pops up, however. Simply re-sets to previous int value if user enters a non-int value. Also right-aligned by default. Returns int value through getInt() method.
Note: A bug in Java 1.4.0 causes strange behavior when you tab between PSwing components. This behavior does not occur if you are using JVM 1.3.x or 1.4.1.x.
|