I am new to using Jasper and I am developing accounting software. Jasper helps me create nice reports using SQL queries, but is there a way to generate a report using data from jtable? Thanks!
Yes, you can create a JRDataSource from a table using JRTableModelDataSource .
Field names are the names of the columns returned by TableModel.getColumnNames() . You can also use COLUMN_<index> as the field name.
TableModel.getColumnNames()
COLUMN_<index>
Source: https://habr.com/ru/post/917994/More articles:Dynamically add a view to the end of RelativeLayout - androidCommand Line String Variable Comparison - command-lineCreate an instance of an instance from Iterator - javaGuava LoadCache - how to handle keys that do not exist in the backup storage - javaUsing jQuery to add metadata to title tag - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/917995/android-adding-components-to-relativelayout&usg=ALkJrhgy0vk-WngeXFzZEwECzkVTPnxzvAEntity Framework Code First: how to map a flat table to a class with nested objects - c #HttpClient coding in .NET 4.5 - c #Search for cursor position in JTextField - javaLaunch Apache Felix 4.0.2 on IntelliJ IDEA 11 - javaAll Articles