This still leaves the exit button invisible & hiding under the
Windows taskbar at the bottom of the screen
*********** REPLY SEPARATOR ***********
On 4/17/2003 at 2:05 PM Michael wrote:
Try using fewer methods like setMaximizedBounds, setResizable and let
java control the gui a little more.
Don't add the exitButton to the bp panel. Add it directly to the
contentPane... getContentPane().add(exitButton, BorderLayout.SOUTH);
That way the exitButton is not on the scrollpane, but will always
show up on the window.
Then add the panel with the cards into the scrollpane and add the
scrollpane to the contentPane (I think you do that already).
Since the contentPane is already BorderLayout, you don't need these
lines
p1 = (JPanel) getContentPane();
p1.setLayout(new BorderLayout());
Also, the JScrollPane automatically gets both Horizontal and Vertical
scrollbars, therefore you don't need the JScrollBar object