项目作者: ghasemel

项目描述 :
高级语言: Java
项目地址: git://github.com/ghasemel/javafx-stimulsoft-mysql.git
创建时间: 2018-07-06T12:32:03Z
项目社区:https://github.com/ghasemel/javafx-stimulsoft-mysql

开源协议:MIT License

下载


How to use Stimulsoft Reports in JavaFX with MySQL CircleCI

This project demonstrates integration of Stimulsoft Reporting tools with JavaFx.

Tools/Frameworks:

  • JDK 8
  • Maven
  • Stimulsoft Reporting
  • JavaFx
  • Swing
  • MySQL 5.7
  • Localization
  • Lombok

Customized Report Viewer

It also contains a Customized Report Viewer (ReportViewer class) with more controls based on Stimulsoft report viewer UI (StiViewerFx class).
With localization simplified feature, you can easily localize your report viewer. Two locale files are placed in Localization directory.
For supporting more languages just put your specific language file in this directory and send the name of it to ReportViewer class.

How to compile & build

to being able to compile and build the project you need following prerequisites:

  1. cd /path/to/project/root/directory/
  2. mvn clean package

it creates the jar file: /path/to/project/root/directory/target/javafx_stimulsoft-1.0-SNAPSHOT.jar

How to run

  • Install MySQL Download
  • Set MySQL configuration in Main.java file:
    1. private static final String MYSQL_IP = "localhost";
    2. private static final int MYSQL_PORT = 3306;
    3. private static final String MYSQL_USER = "root";
    4. private static final String MYSQL_PASS = "951963";
  • Copy following directories to the jar location:
    1. cp -r /path/to/project/root/directory/Localization /path/to/project/root/directory/target/
    2. cp -r /path/to/project/root/directory/Reports /path/to/project/root/directory/target/
  • Run the jar file in terminal/cmd: java -jar /path/to/project/root/directory/target/javafx_stimulsoft-1.0-SNAPSHOT.jar

How to set localization

Currently following locale supports:

  • English (en.xml)
  • Farsi (fa.xml)
    The default locale is English (en). To switch between them pass locale name as argument to the jar file.

    java -jar /path/to/project/root/directory/target/javafx_stimulsoft-1.0-SNAPSHOT.jar fa

Screenshots

  • Main Page, template selection:

    Main Page

  • Two sample templates:
    Main Page
    Main Page

License

The contents of this repository are covered under the MIT License.