I have a BorderLayout and I wish to include a BoxLayout in it such that I have three vertical buttons it . The design is like this: I want one horizontal borderlayout,below which I have two borderlayouts. In the left borderlayout I want boxlayout with three vertical buttons.
Here is the code I have tried:
JLabel label2 = new JLabel("LOGO");
pane.add(label2, BorderLayout.PAGE_START);
button = new JButton("Button 2 (CENTER)");
button.setPreferredSize(new Dimension(200, 100));
pane.add(button, BorderLayout.CENTER);
button = new JButton("Button 3 (LINE_START)");
pane.add(button, BorderLayout.LINE_START);
button = new JButton("Long-Named Button 4 (PAGE_END)");
pane.add(button, BorderLayout.PAGE_END);
How should I go about such that I get the design mentioned. Right now I am not getting it and I do not know how to add boxlayout inside borderlayout.