Hi i am trying to make java desktop application where i am having 4 jbutton i want to set them bottom left corner one by one i am using null layout for setting them but i dont want to use null layout so
how can i achieve this ?
Thanks in advance
ok = new JButton(s);
ok.setBounds(800, 725, 100, 40);
ok.setBackground(Color.red);
ok.setOpaque(true);
ok.setForeground(Color.BLACK);
c.add(ok);
print = new JButton("Print");
print.setBounds(925, 725, 100, 40);
print.setBackground(Color.red);
print.setOpaque(true);
print.setForeground(Color.BLACK);
c.add(print);
next = new JButton("next");
next.setBounds(400, 725, 100, 40);
next.setBackground(Color.red);
next.setOpaque(true);
next.setForeground(Color.BLACK);
c.add(next);
home = new JButton("home");
home.setBounds(500, 725, 100, 40);
home.setForeground(Color.BLACK);
home.setBackground(Color.red);
home.setOpaque(true);
c.add(home);