This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I've been working on this GUI for a while now and I am unable to resolve this bug. I have a grid of buttons where each button represents a location. Each location has a set of properties which I want to display in a "Properties" window. This window consists of 5 labels and fields, two radio buttons, two buttons and a "notes" area. The user can access the properties by right clicking on a button and then clicking on "Properties" from the popup menu. So while the main GUI is running, the user can view the properties of any location, any number of times. The issue I'm having is that when you first click on the properties option and the Jframe is displayed, the layout looks as desired. But when you close it and then open another properties window (of that same location or another location), the JPanel containing the textfields and labels disappear. When you resize the frame though, those fields appear but the two radio buttons and the "notes" area are duplicated. I'm not sure what is going on here. I've manipulated the layouts as well as used SwingUtilities.invokeLater() to see if that'll fix the issue with no luck. Any help will be greatly appreciated!