Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能在这个话题上帮助我,我是 javafx 2.0 的初学者,真的很想破解这个。我有一个名为 draw(Stage primaryStage) 的方法,其中包含不同的形状代码。但是,当我尝试运行代码时,我收到此消息
代码太大 private void draw(Stage primaryStage){...
我尝试减少生成的形状数量,它似乎工作正常,但实际上该方法中的所有形状都是需要的,最好是在同一个类中。是否有解决此问题的解决方案或工作..?
谢谢你。
奇卡。
如果你真的有一个超过 64KB 字节码的方法,那么你有一个严重的设计缺陷,需要认真考虑重构。认真的。
对于类似的活动,请尝试使用创建形状并根据传递的参数设置其属性的方法。