I have a program and I need to show a windows only at the first start of the application. What I should do? I make two classes or two JFrames in one class?
I think your goal is a multiple document interface .
Other scenarios:
To implement this behaviour I used java RMI (remote method invocation).
import javax.swing.*;
public class aaaaa {
public static void main(String[] args) {
new JFrame().setVisible(true);
}
}
at the first you mean like this??
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.