admin管理员组

文章数量:1026989

I've been trying to get tests running for my project but every time I run it it gives me an error

    protected void setUp() throws Exception {
        super.setUp();
        setAdapter(new MainClassAdapter(Login.class));

        Window window = getMainWindow();
    }

This is the code for my setup, it has an error when it tries to getMainWindow(). It's a maven project, the login class is setup and is running, here is the code that displays the window:

    public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Login().setVisible(true); System.out.println("window showingg");
            }
        });
    }

Could anyone help me figure out what's going on? Thanks

I've been trying to get tests running for my project but every time I run it it gives me an error

    protected void setUp() throws Exception {
        super.setUp();
        setAdapter(new MainClassAdapter(Login.class));

        Window window = getMainWindow();
    }

This is the code for my setup, it has an error when it tries to getMainWindow(). It's a maven project, the login class is setup and is running, here is the code that displays the window:

    public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Login().setVisible(true); System.out.println("window showingg");
            }
        });
    }

Could anyone help me figure out what's going on? Thanks

本文标签: javaHow do I fix the quotNo window was shownquot error in uispecj4Stack Overflow