Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package newProject;
- import javax.swing.JButton;
- public class MyExample {
- public static void main(String[] args) {
- System.out.println(Thread.activeCount() + " " + Thread.currentThread());
- MyThread myExample = new MyThread();
- System.out.println(Thread.activeCount() + " " + Thread.currentThread());
- }
- }
- class MyThread {
- JButton button=new JButton();
- public MyThread() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement