Hi
I am writing a code for java. In the program I have JPanel full of buttons inside a JFrame. Now I want to change the position of the buttons. I tried it by removing them and adding the buttons back, but this is not working any ideas. here is my program.any ideas on how I can achieve this task.Code:bpanel.removeAll(); for (int i=0; i<9; i++) { but[ i ] = new JButton( Names[ i ] ); bpanel.add(but[i]); } getContentPane().add(bpanel);
Bookmarks