Reputation: 339
This is the Picture of Border Layout
I want to add Three buttons at Page_End. is it possible ? and how ?
Note:I cant change layout. else i have to change so much code.
Upvotes: 2
Views: 1386
Reputation: 1836
** Sample code as requested **
JPanel panel = new JPanel();
JButton button1 = new JButton("Bottom Left");
JButton button2 = new JButton("Bottom Right");
panel.setLayout(new BorderLayout());
panel.add(button1, BorderLayout.LINE_START);
panel.add(button2, BorderLayout.LINE_END);
pane.add(panel, BorderLayout.LINE_END);
Upvotes: 4