× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

Has anyone ever used the JFormattedTextField to restrict data entry in 
JTextField so that it fits nicely into iSeries DB2 files?  I have my own 
custom JTextField developed which is similar but it is not as nice as this 
one from IBM.  It's part of the com.ibm.etools.iseries.ui package which 
can be found in iseriesut.jar in your WDSC directory (search will help you 
locate it).

The issue is regarding using the JFormattedTextField class is that when I 
drop these fields in using VE and try to change the properties of the 
field length, type, decimals, etc. I encounter uncaught exceptions (namely 
PropertyVetoException) .  I know that I can hand code the try / catch 
block to handle this but this is a pain considering I'm trying to save 
time by using the VE.  Can this be done automatically or something?

Also, if I try changing the type to numeric in the properties box but the 
method that is generated inserts "???" instead of 
"DataAttributes.DATATYPE_NUMERIC" (i.e. dataAttributes3.setDataType(???) )

Manually coded it seems like a real nice bean that I would like to use, 
especially considering there is table cell editor versions of it and a few 
other variations.  Can anyone tell me why this happens?  You should know 
that I am dropping the beans using the "Choose Bean" feature in the VE 
Palette.

Thanks,
Dean

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.