Layout manager problems ?
Ok - here's what I would do. Create a JPanel and set the Layout Manager to null for absolute positioning. This means there will be no layout manager for the JPanel to apply its sizing rules to your buttons
Then add the buttons to the JPanel. Use setBounds() on the buttons to define absolute position and size.
Off the top of my head something like :
JPanel panel = new JPanel();
panel.setLayout(null); // no layout manager
JButton btnOK = new JButton("OK"

;
JButton btnApply = new JButton("Apply"

;
JButton btnCancel = new JButton("Cancel"

;
panel.add(btnOK);
panel.add(btnApply);
panel.add(btnCancel);
//Position the buttons on the panel
btnOk.setBounds(10,10,50,30); //set at 10,10 with size 50x30
btnApply.setBounds(80,10,50,30);//set at 80,10 with size 50x30
btnCancel.setBounds(130,10,50,30);//set at 130,10 with size 50x30
//Add the panel to where abouts on the JFrame you would like.
//I'll assume you have an instance if JFrame called myFrame
//and that you want the buttons in the south of a BorderLayout (the default for JFrame)
myFrame.getContentPane().add(panel, BorderLayout.SOUTH);
Luck mate - RjB.