Simple GUI for validating username and password
<p>How can I complete the following code for validating a user name and password?</p>

<pre><code>public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            new LibnValidation().setVisible(true);
            boolean result = validation();
            if(!result)
            {

            }
        }

        private boolean validation() {
            throw new UnsupportedOperationException("Not yet implemented");
            boolean valid = false;
            if(librarian.getText().equals("kani" &amp;&amp; jPasswordField1.getPassword().equals("*****")){
                valid = true;
            }
            return valid;
        }
    });
}
</code></pre>
