I asked a question about selecting a value from a selected column. Thank you very much for your kind answer. I am sorry that I don’t understand all the information because I am a beginner.
I added the 3 procedures that you taught me:
However, the dialog disappears after I add them. I guess the reason is that something wrong with JComboBox m_targetReferenceCategory. Chould you please help me find the problem?
My code shows in the future below:
Looks like you are trying to access an uninitialized variable in line 86. If you configure your eclipse to use a Java 17 VM to start your AP (supported from AP 4.6) it will tell you exactly what variable is causing this error. From the screenshots you sent, it looks like the m_selectionPanel is null during initialization.
Hi, thanks for your reply.
Now I am trying to solve m_selectionPanel and meet this error. I switch Java 11 to 17 now but I didn’t see more support and I didn’t find what is ‘my AP’. How can I handle this?
With AP I mean KNIME Analytics Platform, the tool you are developing your extensions for.
Rergarding your error, there is a NominalValue interface and a class, make sure you imported the interface and not the class, as that one won’t work.
The second problem is that is it necessary to have a settings.java file? I am very new to this settings file. There is a nodemodel.java, nodefactory.java, and a nodedialog.java in the ‘.nodes’ packetage.
OK. Now I want to do a simpler node and meet this problem. I actually mixed up the complex one and the simpler one. I extend DefaultNodeSettingsPane now and I think I should remove these settings. I don’t know what I need for a simpler node. Could you please give me an example of a simpler node?
You can delete the loadSettingsFrom method from your class.
To see other implementations of the DefaultDialogPane, press F4 in Eclipse to open the type hierachy, then you can see other classes that inherit from that class and take a look how they do it.
Thank you for reminding me about this, I looked deeper into this issues and as far as I can tell, there is no easy way to do this with a default dialog pane.
The one node I found that has a similar behavior to what I think you want to do is the logistic regression learner, you can see the implementation of the dialog is a bit complicated though: