File tree Expand file tree Collapse file tree
cg/CodeGenerator/CodeGenerator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >pn.dev</groupId >
77 <artifactId >code-generator-gui-ollama</artifactId >
8- <version >2.0.4 </version >
8+ <version >2.0.5 </version >
99 <name >CodeGenerator-GUI</name >
1010
1111
5353 <dependency >
5454 <groupId >pn.dev</groupId >
5555 <artifactId >code-generator-ollama</artifactId >
56- <version >2.0.4 </version >
56+ <version >2.0.5 </version >
5757 </dependency >
5858 <dependency >
5959 <groupId >org.openjfx</groupId >
6565 <artifactId >javafx-fxml</artifactId >
6666 <version >${javafx.version} </version >
6767 </dependency >
68-
6968 <dependency >
7069 <groupId >org.junit.jupiter</groupId >
7170 <artifactId >junit-jupiter-api</artifactId >
Original file line number Diff line number Diff line change 5252
5353public class AppWish extends Application {
5454 private static final Logger log = LoggerFactory .getLogger (AppWish .class );
55- private static Stage mainStage ;
55+ public static Stage mainStage ;
5656 @ FXML
5757 public TextField tf_input ;
5858 @ FXML
@@ -65,8 +65,7 @@ public class AppWish extends Application {
6565 public Button btn_app_history ;
6666 @ FXML
6767 public Button btn_continue_on_application ;
68- @ FXML
69- public BorderPane bp_main ;
68+
7069 @ FXML
7170 public Button btn_StopGeneratedApp ;
7271 @ FXML
@@ -112,23 +111,6 @@ private void loadSplashScreen(Stage primaryStage) throws IOException {
112111 splashStage .show ();
113112 }
114113
115- private void loadDefaultScreen (Stage primaryStage ){
116-
117- Parent root = null ;
118- try {
119- root = FXMLLoader .load (requireNonNull (getClass ().getClassLoader ().getResource (DEFAULT_FXML_FILE )));
120- } catch (IOException e ) {
121- throw new RuntimeException (e );
122- }
123- mainStage = primaryStage ;
124- mainStage .setResizable (false );
125- primaryStage .setResizable (false );
126- primaryStage .setTitle (GUIConstants .DEFAULT_STAGE_TITLE );
127- Scene scene = new Scene (root );
128- primaryStage .setScene (scene );
129- primaryStage .show ();
130- System .out .println ("\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n " );
131- }
132114
133115 @ Override
134116 public void start (Stage primaryStage ) throws IOException {
Original file line number Diff line number Diff line change 55import javafx .fxml .Initializable ;
66import javafx .scene .Parent ;
77import javafx .scene .Scene ;
8+ import javafx .scene .control .Label ;
89import javafx .scene .image .Image ;
910import javafx .scene .image .ImageView ;
1011import javafx .stage .Stage ;
1112import javafx .util .Duration ;
13+ import pn .app_wish .AppWish ;
1214
1315import java .io .IOException ;
1416import java .net .URL ;
@@ -22,6 +24,8 @@ public class SplashScreenController implements Initializable {
2224 @ FXML
2325 private ImageView splashImage ;
2426
27+ @ FXML
28+ private Label label ;
2529
2630 @ Override
2731 public void initialize (URL url , ResourceBundle rb ) {
@@ -38,6 +42,8 @@ public void initialize(URL url, ResourceBundle rb) {
3842 Stage mainStage = new Stage ();
3943 mainStage .setResizable (false );
4044 mainStage .setScene (new Scene (root ));
45+
46+ AppWish .mainStage = mainStage ;
4147 mainStage .show ();
4248 } catch (IOException ex ) {
4349 // Handle exception
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22
3-
3+ <?import javafx .scene.control.*?>
4+ <?import javafx .scene.image.*?>
45<?import javafx .scene.layout.*?>
6+ <?import javafx .scene.text.*?>
7+
8+ <AnchorPane xmlns =" http://javafx.com/javafx/17.0.2-ea" xmlns : fx =" http://javafx.com/fxml/1" fx : controller =" pn.app_wish.controller.SplashScreenController" >
59
6- <?import javafx .scene.image.ImageView?>
7- <?import javafx .scene.image.Image?>
8- <AnchorPane xmlns =" http://javafx.com/javafx"
9- xmlns : fx =" http://javafx.com/fxml"
10- fx : controller =" pn.app_wish.controller.SplashScreenController"
11- >
12- <ImageView fx : id =" splashImage" preserveRatio =" true" >
10+ <ImageView fx : id =" splashImage" preserveRatio =" true" >
1311 <image >
1412 <Image url =" @shooting_star.png" />
1513 </image >
1614 </ImageView >
15+ <Label layoutX =" 168.0" layoutY =" 242.0" text =" AppWish Enterprise" textFill =" WHITE" >
16+ <font >
17+ <Font size =" 36.0" />
18+ </font >
19+ </Label >
20+
1721</AnchorPane >
Original file line number Diff line number Diff line change 66
77 <groupId >pn.dev</groupId >
88 <artifactId >code-generator-ollama</artifactId >
9- <version >2.0.4 </version >
9+ <version >2.0.5 </version >
1010
1111
1212 <description >The Java Application-Generator (pn.dev.code-generator-ollama) creates applications by giving a string of your desired features for a Java application, like this: AppSystem.StartCodeGenerator(String appWish)</description >
You can’t perform that action at this time.
0 commit comments