This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Can someone please help me with this code? I cannot run this program. I am getting the error - "Cannot find symbol
symbol : method setOpaque(boolean)
method : class Login
setOpaque is a method of JComponent, and although JFrame is part of Swing it does not (directly or indirectly) extend JComponent. Therefore, JFrame has no such method. Since you're wrapping the Login instance in a new JFrame you might as well make Login extend JPanel instead.