In my application, there are 4 panels. And i need to insert them into the main panel, which uses BorderLayout
. The 4 panels are...
- A thin Image strip.
- 4 buttons just below above
- A TextField covering the complete page.
- An about at end.
This is my code...
add(imageLabel, BorderLayout.NORTH);
add(buttonPanel,BorderLayout.PAGE_START);
add(logScrollPane, BorderLayout.CENTER);
add(about, BorderLayout.PAGE_END);
When I do this, the buttonPanel
disappears. How can I achieve what I need?