Elizabeth
Elizabeth
LTLeaning Technologies
Created by Elizabeth on 3/19/2024 in #support
CheerpJ missing functionality of original Jar file
Thank you so much for all the help. Everything seems to be working now.
14 replies
LTLeaning Technologies
Created by Elizabeth on 3/19/2024 in #support
CheerpJ missing functionality of original Jar file
I am unaware of how to "back out" of a folder with Java since the images are stored in the src folder but the class files are stored in the package. Would it be easier to move the files somewhere else or is there a way to reroute the way I retrieve the images?
14 replies
LTLeaning Technologies
Created by Elizabeth on 3/19/2024 in #support
CheerpJ missing functionality of original Jar file
Thanks for the help. However, I have a custom png icon (with an itemListener) that doesn't show up at all. It is supposed to appear in the top right in the menu bar. Clicking it allows for mode toggling.
14 replies
LTLeaning Technologies
Created by Elizabeth on 3/19/2024 in #support
CheerpJ missing functionality of original Jar file
If there needs to be more clarification, let me know. Using Visual Studio Code, I run a local server using the add-on "Live Server" by Ritwick Dey. After loading the web page's HTML, CheerpJ opens Minesweeper. In the middle, the dialog box prompts for a "Number of Rows" and a "Number of Columns". If you input 7 for "Number of Rows" and 7 for "Number of Columns", a 7 by 7 grid appears. Clicking any box of the grid makes the clicked box turn a light blue momentarily. Nothing happens afterward. If the same box is clicked 3 consecutive times, the entire board will reveal blank spaces populated by "bombs" and a dialog box saying "Congratulations! You Won! Do you want to start a new game?" will pop up. Clicking the "yes" option will recreate the initial prompt of inputting rows and columns. However, when clicking "OK" the window everything except for the header and the menu bar is blank. What should happen when a box is clicked, a random shape of connected boxes will appear with numbers at the border (Mimicking the classic "Minesweeper" game). Additionally, there should be a custom graphic that is a small, pixelated rectangle (longer horizontally than vertically) within the menu bar aligned to the right-hand side with a flag on the left and a bomb on the right. It can toggle between 2 states, one with the word "FLAG spelled out, and the other with the word "BOMB" spelled out. However, this graphic does not appear at all.
14 replies
LTLeaning Technologies
Created by Elizabeth on 3/19/2024 in #support
CheerpJ missing functionality of original Jar file
Here is the GitHub link: https://github.com/Big-Sad/Site-for-Help I'm unfamiliar with GitHub, so please let me know if I need to change anything to make it more accessible. I'm not sure how to display a test case other than describe it. I would input 7 in both dialog box prompts and then when I click any tile, it doesn't load properly.
14 replies