when i use border layout and centre alignment, my label content is appearing on left side but i need it on right side, suggest any change
here is my code
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
class Welcum extends JFrame {
Container c;
JButton bFd,bAcct;
JLabel lWelcome;
public Welcome() {
c=getContentPane();
setTitle("welcome");
setBounds(0,0,800,500);
//setLayout(BorderLayout);
bFd=new JButton("fdDetails");
c.add(BorderLayout.NORTH,bFd);
lWelcome=new JLabel("welcome");
lWelcome.setFont(new Font(Font.DIALOG,Font.BOLD,68));
c.add(BorderLayout.CENTER,lWelcome);
bAcct=new JButton("AccountDetails");
c.add(BorderLayout.SOUTH,bAcct);
setVisible(true);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
}
public class welcome{
public static void main(String[] args){
//new FrmAdd();
new Welcome();
}
}
}