How do i place objects on the JFrame window by refering to the coordinates on the window itself, rather than using a bunch of panels and layout options?
Printable View
How do i place objects on the JFrame window by refering to the coordinates on the window itself, rather than using a bunch of panels and layout options?
set the layout option to null
Ok, but could you give me a little more information than that please? What do i do after that? Thanks for helping.
This code creates a button in a no layout manager frame
Code:getContentPane().setLayout(null);
JButton jButton1=new JButton();
jButton1.setBounds(new Rectangle(13, 27, 81, 31));
AH ok, thank you very much.