tsteward Well-Known Member Licensed User Longtime User Oct 11, 2014 #1 When I compile my app in release mode my File menu contains "DB Update" & "Close" When I compile in debug mode my File menu only contains "Close" Also just for testing I move my DBUpdate stuff to "Close" it tells me I must first initialize "ProgIndicator" which has been created with the design so I don't understand. Download export of app
When I compile my app in release mode my File menu contains "DB Update" & "Close" When I compile in debug mode my File menu only contains "Close" Also just for testing I move my DBUpdate stuff to "Close" it tells me I must first initialize "ProgIndicator" which has been created with the design so I don't understand. Download export of app
B billzhan Active Member Licensed User Longtime User Oct 12, 2014 #2 "DB Update" & "Close" are shown under debug and release mode here. (win 7 64bit, jre java 1.7.0_65-b19) Upvote 0
"DB Update" & "Close" are shown under debug and release mode here. (win 7 64bit, jre java 1.7.0_65-b19)
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2014 #3 There is a missing layout file (wait.fxml). Upvote 0
tsteward Well-Known Member Licensed User Longtime User Oct 12, 2014 #4 Its actually not used. Dunno why export didn't give it to you but here it is. Attachments wait.zip wait.zip 435 bytes · Views: 356 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2014 #5 Seems like scene builder has generated an invalid fxml file. Open Main1.fxml with a text editor and change <fx:root... line to <AnchorPane... You also need to change the closing element. See wait.fxml for the correct structure. Upvote 0
Seems like scene builder has generated an invalid fxml file. Open Main1.fxml with a text editor and change <fx:root... line to <AnchorPane... You also need to change the closing element. See wait.fxml for the correct structure.
tsteward Well-Known Member Licensed User Longtime User Oct 12, 2014 #6 I have edited the file and now it wont load at all. Dont know what I have done wrong. Attachments Main1.zip Main1.zip 938 bytes · Views: 356 Upvote 0
tsteward Well-Known Member Licensed User Longtime User Oct 12, 2014 #7 OK I have managed to repair main1.fxml Still when compiling in debug mode the menu item is missing but not in release mode. Upvote 0
OK I have managed to repair main1.fxml Still when compiling in debug mode the menu item is missing but not in release mode.
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2014 #8 Can you upload the updated project? Upvote 0
tsteward Well-Known Member Licensed User Longtime User Oct 12, 2014 #9 Here is the updated version Download Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 13, 2014 #10 The menu does appear here in debug mode: Note that you should set the menu anchors to fill the entire form width. Upvote 0
The menu does appear here in debug mode: Note that you should set the menu anchors to fill the entire form width.
tsteward Well-Known Member Licensed User Longtime User Oct 13, 2014 #11 The menu bar appears but not all menu items. "DB Update" is not available in debug mode. Attachments Release Mode.jpg 5.9 KB · Views: 424 Debug Mode.jpg 4.7 KB · Views: 445 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 13, 2014 #12 I've tested it without the database code in AppStart and it does show here. Can you comment the database related code and test it? Upvote 0
I've tested it without the database code in AppStart and it does show here. Can you comment the database related code and test it?
tsteward Well-Known Member Licensed User Longtime User Oct 13, 2014 #13 Ok commented out all d code from app start and no different. It seems like it loads a different fxml file because ProgIndicator (my progressindicator) which is created in the fxml is not initialised. In fact I just noticed when using the ide menu to goto edit layout any changes I make in scene builder only appear in the a compiled release mode, not in debug mode. So there must be different fxml files somewhere for debug vs release Upvote 0
Ok commented out all d code from app start and no different. It seems like it loads a different fxml file because ProgIndicator (my progressindicator) which is created in the fxml is not initialised. In fact I just noticed when using the ide menu to goto edit layout any changes I make in scene builder only appear in the a compiled release mode, not in debug mode. So there must be different fxml files somewhere for debug vs release
tsteward Well-Known Member Licensed User Longtime User Oct 13, 2014 #14 I just exported my app and put it into a new directory and all works fine - problem fixed just dont know how I caused it in the first place Upvote 0
I just exported my app and put it into a new directory and all works fine - problem fixed just dont know how I caused it in the first place