I have a couple of suggestions: For one, don't compare Strings with == as you do here if (ul.getStatus() == "pass") as this checks to see if two variables refer to the same String object (which you don't care about) but rather use either the equals or the equalsIgnoreCase method which checks to see if the two Strings contain the same String data (which you do care about). E.g. , if (ul.getStatus().
EqualsIgnoreCase("pass")) Be sure to do all of your database queries and whatnot in a thread background to the GUI's thread, the EDT such as can be achieved by using a SwingWorker object. This article will tell you what I said but will give you the details: Concurrency in Swing. Consider using a single JFrame and modal dialogs to act as dialog windows to the main app.
This can be achieved by using JOptionPanes or modal JDialogs, in particular for your UserLogin window. For this reason, I like to gear my GUI's towards creating JPanels rather than top level windows such as JFrames. This way I can place my GUI/JPanel into any type of window I desire depending on the situation be it a JFrame, a JApplet, a JDialog, a JOptionPane, or even nested into another JPanel.
This gives you an amazing amount of flexibilty.
Thank you so much for the reply. I will try on what you said and revert. It might take some time as I am a fresher in this technology and NetBeans is a total new world for me.
– Shahid Apr 25 at 3:23 @Shahid: You're welcome. Please come back and ask further questions if you don't understand points. If you do this and especially if you need to post code, edit your original question to show the new information and questions, and then place a comment notifying us of the changes.
Luck! – Hovercraft Full Of Eels Apr 25 at 4:05.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.