Profile picture for user EasyAris

Hello. Why javax.swing classes work fine in ARIS 7.2 but do not work in ARIS 9.5? There is no any mistakes in code but swing window does not appear.

For example this code demonstrate empty JFrame window:

var jFrame = new javax.swing.JFrame();

jFrame.setTitle("123");

jFrame.setSize(100, 100);

jFrame.setLocation(100,100);

jFrame.setVisible(true);

by Frank Weyand
Posted on Tue, 01/21/2014 - 12:34

Hi,

In Reports? Well, how should a report bring up a dialog? Reports run on the server.

This might work in the case server and client run on the same machine. But that is an unwanted side effect. Now, in Java 1.7, there is an additional check for windows creation.

Bye,

Frank

0
by Konstantin Seleznev Author
Posted on Tue, 01/21/2014 - 13:07

Hello. Thank you.

Report on localserver. It works in ARIS 7.2 in reports and macros. In ARIS 9.5 it works only in macros. Bad news for me.

0
by Torsten Haase
Posted on Tue, 01/28/2014 - 09:14

Hi Konstantin,



Reports are designed to be executed on a remote server, so UI was never allowed here.



Technically: Creation of swing dialogs worked in older versions only because of Java <=1.6 was less strict in checking whether UI operations are executed in the AWT event dispatch thread. Reports always run in their own thread.



BR,

Torsten

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock