我有一个类型为“uicontrol”的sin(2*10*pi*t)-sin(2*15*pi*t),我希望能够在它上写一些类似sin(2*10*pi*t)-sin(2*15*pi*t)的东西,然后这个字符串成为一个变量F的表达式,例如:F=sin(2*10*pi*t)-sin(2*15*pi*t);,其中以前声明了t。%now I have the string value of the input
当我从IntelliJ编译我的项目时,没有任何问题,我的程序运行得很流畅,但是当我尝试用javac从终端编译它时,警告“注意: Victor/presentation/TableControllerMenu.java使用未检查或不安全的操作”。弹出,当我尝试执行它时,我得到错误"Exception in thread "main“java.awt.IllegalComponentStateException: contentPane cannot be set to null.”。我猜IntelliJ没有在文件中编写对象contentPane的初始化代码,这会导致javac崩溃