Skip to content

Commit

Permalink
Regenerate Native image configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup committed May 27, 2024
1 parent bad3dc7 commit cc72817
Show file tree
Hide file tree
Showing 6 changed files with 834 additions and 5,947 deletions.
15 changes: 15 additions & 0 deletions dev.thihup.jvisualg.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>${mainClass}</mainClass>
<options>
<option>-DautoClose=${autoClose}</option>
</options>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.print.PrinterException;
import java.io.IOException;
import java.time.LocalDate;
Expand Down Expand Up @@ -55,10 +57,18 @@ public class SwingIDE extends JFrame {
public SwingIDE() {
FlatLightLaf.setup();

setDefaultCloseOperation(EXIT_ON_CLOSE);

dosContent.setBackground(Color.BLACK);
dosContent.setForeground(Color.WHITE);
dosContent.setFont(Font.getFont(Font.MONOSPACED));
dosWindow.add(dosContent);
dosWindow.addWindowListener(new WindowAdapter() {
@Override
public void windowClosed(WindowEvent e) {
dosWindow.setVisible(false);
}
});

interpreter = new Interpreter(new IO(this::readVariable, this::handleOutputEvent), programState -> {
SwingUtilities.invokeLater(() -> {
Expand Down
Loading

0 comments on commit cc72817

Please sign in to comment.