Pat Farrell wrote:I'm a bit surprised that no one gave the trivial and easiest answer: don't store your password in the code. Period.
If you store the password in code that a bad guy(tm) has access to, then they can get access to your password. This is true for source code, byte code, object code, etc.
If you are serious about security, you can't have direct JDBC access from code running on the client, because you can't trust the client computer. To handle this properly, you have the user login, and you return a session nonce (in a cookie, or whatever). Your client side code then passes back the session nonce to the server-side, and the server-side validates it and calls JDBC.
Rob Spoor wrote:The problem appears to be in the layout manager. If I uncomment the call to "getContentPane().setLayout(layout);" I get the image.
I haven't used GroupLayout myself but its Javadoc page seems to require you to add the components through the layout manager, not directly through the content pane.