2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: Alex - a_sc I18N problem with JRTableModelDataSource 2006-03-23 01:59Hello! I have a problem generating a report based on a JRTableModelDataSource due to I18N. If I am correct, I have to define fields in iReport that correspond to the column names in my JTableModel in order to use a JRTableModelDataSource. I.e.: for a TableModel like this: private static final String[] COLUMN_NAMES = new String[]{"col1", "col2", "col3"}; DefaultTableModel tableModel = new DefaultTableModel(SOME_DATA, COLUMN_NAMES); I have to declare $F{col1}, $F{col2} and $F{col3} in iReport. The problem I have is that I can change the language settings in my application, thus having different column names depending on the language setting. Is there a way around this problem? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now