How to create your own window in the 'More Actions'

I want to create a window that you can launch the same way you launch the simulator (like how it says simulate robot code in the image).


I know how to create a window such as through JFrame, but I couldn’t figure out how I could make the window be launched through the 'More Actions' and I am not sure whether or not you can link a JFrame to only be launched through that.
If it applies to the question, the window will display an image (of the field) and I will be able to plot and connect points on the image, as well as select any shapes it may create.

Also am I using the correct category to ask this question, if couldn’t find one about Technical and Visual Studio Code and am not sure if I just somehow missed it.

JFrame is a Java GUI class. Visual Studio Code is a TypeScript/Electron application—it can’t just pop up a Java GUI window. However, it can launch other applications on the system, so you could build a Java application and have vscode launch it; the easiest way to add an option in vscode to launch an application is via tasks.json.

The menu in your screenshot is provided by the WPILib vscode extension, and I don’t think we have any hooks to specifically add items to that menu.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.