There are two approach to put button on a frame's content pane.
- Using Layout Manager
- Using Absolute Positioning
If you like to use absolute position then you must use
setLayout(null);
setBounds(X screen, Y screen, Button Width, Button Height)
Post a Comment