posted 19 years ago
My question pertains to the code below. I'm creating several classes which load into a cardlayout on a main form. In order to create a border on the left side of this portion of the screen, I am nesting one JPanel within another and using the swinglayout to set my distance from the WEST side of the parent JPanel.
The problem I have is that the 2 components (textfield and label) do not appear in the resulting JFrame. However, if I comment out the line borderPanelLayout = new SwingLayout() then I do get the components to appear. I cannot, for the life of me, figure out why this is. Any and all help is appreciated.
Thanks,
David
Dad always thought laughter was the best medicine, which I guess is why several of us died of tuberculosis. -Jack Handy