I am learning how to build program in java FX using IntelliJ and Scenebuilder but I have a problem in how to create a program can implement many functions
my questions are
How can I build an application to use multiple windows?
start window includes many choices (many subprograms ) each choice replace the window by its content
how to go back to the main menu window?
To open a new Window, you can call new Stage(), which creates a new Window, for which you can then set the content by using set Scene().
Don't forget to then show your Stage by using show().
Related
I have two windows of JetBrains IDEA (or of WebStorm or of any other JetBrains IDE) opened.
How to make the second window to be equally fully equipped as the first window?
Now, only first window is fully-fledged. Second window is missing all the "tool windows" (tool bars).
I am usually working on two different issues of one project.
So I would need to have opened the files of the first issue in the first IDEA window - and the files of the second issue to be opened in the second IDEA window.
All the files are from the same project.
(I do not need to have any file opened in both IDEA windows, usually)
The solution is in comment of #Andrey:
You can not open two main IDE windows for the same project. Only as detached editor. Why do you need it? If you are using Task management - there is a feature of Contexts that you may save and switch between.
I have recently finished building a mini-app using IntelliJ IDEA in javaFx. It is my first time using this ide and language, so I am having difficulties manufacturing an exe file. I watched all sorts of youtube videos and different methods.
It does generate an exe file but when I click it, nothing happens.
Any idea?
I do know that with IntelliJ Ultimate edition you can build down with an EXE file.
There are a couple things you need to double check.
First, is that in your project structure under artifacts, you have the "Type:" set to JavaFx Application(which is on the top right of the window).
Secondly, switch to the Java FX tab and make sure Application class is set to your main class.
Thirdly, Select "all" under Native bundle: which is located towards the bottom of the window.
Lastly, Select the Output Layout tab and move all your available elements to output root then click on the module of your application and look at the settings that appear at the bottom. "Make sure that main class setting is in fact the main class to your application.
Side note: make sure you delete your artifacts build folder just to start from a clean slate. Also make sure your Environment variables are set to the system path correctly.
I have my Tool Windows in specific parts of the screen (e.g. Version Control and Terminal occupying half of the bottom part) but every time I open a different project with IntelliJ the window positions are back to the default ones. It also opens windows I don't usually use (e.g. Ant Build).
Is there a way to save those settings globally and not per project?
The Window > Store Current Layout as Default and Window > Restore Default Layout options seem to work, with the extra step of having to Restore Default Layout once whenever I first open a new project.
Intellij Docs Reference
Every time I open a new project in IntelliJ IDEA, the first time I open a particular tool window, for example 'Maven Projects', it appears in 'pinned' mode and remains visible until either I close it, or I go to the view settings for the window (the little cog) and deselect "Pinned Mode". I don't want any of my tool windows to be pinned so this gets a little annoying.
Do you know of a way to change the default behaviour of new project / tool windows?
As far as IJ 2016.2 I don't know about a dedicated setting for this. However I used an approach which allows you to define a default layout for all projects. Although the window-pinning works, which is what this question is about, some may not be persisted, such as Group Modules setting in the maven tool-window.
Nonetheless, to configure the pinning, you need to do 2 simple things, which you can also see in the GIF below:
1) Manually go and unpin all desired windows
2) Open the Windows menu and select Store current layout as default
P.S. If you'll be using tool-windows that you've never opened before, or install new plugins which add their own tool-windows, just follow these steps again.
I have a distributed project and I need debug two nodes of my app on the same time. For this I wish open two instances of Intellij, it is possible ?
just open each one from different folder level.
For example: Project A has 2 folders (one inside another) and inside the 2nd folder there is code. Then open one instance from folder 1 and another instance from folder 2.
Open each instance by choosing open in new window..simple.
There is this topic about starting two instances of IntelliJ Start two instances of IntelliJ IDE
It is not possible with one instance from my experience
Just for new people who navigate here. You could just drag & drop the code you want outside android studio.
I found this really helpfull:
You can split the editor view vertically/horizontally, this will
display the same file in both splits, then you can drag one of the
tabs outside of the IDE to create a float editor window.
Another way to open multiple editors for the same file is to select
the file in the Project view and press Shift+Enter.
Source: Serge Baranov response in this thread
I don't think so. One easy thing you can do is open two different major versions at the same time (e.g. 2015 and 2016) or if you have Ultimate edition, you can also install community edition and have both of those open at the same time. Or if you're using community edition, you could install a trail of ultimate just this one time :)
Of course the downside to the second approach is that you may not have some plugins you need for your project.