my problem is as follows: Assume that we have the following file:
package p;
import javax.swing.*;
public class test extends JPanel {
test(){
super(true);
}
}
I save the file and compile it. Now, in IntelliJ, I open a form and try to add test
to it. It won't work! I click 'Non-Palette Component', click on my form and in the dialog that open up, I type p.test
as my class name (IntelliJ even offers name completion here) and check 'create binding automatically'. After I click ok, nothing happens. But - if I take 'javax.swing.JButton' for the class name, it works. It's ridiculous. I don't see what I am doing wrong? Does test have to implement or override a certain function? Do I have to modify a path? Or should I just kick my PC out of my window?