Open OZimmermann opened 3 months ago
Hello @OZimmermann,
Thank you for the feedback and for reporting this issue. In the Virtual Programming Lab (VPL), the script that determines whether to use a text terminal or a graphical user interface (GUI) checks for specific Java classes in your code. Currently, it automatically switches to GUI mode if it detects any of the following classes in the Java files:
javax.swing.JFrame
javax.swing.JDialog
javax.swing.JOptionPane
javax.swing.JApplet
javafx.application.Application
javafx.application.Scene
If your Java program uses a different class for the GUI, please let me know so we can address this issue appropriately. As a workaround, you could temporarily add one of the recognized classes in a dummy manner, or modify your program to use one of the supported classes if feasible.
We are planning to introduce manual selection options for GUI mode in the near future to avoid such detection issues.
Best regards, Juan Carlos.
Hi Juan Carlos, thanks for your quick reply. I am now using VPL regularly via Moodle and my students like VPL :-)
I am using a collection of classes imported as a jar, which I have attached for reference. It's mainly the „viualisiere()" method in the "Graph_gewichtet" class in the "graphen" project. The following libraries are used import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.SwingUtilities; import java.awt.; import java.awt.event.;
I attached a screencast and the downloaded zip of VPL.
Kind regards Oliver
Hi, thank you very much for the great work. The installation under Ubuntu 64-bit went smoothly. The plugin in Moodle also works with Java program. However, when I try to start a program with a graphical user interface, I get the following error:
What can I do? Best regards Oliver