-
5 votesanswersviews
JButton ActionListener - 仅在单击JButton之后才更新GUI
我的JButton ActionListener有问题 . 我有一个在另一个类中定义的doTheCleaning()方法,在调用时会对我的GUI进行一系列更改 . public void doTheCleaning(){ //change image icon //had thread.sleep here //insert to text area //had t... -
1 votesanswersviews
GUI必须等到启动画面完成执行
我有一个SplashScreen类,它显示一个图像和一个进度条,直到初始化一些数据库 . 我希望在启动画面结束后打开一个新窗口 . 我有以下代码: 主要课程 public class Gui{ private static final String IMG_PATH = "../opt/images/splashscreendef.jpg"; public static v...